amazonka-backup-gateway-2.0: Amazon Backup Gateway 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.BackupGateway.ListHypervisors

Description

Lists your hypervisors.

This operation returns paginated results.

Synopsis

Creating a Request

data ListHypervisors Source #

See: newListHypervisors smart constructor.

Constructors

ListHypervisors' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of hypervisors to list.

  • 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
ToJSON ListHypervisors Source # 
Instance details

Defined in Amazonka.BackupGateway.ListHypervisors

ToHeaders ListHypervisors Source # 
Instance details

Defined in Amazonka.BackupGateway.ListHypervisors

ToPath ListHypervisors Source # 
Instance details

Defined in Amazonka.BackupGateway.ListHypervisors

ToQuery ListHypervisors Source # 
Instance details

Defined in Amazonka.BackupGateway.ListHypervisors

AWSPager ListHypervisors Source # 
Instance details

Defined in Amazonka.BackupGateway.ListHypervisors

AWSRequest ListHypervisors Source # 
Instance details

Defined in Amazonka.BackupGateway.ListHypervisors

Associated Types

type AWSResponse ListHypervisors #

Generic ListHypervisors Source # 
Instance details

Defined in Amazonka.BackupGateway.ListHypervisors

Associated Types

type Rep ListHypervisors :: Type -> Type #

Read ListHypervisors Source # 
Instance details

Defined in Amazonka.BackupGateway.ListHypervisors

Show ListHypervisors Source # 
Instance details

Defined in Amazonka.BackupGateway.ListHypervisors

NFData ListHypervisors Source # 
Instance details

Defined in Amazonka.BackupGateway.ListHypervisors

Methods

rnf :: ListHypervisors -> () #

Eq ListHypervisors Source # 
Instance details

Defined in Amazonka.BackupGateway.ListHypervisors

Hashable ListHypervisors Source # 
Instance details

Defined in Amazonka.BackupGateway.ListHypervisors

type AWSResponse ListHypervisors Source # 
Instance details

Defined in Amazonka.BackupGateway.ListHypervisors

type Rep ListHypervisors Source # 
Instance details

Defined in Amazonka.BackupGateway.ListHypervisors

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

newListHypervisors :: ListHypervisors Source #

Create a value of ListHypervisors 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:ListHypervisors', listHypervisors_maxResults - The maximum number of hypervisors to list.

ListHypervisors, listHypervisors_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

listHypervisors_maxResults :: Lens' ListHypervisors (Maybe Natural) Source #

The maximum number of hypervisors to list.

listHypervisors_nextToken :: Lens' ListHypervisors (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 ListHypervisorsResponse Source #

See: newListHypervisorsResponse smart constructor.

Constructors

ListHypervisorsResponse' 

Fields

  • hypervisors :: Maybe [Hypervisor]

    A list of your Hypervisor objects, ordered by their Amazon Resource Names (ARNs).

  • 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 ListHypervisorsResponse Source # 
Instance details

Defined in Amazonka.BackupGateway.ListHypervisors

Associated Types

type Rep ListHypervisorsResponse :: Type -> Type #

Read ListHypervisorsResponse Source # 
Instance details

Defined in Amazonka.BackupGateway.ListHypervisors

Show ListHypervisorsResponse Source # 
Instance details

Defined in Amazonka.BackupGateway.ListHypervisors

NFData ListHypervisorsResponse Source # 
Instance details

Defined in Amazonka.BackupGateway.ListHypervisors

Methods

rnf :: ListHypervisorsResponse -> () #

Eq ListHypervisorsResponse Source # 
Instance details

Defined in Amazonka.BackupGateway.ListHypervisors

type Rep ListHypervisorsResponse Source # 
Instance details

Defined in Amazonka.BackupGateway.ListHypervisors

type Rep ListHypervisorsResponse = D1 ('MetaData "ListHypervisorsResponse" "Amazonka.BackupGateway.ListHypervisors" "amazonka-backup-gateway-2.0-Ee3gVOmXMeV2r3uv4sRO9" 'False) (C1 ('MetaCons "ListHypervisorsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "hypervisors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Hypervisor])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListHypervisorsResponse Source #

Create a value of ListHypervisorsResponse 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:hypervisors:ListHypervisorsResponse', listHypervisorsResponse_hypervisors - A list of your Hypervisor objects, ordered by their Amazon Resource Names (ARNs).

ListHypervisors, listHypervisorsResponse_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:ListHypervisorsResponse', listHypervisorsResponse_httpStatus - The response's http status code.

Response Lenses

listHypervisorsResponse_hypervisors :: Lens' ListHypervisorsResponse (Maybe [Hypervisor]) Source #

A list of your Hypervisor objects, ordered by their Amazon Resource Names (ARNs).

listHypervisorsResponse_nextToken :: Lens' ListHypervisorsResponse (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.