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 |
This operation lists all the tags attached to a vault. The operation returns an empty map if there are no tags. For more information about tags, see Tagging Amazon S3 Glacier Resources.
Synopsis
- data ListTagsForVault = ListTagsForVault' {}
- newListTagsForVault :: Text -> Text -> ListTagsForVault
- listTagsForVault_accountId :: Lens' ListTagsForVault Text
- listTagsForVault_vaultName :: Lens' ListTagsForVault Text
- data ListTagsForVaultResponse = ListTagsForVaultResponse' {}
- newListTagsForVaultResponse :: Int -> ListTagsForVaultResponse
- listTagsForVaultResponse_tags :: Lens' ListTagsForVaultResponse (Maybe (HashMap Text Text))
- listTagsForVaultResponse_httpStatus :: Lens' ListTagsForVaultResponse Int
Creating a Request
data ListTagsForVault Source #
The input value for ListTagsForVaultInput
.
See: newListTagsForVault
smart constructor.
ListTagsForVault' | |
|
Instances
Create a value of ListTagsForVault
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:accountId:ListTagsForVault'
, listTagsForVault_accountId
- The AccountId
value is the AWS account ID of the account that owns the
vault. You can either specify an AWS account ID or optionally a single
'-
' (hyphen), in which case Amazon S3 Glacier uses the AWS account
ID associated with the credentials used to sign the request. If you use
an account ID, do not include any hyphens ('-') in the ID.
$sel:vaultName:ListTagsForVault'
, listTagsForVault_vaultName
- The name of the vault.
Request Lenses
listTagsForVault_accountId :: Lens' ListTagsForVault Text Source #
The AccountId
value is the AWS account ID of the account that owns the
vault. You can either specify an AWS account ID or optionally a single
'-
' (hyphen), in which case Amazon S3 Glacier uses the AWS account
ID associated with the credentials used to sign the request. If you use
an account ID, do not include any hyphens ('-') in the ID.
listTagsForVault_vaultName :: Lens' ListTagsForVault Text Source #
The name of the vault.
Destructuring the Response
data ListTagsForVaultResponse Source #
Contains the Amazon S3 Glacier response to your request.
See: newListTagsForVaultResponse
smart constructor.
Instances
newListTagsForVaultResponse Source #
Create a value of ListTagsForVaultResponse
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:tags:ListTagsForVaultResponse'
, listTagsForVaultResponse_tags
- The tags attached to the vault. Each tag is composed of a key and a
value.
$sel:httpStatus:ListTagsForVaultResponse'
, listTagsForVaultResponse_httpStatus
- The response's http status code.
Response Lenses
listTagsForVaultResponse_tags :: Lens' ListTagsForVaultResponse (Maybe (HashMap Text Text)) Source #
The tags attached to the vault. Each tag is composed of a key and a value.
listTagsForVaultResponse_httpStatus :: Lens' ListTagsForVaultResponse Int Source #
The response's http status code.