amazonka-cloudhsmv2-1.6.0: Amazon CloudHSM V2 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.CloudHSMv2.DescribeBackups

Contents

Description

Gets information about backups of AWS CloudHSM clusters.

This is a paginated operation, which means that each response might contain only a subset of all the backups. When the response contains only a subset of backups, it includes a NextToken value. Use this value in a subsequent DescribeBackups request to get more backups. When you receive a response with no NextToken (or an empty or null value), that means there are no more backups to get.

This operation returns paginated results.

Synopsis

Creating a Request

describeBackups :: DescribeBackups Source #

Creates a value of DescribeBackups with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dbFilters - One or more filters to limit the items returned in the response. Use the backupIds filter to return only the specified backups. Specify backups by their backup identifier (ID). Use the clusterIds filter to return only the backups for the specified clusters. Specify clusters by their cluster identifier (ID). Use the states filter to return only backups that match the specified state.
  • dbNextToken - The NextToken value that you received in the previous response. Use this value to get more backups.
  • dbMaxResults - The maximum number of backups to return in the response. When there are more backups than the number you specify, the response contains a NextToken value.

data DescribeBackups Source #

See: describeBackups smart constructor.

Instances

Eq DescribeBackups Source # 
Data DescribeBackups Source # 

Methods

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

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

toConstr :: DescribeBackups -> Constr #

dataTypeOf :: DescribeBackups -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: DescribeBackups -> () #

AWSPager DescribeBackups Source # 
AWSRequest DescribeBackups Source # 
ToHeaders DescribeBackups Source # 
ToPath DescribeBackups Source # 
ToQuery DescribeBackups Source # 
type Rep DescribeBackups Source # 
type Rep DescribeBackups = D1 * (MetaData "DescribeBackups" "Network.AWS.CloudHSMv2.DescribeBackups" "amazonka-cloudhsmv2-1.6.0-9vsD5g1UuU59SmJh0gvUWW" False) (C1 * (MetaCons "DescribeBackups'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dbFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Map Text [Text])))) ((:*:) * (S1 * (MetaSel (Just Symbol "_dbNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_dbMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))))))
type Rs DescribeBackups Source # 

Request Lenses

dbFilters :: Lens' DescribeBackups (HashMap Text [Text]) Source #

One or more filters to limit the items returned in the response. Use the backupIds filter to return only the specified backups. Specify backups by their backup identifier (ID). Use the clusterIds filter to return only the backups for the specified clusters. Specify clusters by their cluster identifier (ID). Use the states filter to return only backups that match the specified state.

dbNextToken :: Lens' DescribeBackups (Maybe Text) Source #

The NextToken value that you received in the previous response. Use this value to get more backups.

dbMaxResults :: Lens' DescribeBackups (Maybe Natural) Source #

The maximum number of backups to return in the response. When there are more backups than the number you specify, the response contains a NextToken value.

Destructuring the Response

describeBackupsResponse Source #

Creates a value of DescribeBackupsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dbrsBackups - A list of backups.
  • dbrsNextToken - An opaque string that indicates that the response contains only a subset of backups. Use this value in a subsequent DescribeBackups request to get more backups.
  • dbrsResponseStatus - -- | The response status code.

data DescribeBackupsResponse Source #

See: describeBackupsResponse smart constructor.

Instances

Eq DescribeBackupsResponse Source # 
Data DescribeBackupsResponse Source # 

Methods

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

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

toConstr :: DescribeBackupsResponse -> Constr #

dataTypeOf :: DescribeBackupsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeBackupsResponse Source # 
Show DescribeBackupsResponse Source # 
Generic DescribeBackupsResponse Source # 
NFData DescribeBackupsResponse Source # 

Methods

rnf :: DescribeBackupsResponse -> () #

type Rep DescribeBackupsResponse Source # 
type Rep DescribeBackupsResponse = D1 * (MetaData "DescribeBackupsResponse" "Network.AWS.CloudHSMv2.DescribeBackups" "amazonka-cloudhsmv2-1.6.0-9vsD5g1UuU59SmJh0gvUWW" False) (C1 * (MetaCons "DescribeBackupsResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dbrsBackups") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Backup]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_dbrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_dbrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

dbrsNextToken :: Lens' DescribeBackupsResponse (Maybe Text) Source #

An opaque string that indicates that the response contains only a subset of backups. Use this value in a subsequent DescribeBackups request to get more backups.