amazonka-workmail-2.0: Amazon WorkMail 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.WorkMail.AssumeImpersonationRole

Description

Assumes an impersonation role for the given WorkMail organization. This method returns an authentication token you can use to make impersonated calls.

Synopsis

Creating a Request

data AssumeImpersonationRole Source #

See: newAssumeImpersonationRole smart constructor.

Constructors

AssumeImpersonationRole' 

Fields

Instances

Instances details
ToJSON AssumeImpersonationRole Source # 
Instance details

Defined in Amazonka.WorkMail.AssumeImpersonationRole

ToHeaders AssumeImpersonationRole Source # 
Instance details

Defined in Amazonka.WorkMail.AssumeImpersonationRole

ToPath AssumeImpersonationRole Source # 
Instance details

Defined in Amazonka.WorkMail.AssumeImpersonationRole

ToQuery AssumeImpersonationRole Source # 
Instance details

Defined in Amazonka.WorkMail.AssumeImpersonationRole

AWSRequest AssumeImpersonationRole Source # 
Instance details

Defined in Amazonka.WorkMail.AssumeImpersonationRole

Generic AssumeImpersonationRole Source # 
Instance details

Defined in Amazonka.WorkMail.AssumeImpersonationRole

Associated Types

type Rep AssumeImpersonationRole :: Type -> Type #

Read AssumeImpersonationRole Source # 
Instance details

Defined in Amazonka.WorkMail.AssumeImpersonationRole

Show AssumeImpersonationRole Source # 
Instance details

Defined in Amazonka.WorkMail.AssumeImpersonationRole

NFData AssumeImpersonationRole Source # 
Instance details

Defined in Amazonka.WorkMail.AssumeImpersonationRole

Methods

rnf :: AssumeImpersonationRole -> () #

Eq AssumeImpersonationRole Source # 
Instance details

Defined in Amazonka.WorkMail.AssumeImpersonationRole

Hashable AssumeImpersonationRole Source # 
Instance details

Defined in Amazonka.WorkMail.AssumeImpersonationRole

type AWSResponse AssumeImpersonationRole Source # 
Instance details

Defined in Amazonka.WorkMail.AssumeImpersonationRole

type Rep AssumeImpersonationRole Source # 
Instance details

Defined in Amazonka.WorkMail.AssumeImpersonationRole

type Rep AssumeImpersonationRole = D1 ('MetaData "AssumeImpersonationRole" "Amazonka.WorkMail.AssumeImpersonationRole" "amazonka-workmail-2.0-6w5uOhF45UX4mlfLHLnG5b" 'False) (C1 ('MetaCons "AssumeImpersonationRole'" 'PrefixI 'True) (S1 ('MetaSel ('Just "organizationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "impersonationRoleId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newAssumeImpersonationRole Source #

Create a value of AssumeImpersonationRole 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:

AssumeImpersonationRole, assumeImpersonationRole_organizationId - The WorkMail organization under which the impersonation role will be assumed.

AssumeImpersonationRole, assumeImpersonationRole_impersonationRoleId - The impersonation role ID to assume.

Request Lenses

assumeImpersonationRole_organizationId :: Lens' AssumeImpersonationRole Text Source #

The WorkMail organization under which the impersonation role will be assumed.

Destructuring the Response

data AssumeImpersonationRoleResponse Source #

See: newAssumeImpersonationRoleResponse smart constructor.

Constructors

AssumeImpersonationRoleResponse' 

Fields

Instances

Instances details
Generic AssumeImpersonationRoleResponse Source # 
Instance details

Defined in Amazonka.WorkMail.AssumeImpersonationRole

Associated Types

type Rep AssumeImpersonationRoleResponse :: Type -> Type #

Read AssumeImpersonationRoleResponse Source # 
Instance details

Defined in Amazonka.WorkMail.AssumeImpersonationRole

Show AssumeImpersonationRoleResponse Source # 
Instance details

Defined in Amazonka.WorkMail.AssumeImpersonationRole

NFData AssumeImpersonationRoleResponse Source # 
Instance details

Defined in Amazonka.WorkMail.AssumeImpersonationRole

Eq AssumeImpersonationRoleResponse Source # 
Instance details

Defined in Amazonka.WorkMail.AssumeImpersonationRole

type Rep AssumeImpersonationRoleResponse Source # 
Instance details

Defined in Amazonka.WorkMail.AssumeImpersonationRole

type Rep AssumeImpersonationRoleResponse = D1 ('MetaData "AssumeImpersonationRoleResponse" "Amazonka.WorkMail.AssumeImpersonationRole" "amazonka-workmail-2.0-6w5uOhF45UX4mlfLHLnG5b" 'False) (C1 ('MetaCons "AssumeImpersonationRoleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "expiresIn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: (S1 ('MetaSel ('Just "token") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newAssumeImpersonationRoleResponse Source #

Create a value of AssumeImpersonationRoleResponse 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:expiresIn:AssumeImpersonationRoleResponse', assumeImpersonationRoleResponse_expiresIn - The authentication token's validity, in seconds.

$sel:token:AssumeImpersonationRoleResponse', assumeImpersonationRoleResponse_token - The authentication token for the impersonation role.

$sel:httpStatus:AssumeImpersonationRoleResponse', assumeImpersonationRoleResponse_httpStatus - The response's http status code.

Response Lenses

assumeImpersonationRoleResponse_token :: Lens' AssumeImpersonationRoleResponse (Maybe Text) Source #

The authentication token for the impersonation role.