libZSservicesZSamazonka-backupZSamazonka-backup
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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.

Synopsis

Creating a Request

data ListProtectedResources Source #

See: newListProtectedResources smart constructor.

Constructors

ListProtectedResources' 

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.

  • maxResults :: Maybe Natural

    The maximum number of items to be returned.

Instances

Instances details
Eq ListProtectedResources Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

Read ListProtectedResources Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

Show ListProtectedResources Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

Generic ListProtectedResources Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

Associated Types

type Rep ListProtectedResources :: Type -> Type #

NFData ListProtectedResources Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

Methods

rnf :: ListProtectedResources -> () #

Hashable ListProtectedResources Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

AWSRequest ListProtectedResources Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

Associated Types

type AWSResponse ListProtectedResources #

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

type Rep ListProtectedResources Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

type Rep ListProtectedResources = D1 ('MetaData "ListProtectedResources" "Amazonka.Backup.ListProtectedResources" "libZSservicesZSamazonka-backupZSamazonka-backup" 'False) (C1 ('MetaCons "ListProtectedResources'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))
type AWSResponse ListProtectedResources Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

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:nextToken: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.

$sel:maxResults:ListProtectedResources', listProtectedResources_maxResults - The maximum number of items to be returned.

Request Lenses

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.

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

The maximum number of items to be returned.

Destructuring the Response

data ListProtectedResourcesResponse Source #

See: newListProtectedResourcesResponse smart constructor.

Constructors

ListProtectedResourcesResponse' 

Fields

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

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListProtectedResourcesResponse Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

Read ListProtectedResourcesResponse Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

Show ListProtectedResourcesResponse Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

Generic ListProtectedResourcesResponse Source # 
Instance details

Defined in Amazonka.Backup.ListProtectedResources

Associated Types

type Rep ListProtectedResourcesResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-backupZSamazonka-backup" 'False) (C1 ('MetaCons "ListProtectedResourcesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "results") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ProtectedResource])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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:

$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:nextToken: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:httpStatus:ListProtectedResourcesResponse', listProtectedResourcesResponse_httpStatus - The response's http status code.

Response Lenses

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.

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.