amazonka-backup-2.0: Amazon Backup SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Backup.ListLegalHolds

Description

This action returns metadata about active and previous legal holds.

This operation returns paginated results.

Synopsis

Creating a Request

data ListLegalHolds Source #

See: newListLegalHolds smart constructor.

Constructors

ListLegalHolds' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of resource list items to be returned.

  • nextToken :: Maybe Text

    The next item following a partial list of returned resources. For example, if a request is made to return maxResults number of resources, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

Instances

Instances details
ToHeaders ListLegalHolds Source # 
Instance details

Defined in Amazonka.Backup.ListLegalHolds

ToPath ListLegalHolds Source # 
Instance details

Defined in Amazonka.Backup.ListLegalHolds

ToQuery ListLegalHolds Source # 
Instance details

Defined in Amazonka.Backup.ListLegalHolds

AWSPager ListLegalHolds Source # 
Instance details

Defined in Amazonka.Backup.ListLegalHolds

AWSRequest ListLegalHolds Source # 
Instance details

Defined in Amazonka.Backup.ListLegalHolds

Associated Types

type AWSResponse ListLegalHolds #

Generic ListLegalHolds Source # 
Instance details

Defined in Amazonka.Backup.ListLegalHolds

Associated Types

type Rep ListLegalHolds :: Type -> Type #

Read ListLegalHolds Source # 
Instance details

Defined in Amazonka.Backup.ListLegalHolds

Show ListLegalHolds Source # 
Instance details

Defined in Amazonka.Backup.ListLegalHolds

NFData ListLegalHolds Source # 
Instance details

Defined in Amazonka.Backup.ListLegalHolds

Methods

rnf :: ListLegalHolds -> () #

Eq ListLegalHolds Source # 
Instance details

Defined in Amazonka.Backup.ListLegalHolds

Hashable ListLegalHolds Source # 
Instance details

Defined in Amazonka.Backup.ListLegalHolds

type AWSResponse ListLegalHolds Source # 
Instance details

Defined in Amazonka.Backup.ListLegalHolds

type Rep ListLegalHolds Source # 
Instance details

Defined in Amazonka.Backup.ListLegalHolds

type Rep ListLegalHolds = D1 ('MetaData "ListLegalHolds" "Amazonka.Backup.ListLegalHolds" "amazonka-backup-2.0-LovIt41tphM6jvgQJhTyRf" 'False) (C1 ('MetaCons "ListLegalHolds'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newListLegalHolds :: ListLegalHolds Source #

Create a value of ListLegalHolds with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:maxResults:ListLegalHolds', listLegalHolds_maxResults - The maximum number of resource list items to be returned.

ListLegalHolds, listLegalHolds_nextToken - The next item following a partial list of returned resources. For example, if a request is made to return maxResults number of resources, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

Request Lenses

listLegalHolds_maxResults :: Lens' ListLegalHolds (Maybe Natural) Source #

The maximum number of resource list items to be returned.

listLegalHolds_nextToken :: Lens' ListLegalHolds (Maybe Text) Source #

The next item following a partial list of returned resources. For example, if a request is made to return maxResults number of resources, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

Destructuring the Response

data ListLegalHoldsResponse Source #

See: newListLegalHoldsResponse smart constructor.

Constructors

ListLegalHoldsResponse' 

Fields

  • legalHolds :: Maybe [LegalHold]

    This is an array of returned legal holds, both active and previous.

  • nextToken :: Maybe Text

    The next item following a partial list of returned resources. For example, if a request is made to return maxResults number of resources, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListLegalHoldsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListLegalHolds

Associated Types

type Rep ListLegalHoldsResponse :: Type -> Type #

Read ListLegalHoldsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListLegalHolds

Show ListLegalHoldsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListLegalHolds

NFData ListLegalHoldsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListLegalHolds

Methods

rnf :: ListLegalHoldsResponse -> () #

Eq ListLegalHoldsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListLegalHolds

type Rep ListLegalHoldsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListLegalHolds

type Rep ListLegalHoldsResponse = D1 ('MetaData "ListLegalHoldsResponse" "Amazonka.Backup.ListLegalHolds" "amazonka-backup-2.0-LovIt41tphM6jvgQJhTyRf" 'False) (C1 ('MetaCons "ListLegalHoldsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "legalHolds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [LegalHold])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListLegalHoldsResponse Source #

Create a value of ListLegalHoldsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:legalHolds:ListLegalHoldsResponse', listLegalHoldsResponse_legalHolds - This is an array of returned legal holds, both active and previous.

ListLegalHolds, listLegalHoldsResponse_nextToken - The next item following a partial list of returned resources. For example, if a request is made to return maxResults number of resources, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

$sel:httpStatus:ListLegalHoldsResponse', listLegalHoldsResponse_httpStatus - The response's http status code.

Response Lenses

listLegalHoldsResponse_legalHolds :: Lens' ListLegalHoldsResponse (Maybe [LegalHold]) Source #

This is an array of returned legal holds, both active and previous.

listLegalHoldsResponse_nextToken :: Lens' ListLegalHoldsResponse (Maybe Text) Source #

The next item following a partial list of returned resources. For example, if a request is made to return maxResults number of resources, NextToken allows you to return more items in your list starting at the location pointed to by the next token.