Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Lists the tags that are attached to the specified IAM virtual multi-factor authentication (MFA) device. The returned list of tags is sorted by tag key. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
Synopsis
- data ListMFADeviceTags = ListMFADeviceTags' {}
- newListMFADeviceTags :: Text -> ListMFADeviceTags
- listMFADeviceTags_marker :: Lens' ListMFADeviceTags (Maybe Text)
- listMFADeviceTags_maxItems :: Lens' ListMFADeviceTags (Maybe Natural)
- listMFADeviceTags_serialNumber :: Lens' ListMFADeviceTags Text
- data ListMFADeviceTagsResponse = ListMFADeviceTagsResponse' {
- marker :: Maybe Text
- isTruncated :: Maybe Bool
- httpStatus :: Int
- tags :: [Tag]
- newListMFADeviceTagsResponse :: Int -> ListMFADeviceTagsResponse
- listMFADeviceTagsResponse_marker :: Lens' ListMFADeviceTagsResponse (Maybe Text)
- listMFADeviceTagsResponse_isTruncated :: Lens' ListMFADeviceTagsResponse (Maybe Bool)
- listMFADeviceTagsResponse_httpStatus :: Lens' ListMFADeviceTagsResponse Int
- listMFADeviceTagsResponse_tags :: Lens' ListMFADeviceTagsResponse [Tag]
Creating a Request
data ListMFADeviceTags Source #
See: newListMFADeviceTags
smart constructor.
ListMFADeviceTags' | |
|
Instances
Create a value of ListMFADeviceTags
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:ListMFADeviceTags'
, listMFADeviceTags_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:ListMFADeviceTags'
, listMFADeviceTags_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.
$sel:serialNumber:ListMFADeviceTags'
, listMFADeviceTags_serialNumber
- The unique identifier for the IAM virtual MFA device whose tags you want
to see. For virtual MFA devices, the serial number is the same as the
ARN.
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: _+=,.@-
Request Lenses
listMFADeviceTags_marker :: Lens' ListMFADeviceTags (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.
listMFADeviceTags_maxItems :: Lens' ListMFADeviceTags (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.
listMFADeviceTags_serialNumber :: Lens' ListMFADeviceTags Text Source #
The unique identifier for the IAM virtual MFA device whose tags you want to see. For virtual MFA devices, the serial number is the same as the ARN.
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: _+=,.@-
Destructuring the Response
data ListMFADeviceTagsResponse Source #
See: newListMFADeviceTagsResponse
smart constructor.
ListMFADeviceTagsResponse' | |
|
Instances
newListMFADeviceTagsResponse Source #
Create a value of ListMFADeviceTagsResponse
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:ListMFADeviceTags'
, listMFADeviceTagsResponse_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:ListMFADeviceTagsResponse'
, listMFADeviceTagsResponse_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:ListMFADeviceTagsResponse'
, listMFADeviceTagsResponse_httpStatus
- The response's http status code.
$sel:tags:ListMFADeviceTagsResponse'
, listMFADeviceTagsResponse_tags
- The list of tags that are currently attached to the virtual MFA device.
Each tag consists of a key name and an associated value. If no tags are
attached to the specified resource, the response contains an empty list.
Response Lenses
listMFADeviceTagsResponse_marker :: Lens' ListMFADeviceTagsResponse (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.
listMFADeviceTagsResponse_isTruncated :: Lens' ListMFADeviceTagsResponse (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.
listMFADeviceTagsResponse_httpStatus :: Lens' ListMFADeviceTagsResponse Int Source #
The response's http status code.
listMFADeviceTagsResponse_tags :: Lens' ListMFADeviceTagsResponse [Tag] Source #
The list of tags that are currently attached to the virtual MFA device. Each tag consists of a key name and an associated value. If no tags are attached to the specified resource, the response contains an empty list.