amazonka-secretsmanager-1.6.1: 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 # 
Instance details

Defined in Network.AWS.SecretsManager.ListSecretVersionIds

Data ListSecretVersionIds Source # 
Instance details

Defined in Network.AWS.SecretsManager.ListSecretVersionIds

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 # 
Instance details

Defined in Network.AWS.SecretsManager.ListSecretVersionIds

Show ListSecretVersionIds Source # 
Instance details

Defined in Network.AWS.SecretsManager.ListSecretVersionIds

Generic ListSecretVersionIds Source # 
Instance details

Defined in Network.AWS.SecretsManager.ListSecretVersionIds

Associated Types

type Rep ListSecretVersionIds :: Type -> Type #

Hashable ListSecretVersionIds Source # 
Instance details

Defined in Network.AWS.SecretsManager.ListSecretVersionIds

ToJSON ListSecretVersionIds Source # 
Instance details

Defined in Network.AWS.SecretsManager.ListSecretVersionIds

AWSRequest ListSecretVersionIds Source # 
Instance details

Defined in Network.AWS.SecretsManager.ListSecretVersionIds

Associated Types

type Rs ListSecretVersionIds :: Type #

ToHeaders ListSecretVersionIds Source # 
Instance details

Defined in Network.AWS.SecretsManager.ListSecretVersionIds

ToPath ListSecretVersionIds Source # 
Instance details

Defined in Network.AWS.SecretsManager.ListSecretVersionIds

ToQuery ListSecretVersionIds Source # 
Instance details

Defined in Network.AWS.SecretsManager.ListSecretVersionIds

NFData ListSecretVersionIds Source # 
Instance details

Defined in Network.AWS.SecretsManager.ListSecretVersionIds

Methods

rnf :: ListSecretVersionIds -> () #

type Rep ListSecretVersionIds Source # 
Instance details

Defined in Network.AWS.SecretsManager.ListSecretVersionIds

type Rep ListSecretVersionIds = D1 (MetaData "ListSecretVersionIds" "Network.AWS.SecretsManager.ListSecretVersionIds" "amazonka-secretsmanager-1.6.1-6zeL5AAjwvS5hEyIAnn7A2" False) (C1 (MetaCons "ListSecretVersionIds'" PrefixI True) ((S1 (MetaSel (Just "_lsviNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lsviIncludeDeprecated") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 (MetaSel (Just "_lsviMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)) :*: S1 (MetaSel (Just "_lsviSecretId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs ListSecretVersionIds Source # 
Instance details

Defined in Network.AWS.SecretsManager.ListSecretVersionIds

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 # 
Instance details

Defined in Network.AWS.SecretsManager.ListSecretVersionIds

Data ListSecretVersionIdsResponse Source # 
Instance details

Defined in Network.AWS.SecretsManager.ListSecretVersionIds

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 # 
Instance details

Defined in Network.AWS.SecretsManager.ListSecretVersionIds

Show ListSecretVersionIdsResponse Source # 
Instance details

Defined in Network.AWS.SecretsManager.ListSecretVersionIds

Generic ListSecretVersionIdsResponse Source # 
Instance details

Defined in Network.AWS.SecretsManager.ListSecretVersionIds

Associated Types

type Rep ListSecretVersionIdsResponse :: Type -> Type #

NFData ListSecretVersionIdsResponse Source # 
Instance details

Defined in Network.AWS.SecretsManager.ListSecretVersionIds

type Rep ListSecretVersionIdsResponse Source # 
Instance details

Defined in Network.AWS.SecretsManager.ListSecretVersionIds

type Rep ListSecretVersionIdsResponse = D1 (MetaData "ListSecretVersionIdsResponse" "Network.AWS.SecretsManager.ListSecretVersionIds" "amazonka-secretsmanager-1.6.1-6zeL5AAjwvS5hEyIAnn7A2" False) (C1 (MetaCons "ListSecretVersionIdsResponse'" PrefixI True) ((S1 (MetaSel (Just "_lsvirsARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lsvirsVersions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [SecretVersionsListEntry]))) :*: (S1 (MetaSel (Just "_lsvirsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_lsvirsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_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.