amazonka-maciev2-2.0: Amazon Macie 2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.MacieV2.Types.AssumedRole

Description

 
Synopsis

Documentation

data AssumedRole Source #

Provides information about an identity that performed an action on an affected resource by using temporary security credentials. The credentials were obtained using the AssumeRole operation of the Security Token Service (STS) API.

See: newAssumedRole smart constructor.

Constructors

AssumedRole' 

Fields

  • accessKeyId :: Maybe Text

    The Amazon Web Services access key ID that identifies the credentials.

  • accountId :: Maybe Text

    The unique identifier for the Amazon Web Services account that owns the entity that was used to get the credentials.

  • arn :: Maybe Text

    The Amazon Resource Name (ARN) of the entity that was used to get the credentials.

  • principalId :: Maybe Text

    The unique identifier for the entity that was used to get the credentials.

  • sessionContext :: Maybe SessionContext

    The details of the session that was created for the credentials, including the entity that issued the session.

Instances

Instances details
FromJSON AssumedRole Source # 
Instance details

Defined in Amazonka.MacieV2.Types.AssumedRole

Generic AssumedRole Source # 
Instance details

Defined in Amazonka.MacieV2.Types.AssumedRole

Associated Types

type Rep AssumedRole :: Type -> Type #

Read AssumedRole Source # 
Instance details

Defined in Amazonka.MacieV2.Types.AssumedRole

Show AssumedRole Source # 
Instance details

Defined in Amazonka.MacieV2.Types.AssumedRole

NFData AssumedRole Source # 
Instance details

Defined in Amazonka.MacieV2.Types.AssumedRole

Methods

rnf :: AssumedRole -> () #

Eq AssumedRole Source # 
Instance details

Defined in Amazonka.MacieV2.Types.AssumedRole

Hashable AssumedRole Source # 
Instance details

Defined in Amazonka.MacieV2.Types.AssumedRole

type Rep AssumedRole Source # 
Instance details

Defined in Amazonka.MacieV2.Types.AssumedRole

type Rep AssumedRole = D1 ('MetaData "AssumedRole" "Amazonka.MacieV2.Types.AssumedRole" "amazonka-maciev2-2.0-5WBPWSHaxt7LOrO1LzXg18" 'False) (C1 ('MetaCons "AssumedRole'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "accessKeyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "accountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "principalId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "sessionContext") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SessionContext))))))

newAssumedRole :: AssumedRole Source #

Create a value of AssumedRole with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:accessKeyId:AssumedRole', assumedRole_accessKeyId - The Amazon Web Services access key ID that identifies the credentials.

$sel:accountId:AssumedRole', assumedRole_accountId - The unique identifier for the Amazon Web Services account that owns the entity that was used to get the credentials.

$sel:arn:AssumedRole', assumedRole_arn - The Amazon Resource Name (ARN) of the entity that was used to get the credentials.

$sel:principalId:AssumedRole', assumedRole_principalId - The unique identifier for the entity that was used to get the credentials.

$sel:sessionContext:AssumedRole', assumedRole_sessionContext - The details of the session that was created for the credentials, including the entity that issued the session.

assumedRole_accessKeyId :: Lens' AssumedRole (Maybe Text) Source #

The Amazon Web Services access key ID that identifies the credentials.

assumedRole_accountId :: Lens' AssumedRole (Maybe Text) Source #

The unique identifier for the Amazon Web Services account that owns the entity that was used to get the credentials.

assumedRole_arn :: Lens' AssumedRole (Maybe Text) Source #

The Amazon Resource Name (ARN) of the entity that was used to get the credentials.

assumedRole_principalId :: Lens' AssumedRole (Maybe Text) Source #

The unique identifier for the entity that was used to get the credentials.

assumedRole_sessionContext :: Lens' AssumedRole (Maybe SessionContext) Source #

The details of the session that was created for the credentials, including the entity that issued the session.