libZSservicesZSamazonka-iamZSamazonka-iam
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IAM.ListMFADevices

Description

Lists the MFA devices for an IAM user. If the request includes a IAM user name, then this operation lists all the MFA devices associated with the specified user. If you do not specify a user name, IAM determines the user name implicitly based on the Amazon Web Services access key ID signing the request for this operation.

You can paginate the results using the MaxItems and Marker parameters.

This operation returns paginated results.

Synopsis

Creating a Request

data ListMFADevices Source #

See: newListMFADevices smart constructor.

Constructors

ListMFADevices' 

Fields

  • userName :: Maybe Text

    The name of the user whose MFA devices you want to list.

    This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

  • marker :: Maybe Text

    Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

  • maxItems :: Maybe Natural

    Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

    If you do not include this parameter, the number of items defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true, and Marker contains a value to include in the subsequent call that tells the service where to continue from.

Instances

Instances details
Eq ListMFADevices Source # 
Instance details

Defined in Amazonka.IAM.ListMFADevices

Read ListMFADevices Source # 
Instance details

Defined in Amazonka.IAM.ListMFADevices

Show ListMFADevices Source # 
Instance details

Defined in Amazonka.IAM.ListMFADevices

Generic ListMFADevices Source # 
Instance details

Defined in Amazonka.IAM.ListMFADevices

Associated Types

type Rep ListMFADevices :: Type -> Type #

NFData ListMFADevices Source # 
Instance details

Defined in Amazonka.IAM.ListMFADevices

Methods

rnf :: ListMFADevices -> () #

Hashable ListMFADevices Source # 
Instance details

Defined in Amazonka.IAM.ListMFADevices

AWSPager ListMFADevices Source # 
Instance details

Defined in Amazonka.IAM.ListMFADevices

AWSRequest ListMFADevices Source # 
Instance details

Defined in Amazonka.IAM.ListMFADevices

Associated Types

type AWSResponse ListMFADevices #

ToHeaders ListMFADevices Source # 
Instance details

Defined in Amazonka.IAM.ListMFADevices

ToPath ListMFADevices Source # 
Instance details

Defined in Amazonka.IAM.ListMFADevices

ToQuery ListMFADevices Source # 
Instance details

Defined in Amazonka.IAM.ListMFADevices

type Rep ListMFADevices Source # 
Instance details

Defined in Amazonka.IAM.ListMFADevices

type Rep ListMFADevices = D1 ('MetaData "ListMFADevices" "Amazonka.IAM.ListMFADevices" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "ListMFADevices'" 'PrefixI 'True) (S1 ('MetaSel ('Just "userName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxItems") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))
type AWSResponse ListMFADevices Source # 
Instance details

Defined in Amazonka.IAM.ListMFADevices

newListMFADevices :: ListMFADevices Source #

Create a value of ListMFADevices 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:userName:ListMFADevices', listMFADevices_userName - The name of the user whose MFA devices you want to list.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

$sel:marker:ListMFADevices', listMFADevices_marker - Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

$sel:maxItems:ListMFADevices', listMFADevices_maxItems - Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, the number of items defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true, and Marker contains a value to include in the subsequent call that tells the service where to continue from.

Request Lenses

listMFADevices_userName :: Lens' ListMFADevices (Maybe Text) Source #

The name of the user whose MFA devices you want to list.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

listMFADevices_marker :: Lens' ListMFADevices (Maybe Text) Source #

Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

listMFADevices_maxItems :: Lens' ListMFADevices (Maybe Natural) Source #

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.

If you do not include this parameter, the number of items defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true, and Marker contains a value to include in the subsequent call that tells the service where to continue from.

Destructuring the Response

data ListMFADevicesResponse Source #

Contains the response to a successful ListMFADevices request.

See: newListMFADevicesResponse smart constructor.

Constructors

ListMFADevicesResponse' 

Fields

  • marker :: Maybe Text

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

  • isTruncated :: Maybe Bool

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all your results.

  • httpStatus :: Int

    The response's http status code.

  • mfaDevices :: [MFADevice]

    A list of MFA devices.

Instances

Instances details
Eq ListMFADevicesResponse Source # 
Instance details

Defined in Amazonka.IAM.ListMFADevices

Read ListMFADevicesResponse Source # 
Instance details

Defined in Amazonka.IAM.ListMFADevices

Show ListMFADevicesResponse Source # 
Instance details

Defined in Amazonka.IAM.ListMFADevices

Generic ListMFADevicesResponse Source # 
Instance details

Defined in Amazonka.IAM.ListMFADevices

Associated Types

type Rep ListMFADevicesResponse :: Type -> Type #

NFData ListMFADevicesResponse Source # 
Instance details

Defined in Amazonka.IAM.ListMFADevices

Methods

rnf :: ListMFADevicesResponse -> () #

type Rep ListMFADevicesResponse Source # 
Instance details

Defined in Amazonka.IAM.ListMFADevices

type Rep ListMFADevicesResponse = D1 ('MetaData "ListMFADevicesResponse" "Amazonka.IAM.ListMFADevices" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "ListMFADevicesResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "isTruncated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "mfaDevices") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [MFADevice]))))

newListMFADevicesResponse Source #

Create a value of ListMFADevicesResponse 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:marker:ListMFADevices', listMFADevicesResponse_marker - When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

$sel:isTruncated:ListMFADevicesResponse', listMFADevicesResponse_isTruncated - A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all your results.

$sel:httpStatus:ListMFADevicesResponse', listMFADevicesResponse_httpStatus - The response's http status code.

$sel:mfaDevices:ListMFADevicesResponse', listMFADevicesResponse_mfaDevices - A list of MFA devices.

Response Lenses

listMFADevicesResponse_marker :: Lens' ListMFADevicesResponse (Maybe Text) Source #

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

listMFADevicesResponse_isTruncated :: Lens' ListMFADevicesResponse (Maybe Bool) Source #

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all your results.