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.ListImpersonationRoles

Description

Lists all the impersonation roles for the given WorkMail organization.

Synopsis

Creating a Request

data ListImpersonationRoles Source #

See: newListImpersonationRoles smart constructor.

Constructors

ListImpersonationRoles' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of results returned in a single call.

  • nextToken :: Maybe Text

    The token used to retrieve the next page of results. The first call doesn't require a token.

  • organizationId :: Text

    The WorkMail organization to which the listed impersonation roles belong.

Instances

Instances details
ToJSON ListImpersonationRoles Source # 
Instance details

Defined in Amazonka.WorkMail.ListImpersonationRoles

ToHeaders ListImpersonationRoles Source # 
Instance details

Defined in Amazonka.WorkMail.ListImpersonationRoles

ToPath ListImpersonationRoles Source # 
Instance details

Defined in Amazonka.WorkMail.ListImpersonationRoles

ToQuery ListImpersonationRoles Source # 
Instance details

Defined in Amazonka.WorkMail.ListImpersonationRoles

AWSRequest ListImpersonationRoles Source # 
Instance details

Defined in Amazonka.WorkMail.ListImpersonationRoles

Associated Types

type AWSResponse ListImpersonationRoles #

Generic ListImpersonationRoles Source # 
Instance details

Defined in Amazonka.WorkMail.ListImpersonationRoles

Associated Types

type Rep ListImpersonationRoles :: Type -> Type #

Read ListImpersonationRoles Source # 
Instance details

Defined in Amazonka.WorkMail.ListImpersonationRoles

Show ListImpersonationRoles Source # 
Instance details

Defined in Amazonka.WorkMail.ListImpersonationRoles

NFData ListImpersonationRoles Source # 
Instance details

Defined in Amazonka.WorkMail.ListImpersonationRoles

Methods

rnf :: ListImpersonationRoles -> () #

Eq ListImpersonationRoles Source # 
Instance details

Defined in Amazonka.WorkMail.ListImpersonationRoles

Hashable ListImpersonationRoles Source # 
Instance details

Defined in Amazonka.WorkMail.ListImpersonationRoles

type AWSResponse ListImpersonationRoles Source # 
Instance details

Defined in Amazonka.WorkMail.ListImpersonationRoles

type Rep ListImpersonationRoles Source # 
Instance details

Defined in Amazonka.WorkMail.ListImpersonationRoles

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

newListImpersonationRoles Source #

Create a value of ListImpersonationRoles 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:maxResults:ListImpersonationRoles', listImpersonationRoles_maxResults - The maximum number of results returned in a single call.

ListImpersonationRoles, listImpersonationRoles_nextToken - The token used to retrieve the next page of results. The first call doesn't require a token.

ListImpersonationRoles, listImpersonationRoles_organizationId - The WorkMail organization to which the listed impersonation roles belong.

Request Lenses

listImpersonationRoles_maxResults :: Lens' ListImpersonationRoles (Maybe Natural) Source #

The maximum number of results returned in a single call.

listImpersonationRoles_nextToken :: Lens' ListImpersonationRoles (Maybe Text) Source #

The token used to retrieve the next page of results. The first call doesn't require a token.

listImpersonationRoles_organizationId :: Lens' ListImpersonationRoles Text Source #

The WorkMail organization to which the listed impersonation roles belong.

Destructuring the Response

data ListImpersonationRolesResponse Source #

See: newListImpersonationRolesResponse smart constructor.

Constructors

ListImpersonationRolesResponse' 

Fields

Instances

Instances details
Generic ListImpersonationRolesResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListImpersonationRoles

Associated Types

type Rep ListImpersonationRolesResponse :: Type -> Type #

Read ListImpersonationRolesResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListImpersonationRoles

Show ListImpersonationRolesResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListImpersonationRoles

NFData ListImpersonationRolesResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListImpersonationRoles

Eq ListImpersonationRolesResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListImpersonationRoles

type Rep ListImpersonationRolesResponse Source # 
Instance details

Defined in Amazonka.WorkMail.ListImpersonationRoles

type Rep ListImpersonationRolesResponse = D1 ('MetaData "ListImpersonationRolesResponse" "Amazonka.WorkMail.ListImpersonationRoles" "amazonka-workmail-2.0-6w5uOhF45UX4mlfLHLnG5b" 'False) (C1 ('MetaCons "ListImpersonationRolesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "roles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ImpersonationRole])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListImpersonationRolesResponse Source #

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

ListImpersonationRoles, listImpersonationRolesResponse_nextToken - The token to retrieve the next page of results. The value is null when there are no results to return.

$sel:roles:ListImpersonationRolesResponse', listImpersonationRolesResponse_roles - The list of impersonation roles under the given WorkMail organization.

$sel:httpStatus:ListImpersonationRolesResponse', listImpersonationRolesResponse_httpStatus - The response's http status code.

Response Lenses

listImpersonationRolesResponse_nextToken :: Lens' ListImpersonationRolesResponse (Maybe Text) Source #

The token to retrieve the next page of results. The value is null when there are no results to return.

listImpersonationRolesResponse_roles :: Lens' ListImpersonationRolesResponse (Maybe [ImpersonationRole]) Source #

The list of impersonation roles under the given WorkMail organization.