libZSservicesZSamazonka-appsyncZSamazonka-appsync
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.AppSync.UpdateApiKey

Description

Updates an API key. The key can be updated while it is not deleted.

Synopsis

Creating a Request

data UpdateApiKey Source #

See: newUpdateApiKey smart constructor.

Constructors

UpdateApiKey' 

Fields

  • expires :: Maybe Integer

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

  • description :: Maybe Text

    A description of the purpose of the API key.

  • apiId :: Text

    The ID for the GraphQL API.

  • id :: Text

    The API key ID.

Instances

Instances details
Eq UpdateApiKey Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

Read UpdateApiKey Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

Show UpdateApiKey Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

Generic UpdateApiKey Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

Associated Types

type Rep UpdateApiKey :: Type -> Type #

NFData UpdateApiKey Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

Methods

rnf :: UpdateApiKey -> () #

Hashable UpdateApiKey Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

ToJSON UpdateApiKey Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

AWSRequest UpdateApiKey Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

Associated Types

type AWSResponse 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

type Rep UpdateApiKey Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

type Rep UpdateApiKey = D1 ('MetaData "UpdateApiKey" "Amazonka.AppSync.UpdateApiKey" "libZSservicesZSamazonka-appsyncZSamazonka-appsync" 'False) (C1 ('MetaCons "UpdateApiKey'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "expires") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "apiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse UpdateApiKey Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

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:

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

$sel:description:UpdateApiKey', updateApiKey_description - A description of the purpose of the API key.

$sel:apiId:UpdateApiKey', updateApiKey_apiId - The ID for the GraphQL API.

$sel:id:UpdateApiKey', updateApiKey_id - The API key ID.

Request Lenses

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

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

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

A description of the purpose of the API key.

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
Eq UpdateApiKeyResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

Read UpdateApiKeyResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

Show UpdateApiKeyResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

Generic UpdateApiKeyResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

Associated Types

type Rep UpdateApiKeyResponse :: Type -> Type #

NFData UpdateApiKeyResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

Methods

rnf :: UpdateApiKeyResponse -> () #

type Rep UpdateApiKeyResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateApiKey

type Rep UpdateApiKeyResponse = D1 ('MetaData "UpdateApiKeyResponse" "Amazonka.AppSync.UpdateApiKey" "libZSservicesZSamazonka-appsyncZSamazonka-appsync" '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