libZSservicesZSamazonka-lightsailZSamazonka-lightsail
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.Lightsail.GetKeyPairs

Description

Returns information about all key pairs in the user's account.

This operation returns paginated results.

Synopsis

Creating a Request

data GetKeyPairs Source #

See: newGetKeyPairs smart constructor.

Constructors

GetKeyPairs' 

Fields

  • pageToken :: Maybe Text

    The token to advance to the next page of results from your request.

    To get a page token, perform an initial GetKeyPairs request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Instances

Instances details
Eq GetKeyPairs Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

Read GetKeyPairs Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

Show GetKeyPairs Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

Generic GetKeyPairs Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

Associated Types

type Rep GetKeyPairs :: Type -> Type #

NFData GetKeyPairs Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

Methods

rnf :: GetKeyPairs -> () #

Hashable GetKeyPairs Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

ToJSON GetKeyPairs Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

AWSPager GetKeyPairs Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

AWSRequest GetKeyPairs Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

Associated Types

type AWSResponse GetKeyPairs #

ToHeaders GetKeyPairs Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

Methods

toHeaders :: GetKeyPairs -> [Header] #

ToPath GetKeyPairs Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

ToQuery GetKeyPairs Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

type Rep GetKeyPairs Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

type Rep GetKeyPairs = D1 ('MetaData "GetKeyPairs" "Amazonka.Lightsail.GetKeyPairs" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "GetKeyPairs'" 'PrefixI 'True) (S1 ('MetaSel ('Just "pageToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))
type AWSResponse GetKeyPairs Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

newGetKeyPairs :: GetKeyPairs Source #

Create a value of GetKeyPairs 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:pageToken:GetKeyPairs', getKeyPairs_pageToken - The token to advance to the next page of results from your request.

To get a page token, perform an initial GetKeyPairs request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Request Lenses

getKeyPairs_pageToken :: Lens' GetKeyPairs (Maybe Text) Source #

The token to advance to the next page of results from your request.

To get a page token, perform an initial GetKeyPairs request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Destructuring the Response

data GetKeyPairsResponse Source #

See: newGetKeyPairsResponse smart constructor.

Constructors

GetKeyPairsResponse' 

Fields

  • nextPageToken :: Maybe Text

    The token to advance to the next page of results from your request.

    A next page token is not returned if there are no more results to display.

    To get the next page of results, perform another GetKeyPairs request and specify the next page token using the pageToken parameter.

  • keyPairs :: Maybe [KeyPair]

    An array of key-value pairs containing information about the key pairs.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GetKeyPairsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

Read GetKeyPairsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

Show GetKeyPairsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

Generic GetKeyPairsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

Associated Types

type Rep GetKeyPairsResponse :: Type -> Type #

NFData GetKeyPairsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

Methods

rnf :: GetKeyPairsResponse -> () #

type Rep GetKeyPairsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

type Rep GetKeyPairsResponse = D1 ('MetaData "GetKeyPairsResponse" "Amazonka.Lightsail.GetKeyPairs" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "GetKeyPairsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextPageToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "keyPairs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [KeyPair])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetKeyPairsResponse Source #

Create a value of GetKeyPairsResponse 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:nextPageToken:GetKeyPairsResponse', getKeyPairsResponse_nextPageToken - The token to advance to the next page of results from your request.

A next page token is not returned if there are no more results to display.

To get the next page of results, perform another GetKeyPairs request and specify the next page token using the pageToken parameter.

$sel:keyPairs:GetKeyPairsResponse', getKeyPairsResponse_keyPairs - An array of key-value pairs containing information about the key pairs.

$sel:httpStatus:GetKeyPairsResponse', getKeyPairsResponse_httpStatus - The response's http status code.

Response Lenses

getKeyPairsResponse_nextPageToken :: Lens' GetKeyPairsResponse (Maybe Text) Source #

The token to advance to the next page of results from your request.

A next page token is not returned if there are no more results to display.

To get the next page of results, perform another GetKeyPairs request and specify the next page token using the pageToken parameter.

getKeyPairsResponse_keyPairs :: Lens' GetKeyPairsResponse (Maybe [KeyPair]) Source #

An array of key-value pairs containing information about the key pairs.