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.ListProtectedResources

Description

Returns an array of resources successfully backed up by Backup, including the time the resource was saved, an Amazon Resource Name (ARN) of the resource, and a resource type.

This operation returns paginated results.

Synopsis

Creating a Request

data ListProtectedResources Source #

See: newListProtectedResources smart constructor.

Constructors

ListProtectedResources' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of items to be returned.

  • nextToken :: Maybe Text

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

Instances

Instances details
ToHeaders ListProtectedResources Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

ToPath ListProtectedResources Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

ToQuery ListProtectedResources Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

AWSPager ListProtectedResources Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

AWSRequest ListProtectedResources Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

Associated Types

type AWSResponse ListProtectedResources #

Generic ListProtectedResources Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

Associated Types

type Rep ListProtectedResources :: Type -> Type #

Read ListProtectedResources Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

Show ListProtectedResources Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

NFData ListProtectedResources Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

Methods

rnf :: ListProtectedResources -> () #

Eq ListProtectedResources Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

Hashable ListProtectedResources Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

type AWSResponse ListProtectedResources Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

type Rep ListProtectedResources Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

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

newListProtectedResources :: ListProtectedResources Source #

Create a value of ListProtectedResources 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:ListProtectedResources', listProtectedResources_maxResults - The maximum number of items to be returned.

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

Request Lenses

listProtectedResources_maxResults :: Lens' ListProtectedResources (Maybe Natural) Source #

The maximum number of items to be returned.

listProtectedResources_nextToken :: Lens' ListProtectedResources (Maybe Text) Source #

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

Destructuring the Response

data ListProtectedResourcesResponse Source #

See: newListProtectedResourcesResponse smart constructor.

Constructors

ListProtectedResourcesResponse' 

Fields

  • nextToken :: Maybe Text

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

  • results :: Maybe [ProtectedResource]

    An array of resources successfully backed up by Backup including the time the resource was saved, an Amazon Resource Name (ARN) of the resource, and a resource type.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListProtectedResourcesResponse Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

Associated Types

type Rep ListProtectedResourcesResponse :: Type -> Type #

Read ListProtectedResourcesResponse Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

Show ListProtectedResourcesResponse Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

NFData ListProtectedResourcesResponse Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

Eq ListProtectedResourcesResponse Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

type Rep ListProtectedResourcesResponse Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

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

newListProtectedResourcesResponse Source #

Create a value of ListProtectedResourcesResponse 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:

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

$sel:results:ListProtectedResourcesResponse', listProtectedResourcesResponse_results - An array of resources successfully backed up by Backup including the time the resource was saved, an Amazon Resource Name (ARN) of the resource, and a resource type.

$sel:httpStatus:ListProtectedResourcesResponse', listProtectedResourcesResponse_httpStatus - The response's http status code.

Response Lenses

listProtectedResourcesResponse_nextToken :: Lens' ListProtectedResourcesResponse (Maybe Text) Source #

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

listProtectedResourcesResponse_results :: Lens' ListProtectedResourcesResponse (Maybe [ProtectedResource]) Source #

An array of resources successfully backed up by Backup including the time the resource was saved, an Amazon Resource Name (ARN) of the resource, and a resource type.