amazonka-appsync-2.0: Amazon AppSync 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.AppSync.UpdateApiKey

Description

Updates an API key. You can update the key as long as it's not deleted.

Synopsis

Creating a Request

data UpdateApiKey Source #

See: newUpdateApiKey smart constructor.

Constructors

UpdateApiKey' 

Fields

  • description :: Maybe Text

    A description of the purpose of the API key.

  • expires :: Maybe Integer

    From the update time, the time after which the API key expires. The date is represented as seconds since the epoch. For more information, see .

  • apiId :: Text

    The ID for the GraphQL API.

  • id :: Text

    The API key ID.

Instances

Instances details
ToJSON UpdateApiKey Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

ToHeaders UpdateApiKey Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

ToPath UpdateApiKey Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

ToQuery UpdateApiKey Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

AWSRequest UpdateApiKey Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

Associated Types

type AWSResponse UpdateApiKey #

Generic UpdateApiKey Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

Associated Types

type Rep UpdateApiKey :: Type -> Type #

Read UpdateApiKey Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

Show UpdateApiKey Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

NFData UpdateApiKey Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

Methods

rnf :: UpdateApiKey -> () #

Eq UpdateApiKey Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

Hashable UpdateApiKey Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

type AWSResponse UpdateApiKey Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

type Rep UpdateApiKey Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

type Rep UpdateApiKey = D1 ('MetaData "UpdateApiKey" "Amazonka.AppSync.UpdateApiKey" "amazonka-appsync-2.0-4Pb6UqteLv1I9NIWaj90bg" 'False) (C1 ('MetaCons "UpdateApiKey'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "expires") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer))) :*: (S1 ('MetaSel ('Just "apiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newUpdateApiKey Source #

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

UpdateApiKey, updateApiKey_description - A description of the purpose of the API key.

UpdateApiKey, updateApiKey_expires - From the update time, the time after which the API key expires. The date is represented as seconds since the epoch. For more information, see .

UpdateApiKey, updateApiKey_apiId - The ID for the GraphQL API.

UpdateApiKey, updateApiKey_id - The API key ID.

Request Lenses

updateApiKey_description :: Lens' UpdateApiKey (Maybe Text) Source #

A description of the purpose of the API key.

updateApiKey_expires :: Lens' UpdateApiKey (Maybe Integer) Source #

From the update time, the time after which the API key expires. The date is represented as seconds since the epoch. For more information, see .

updateApiKey_apiId :: Lens' UpdateApiKey Text Source #

The ID for the GraphQL API.

Destructuring the Response

data UpdateApiKeyResponse Source #

See: newUpdateApiKeyResponse smart constructor.

Constructors

UpdateApiKeyResponse' 

Fields

Instances

Instances details
Generic UpdateApiKeyResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

Associated Types

type Rep UpdateApiKeyResponse :: Type -> Type #

Read UpdateApiKeyResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

Show UpdateApiKeyResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

NFData UpdateApiKeyResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

Methods

rnf :: UpdateApiKeyResponse -> () #

Eq UpdateApiKeyResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

type Rep UpdateApiKeyResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

type Rep UpdateApiKeyResponse = D1 ('MetaData "UpdateApiKeyResponse" "Amazonka.AppSync.UpdateApiKey" "amazonka-appsync-2.0-4Pb6UqteLv1I9NIWaj90bg" 'False) (C1 ('MetaCons "UpdateApiKeyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "apiKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ApiKey)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateApiKeyResponse Source #

Create a value of UpdateApiKeyResponse 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:apiKey:UpdateApiKeyResponse', updateApiKeyResponse_apiKey - The API key.

$sel:httpStatus:UpdateApiKeyResponse', updateApiKeyResponse_httpStatus - The response's http status code.

Response Lenses