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

Defined in Network.AWS.CloudHSMv2.DescribeBackups

Data DescribeBackups Source # 
Instance details

Defined in Network.AWS.CloudHSMv2.DescribeBackups

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

Defined in Network.AWS.CloudHSMv2.DescribeBackups

Show DescribeBackups Source # 
Instance details

Defined in Network.AWS.CloudHSMv2.DescribeBackups

Generic DescribeBackups Source # 
Instance details

Defined in Network.AWS.CloudHSMv2.DescribeBackups

Associated Types

type Rep DescribeBackups :: Type -> Type #

Hashable DescribeBackups Source # 
Instance details

Defined in Network.AWS.CloudHSMv2.DescribeBackups

ToJSON DescribeBackups Source # 
Instance details

Defined in Network.AWS.CloudHSMv2.DescribeBackups

AWSPager DescribeBackups Source # 
Instance details

Defined in Network.AWS.CloudHSMv2.DescribeBackups

AWSRequest DescribeBackups Source # 
Instance details

Defined in Network.AWS.CloudHSMv2.DescribeBackups

Associated Types

type Rs DescribeBackups :: Type #

ToHeaders DescribeBackups Source # 
Instance details

Defined in Network.AWS.CloudHSMv2.DescribeBackups

ToPath DescribeBackups Source # 
Instance details

Defined in Network.AWS.CloudHSMv2.DescribeBackups

ToQuery DescribeBackups Source # 
Instance details

Defined in Network.AWS.CloudHSMv2.DescribeBackups

NFData DescribeBackups Source # 
Instance details

Defined in Network.AWS.CloudHSMv2.DescribeBackups

Methods

rnf :: DescribeBackups -> () #

type Rep DescribeBackups Source # 
Instance details

Defined in Network.AWS.CloudHSMv2.DescribeBackups

type Rep DescribeBackups = D1 (MetaData "DescribeBackups" "Network.AWS.CloudHSMv2.DescribeBackups" "amazonka-cloudhsmv2-1.6.1-HDPIS5infpK5ykPazFhIIc" False) (C1 (MetaCons "DescribeBackups'" PrefixI True) (S1 (MetaSel (Just "_dbFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text [Text]))) :*: (S1 (MetaSel (Just "_dbNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dbMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)))))
type Rs DescribeBackups Source # 
Instance details

Defined in Network.AWS.CloudHSMv2.DescribeBackups

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

Defined in Network.AWS.CloudHSMv2.DescribeBackups

Data DescribeBackupsResponse Source # 
Instance details

Defined in Network.AWS.CloudHSMv2.DescribeBackups

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

Defined in Network.AWS.CloudHSMv2.DescribeBackups

Show DescribeBackupsResponse Source # 
Instance details

Defined in Network.AWS.CloudHSMv2.DescribeBackups

Generic DescribeBackupsResponse Source # 
Instance details

Defined in Network.AWS.CloudHSMv2.DescribeBackups

Associated Types

type Rep DescribeBackupsResponse :: Type -> Type #

NFData DescribeBackupsResponse Source # 
Instance details

Defined in Network.AWS.CloudHSMv2.DescribeBackups

Methods

rnf :: DescribeBackupsResponse -> () #

type Rep DescribeBackupsResponse Source # 
Instance details

Defined in Network.AWS.CloudHSMv2.DescribeBackups

type Rep DescribeBackupsResponse = D1 (MetaData "DescribeBackupsResponse" "Network.AWS.CloudHSMv2.DescribeBackups" "amazonka-cloudhsmv2-1.6.1-HDPIS5infpK5ykPazFhIIc" False) (C1 (MetaCons "DescribeBackupsResponse'" PrefixI True) (S1 (MetaSel (Just "_dbrsBackups") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Backup])) :*: (S1 (MetaSel (Just "_dbrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_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.