amazonka-lightsail-2.0: Amazon Lightsail 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.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

  • includeDefaultKeyPair :: Maybe Bool

    A Boolean value that indicates whether to include the default key pair in the response of your request.

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

Defined in Amazonka.Lightsail.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

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 #

Generic GetKeyPairs Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

Associated Types

type Rep GetKeyPairs :: Type -> Type #

Read GetKeyPairs Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

Show GetKeyPairs Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

NFData GetKeyPairs Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

Methods

rnf :: GetKeyPairs -> () #

Eq GetKeyPairs Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

Hashable GetKeyPairs Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

type AWSResponse 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" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "GetKeyPairs'" 'PrefixI 'True) (S1 ('MetaSel ('Just "includeDefaultKeyPair") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "pageToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

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:includeDefaultKeyPair:GetKeyPairs', getKeyPairs_includeDefaultKeyPair - A Boolean value that indicates whether to include the default key pair in the response of your request.

$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_includeDefaultKeyPair :: Lens' GetKeyPairs (Maybe Bool) Source #

A Boolean value that indicates whether to include the default key pair in the response of your request.

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

  • keyPairs :: Maybe [KeyPair]

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

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetKeyPairsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

Associated Types

type Rep GetKeyPairsResponse :: Type -> Type #

Read GetKeyPairsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

Show GetKeyPairsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

NFData GetKeyPairsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

Methods

rnf :: GetKeyPairsResponse -> () #

Eq GetKeyPairsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

type Rep GetKeyPairsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPairs

type Rep GetKeyPairsResponse = D1 ('MetaData "GetKeyPairsResponse" "Amazonka.Lightsail.GetKeyPairs" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "GetKeyPairsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "keyPairs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [KeyPair])) :*: (S1 ('MetaSel ('Just "nextPageToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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:keyPairs:GetKeyPairsResponse', getKeyPairsResponse_keyPairs - An array of key-value pairs containing information about the key pairs.

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

Response Lenses

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

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

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.