amazonka-secretsmanager-1.6.0: Amazon Secrets Manager SDK.

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

Network.AWS.SecretsManager.ListSecretVersionIds

Contents

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

Creating a Request

listSecretVersionIds Source #

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 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 - (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, 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 - 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

Eq ListSecretVersionIds Source # 
Data ListSecretVersionIds Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListSecretVersionIds -> c ListSecretVersionIds #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListSecretVersionIds #

toConstr :: ListSecretVersionIds -> Constr #

dataTypeOf :: ListSecretVersionIds -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListSecretVersionIds) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListSecretVersionIds) #

gmapT :: (forall b. Data b => b -> b) -> ListSecretVersionIds -> ListSecretVersionIds #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListSecretVersionIds -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListSecretVersionIds -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListSecretVersionIds -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListSecretVersionIds -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListSecretVersionIds -> m ListSecretVersionIds #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListSecretVersionIds -> m ListSecretVersionIds #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListSecretVersionIds -> m ListSecretVersionIds #

Read ListSecretVersionIds Source # 
Show ListSecretVersionIds Source # 
Generic ListSecretVersionIds Source # 
Hashable ListSecretVersionIds Source # 
ToJSON ListSecretVersionIds Source # 
NFData ListSecretVersionIds Source # 

Methods

rnf :: ListSecretVersionIds -> () #

AWSRequest ListSecretVersionIds Source # 
ToHeaders ListSecretVersionIds Source # 
ToPath ListSecretVersionIds Source # 
ToQuery ListSecretVersionIds Source # 
type Rep ListSecretVersionIds Source # 
type Rep ListSecretVersionIds = D1 * (MetaData "ListSecretVersionIds" "Network.AWS.SecretsManager.ListSecretVersionIds" "amazonka-secretsmanager-1.6.0-K7nD2j5oEj0GsgMw0kPUxD" False) (C1 * (MetaCons "ListSecretVersionIds'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_lsviNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_lsviIncludeDeprecated") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_lsviMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))) (S1 * (MetaSel (Just Symbol "_lsviSecretId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs ListSecretVersionIds Source # 

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 #

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 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 - The friendly name of the secret.
  • lsvirsResponseStatus - -- | The response status code.

data ListSecretVersionIdsResponse Source #

See: listSecretVersionIdsResponse smart constructor.

Instances

Eq ListSecretVersionIdsResponse Source # 
Data ListSecretVersionIdsResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListSecretVersionIdsResponse -> c ListSecretVersionIdsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListSecretVersionIdsResponse #

toConstr :: ListSecretVersionIdsResponse -> Constr #

dataTypeOf :: ListSecretVersionIdsResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListSecretVersionIdsResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListSecretVersionIdsResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListSecretVersionIdsResponse -> ListSecretVersionIdsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListSecretVersionIdsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListSecretVersionIdsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListSecretVersionIdsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListSecretVersionIdsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListSecretVersionIdsResponse -> m ListSecretVersionIdsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListSecretVersionIdsResponse -> m ListSecretVersionIdsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListSecretVersionIdsResponse -> m ListSecretVersionIdsResponse #

Read ListSecretVersionIdsResponse Source # 
Show ListSecretVersionIdsResponse Source # 
Generic ListSecretVersionIdsResponse Source # 
NFData ListSecretVersionIdsResponse Source # 
type Rep ListSecretVersionIdsResponse Source # 
type Rep ListSecretVersionIdsResponse = D1 * (MetaData "ListSecretVersionIdsResponse" "Network.AWS.SecretsManager.ListSecretVersionIds" "amazonka-secretsmanager-1.6.0-K7nD2j5oEj0GsgMw0kPUxD" False) (C1 * (MetaCons "ListSecretVersionIdsResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_lsvirsARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_lsvirsVersions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [SecretVersionsListEntry])))) ((:*:) * (S1 * (MetaSel (Just Symbol "_lsvirsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_lsvirsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_lsvirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))))

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.