| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.SecretsManager.ListSecretVersionIds
Description
Lists all of the versions attached to the specified secret. The output does not include the SecretString or SecretBinary fields. By default, the list includes only versions that have at least one staging label in VersionStage attached.
Minimum permissions
To run this command, you must have the following permissions:
- secretsmanager:ListSecretVersionIds
Related operations
- To list the secrets in an account, use
ListSecrets.
Synopsis
- listSecretVersionIds :: Text -> ListSecretVersionIds
- data ListSecretVersionIds
- lsviNextToken :: Lens' ListSecretVersionIds (Maybe Text)
- lsviIncludeDeprecated :: Lens' ListSecretVersionIds (Maybe Bool)
- lsviMaxResults :: Lens' ListSecretVersionIds (Maybe Natural)
- lsviSecretId :: Lens' ListSecretVersionIds Text
- listSecretVersionIdsResponse :: Int -> ListSecretVersionIdsResponse
- data ListSecretVersionIdsResponse
- lsvirsARN :: Lens' ListSecretVersionIdsResponse (Maybe Text)
- lsvirsVersions :: Lens' ListSecretVersionIdsResponse [SecretVersionsListEntry]
- lsvirsNextToken :: Lens' ListSecretVersionIdsResponse (Maybe Text)
- lsvirsName :: Lens' ListSecretVersionIdsResponse (Maybe Text)
- lsvirsResponseStatus :: Lens' ListSecretVersionIdsResponse Int
Creating a Request
Arguments
| :: Text | |
| -> ListSecretVersionIds |
Creates a value of ListSecretVersionIds with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lsviNextToken- (Optional) Use this parameter in a request if you receive aNextTokenresponse in a previous request that indicates that there's more output available. In a subsequent call, set it to the value of the previous call'sNextTokenresponse to indicate where the output should continue from.lsviIncludeDeprecated- (Optional) Specifies that you want the results to include versions that do not have any staging labels attached to them. Such versions are considered deprecated and are subject to deletion by Secrets Manager as needed.lsviMaxResults- (Optional) Limits the number of results that you want to include in the response. If you don't include this parameter, it defaults to a value that's specific to the operation. If additional items exist beyond the maximum you specify, theNextTokenresponse element is present and has a value (isn't null). Include that value as theNextTokenrequest parameter in the next call to the operation to get the next part of the results. Note that Secrets Manager might return fewer results than the maximum even when there are more results available. You should checkNextTokenafter every operation to ensure that you receive all of the results.lsviSecretId- The identifier for the secret containing the versions you want to list. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.
data ListSecretVersionIds Source #
See: listSecretVersionIds smart constructor.
Instances
Request Lenses
lsviNextToken :: Lens' ListSecretVersionIds (Maybe Text) Source #
(Optional) Use this parameter in a request if you receive a NextToken response in a previous request that indicates that there's more output available. In a subsequent call, set it to the value of the previous call's NextToken response to indicate where the output should continue from.
lsviIncludeDeprecated :: Lens' ListSecretVersionIds (Maybe Bool) Source #
(Optional) Specifies that you want the results to include versions that do not have any staging labels attached to them. Such versions are considered deprecated and are subject to deletion by Secrets Manager as needed.
lsviMaxResults :: Lens' ListSecretVersionIds (Maybe Natural) Source #
(Optional) Limits the number of results that you want to include in the response. If you don't include this parameter, it defaults to a value that's specific to the operation. If additional items exist beyond the maximum you specify, the NextToken response element is present and has a value (isn't null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that Secrets Manager might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.
lsviSecretId :: Lens' ListSecretVersionIds Text Source #
The identifier for the secret containing the versions you want to list. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.
Destructuring the Response
listSecretVersionIdsResponse Source #
Arguments
| :: Int | |
| -> ListSecretVersionIdsResponse |
Creates a value of ListSecretVersionIdsResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lsvirsARN- The Amazon Resource Name (ARN) for the secret.lsvirsVersions- The list of the currently available versions of the specified secret.lsvirsNextToken- If present in the response, this value indicates that there's more output available than what's included in the current response. This can occur even when the response includes no values at all, such as when you ask for a filtered view of a very long list. Use this value in theNextTokenrequest parameter in a subsequent call to the operation to continue processing and get the next part of the output. You should repeat this until theNextTokenresponse element comes back empty (asnull).lsvirsName- The friendly name of the secret.lsvirsResponseStatus- -- | The response status code.
data ListSecretVersionIdsResponse Source #
See: listSecretVersionIdsResponse smart constructor.
Instances
Response Lenses
lsvirsARN :: Lens' ListSecretVersionIdsResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) for the secret.
lsvirsVersions :: Lens' ListSecretVersionIdsResponse [SecretVersionsListEntry] Source #
The list of the currently available versions of the specified secret.
lsvirsNextToken :: Lens' ListSecretVersionIdsResponse (Maybe Text) Source #
If present in the response, this value indicates that there's more output available than what's included in the current response. This can occur even when the response includes no values at all, such as when you ask for a filtered view of a very long list. Use this value in the NextToken request parameter in a subsequent call to the operation to continue processing and get the next part of the output. You should repeat this until the NextToken response element comes back empty (as null ).
lsvirsName :: Lens' ListSecretVersionIdsResponse (Maybe Text) Source #
The friendly name of the secret.
lsvirsResponseStatus :: Lens' ListSecretVersionIdsResponse Int Source #
- - | The response status code.