amazonka-amplifyuibuilder-2.0: Amazon Amplify UI Builder 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.AmplifyUiBuilder.ExchangeCodeForToken

Description

Exchanges an access code for a token.

Synopsis

Creating a Request

data ExchangeCodeForToken Source #

See: newExchangeCodeForToken smart constructor.

Constructors

ExchangeCodeForToken' 

Fields

Instances

Instances details
ToJSON ExchangeCodeForToken Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.ExchangeCodeForToken

ToHeaders ExchangeCodeForToken Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.ExchangeCodeForToken

ToPath ExchangeCodeForToken Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.ExchangeCodeForToken

ToQuery ExchangeCodeForToken Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.ExchangeCodeForToken

AWSRequest ExchangeCodeForToken Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.ExchangeCodeForToken

Associated Types

type AWSResponse ExchangeCodeForToken #

Generic ExchangeCodeForToken Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.ExchangeCodeForToken

Associated Types

type Rep ExchangeCodeForToken :: Type -> Type #

Show ExchangeCodeForToken Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.ExchangeCodeForToken

NFData ExchangeCodeForToken Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.ExchangeCodeForToken

Methods

rnf :: ExchangeCodeForToken -> () #

Eq ExchangeCodeForToken Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.ExchangeCodeForToken

Hashable ExchangeCodeForToken Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.ExchangeCodeForToken

type AWSResponse ExchangeCodeForToken Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.ExchangeCodeForToken

type Rep ExchangeCodeForToken Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.ExchangeCodeForToken

type Rep ExchangeCodeForToken = D1 ('MetaData "ExchangeCodeForToken" "Amazonka.AmplifyUiBuilder.ExchangeCodeForToken" "amazonka-amplifyuibuilder-2.0-KN0MRaPu7dZCAXr3ruBTcC" 'False) (C1 ('MetaCons "ExchangeCodeForToken'" 'PrefixI 'True) (S1 ('MetaSel ('Just "provider") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TokenProviders) :*: S1 ('MetaSel ('Just "request") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ExchangeCodeForTokenRequestBody)))

newExchangeCodeForToken Source #

Create a value of ExchangeCodeForToken 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:provider:ExchangeCodeForToken', exchangeCodeForToken_provider - The third-party provider for the token. The only valid value is figma.

$sel:request:ExchangeCodeForToken', exchangeCodeForToken_request - Describes the configuration of the request.

Request Lenses

exchangeCodeForToken_provider :: Lens' ExchangeCodeForToken TokenProviders Source #

The third-party provider for the token. The only valid value is figma.

Destructuring the Response

data ExchangeCodeForTokenResponse Source #

See: newExchangeCodeForTokenResponse smart constructor.

Constructors

ExchangeCodeForTokenResponse' 

Fields

Instances

Instances details
Generic ExchangeCodeForTokenResponse Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.ExchangeCodeForToken

Associated Types

type Rep ExchangeCodeForTokenResponse :: Type -> Type #

Show ExchangeCodeForTokenResponse Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.ExchangeCodeForToken

NFData ExchangeCodeForTokenResponse Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.ExchangeCodeForToken

Eq ExchangeCodeForTokenResponse Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.ExchangeCodeForToken

type Rep ExchangeCodeForTokenResponse Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.ExchangeCodeForToken

type Rep ExchangeCodeForTokenResponse = D1 ('MetaData "ExchangeCodeForTokenResponse" "Amazonka.AmplifyUiBuilder.ExchangeCodeForToken" "amazonka-amplifyuibuilder-2.0-KN0MRaPu7dZCAXr3ruBTcC" 'False) (C1 ('MetaCons "ExchangeCodeForTokenResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "accessToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text))) :*: (S1 ('MetaSel ('Just "expiresIn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "refreshToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)))))

newExchangeCodeForTokenResponse Source #

Create a value of ExchangeCodeForTokenResponse 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:httpStatus:ExchangeCodeForTokenResponse', exchangeCodeForTokenResponse_httpStatus - The response's http status code.

$sel:accessToken:ExchangeCodeForTokenResponse', exchangeCodeForTokenResponse_accessToken - The access token.

$sel:expiresIn:ExchangeCodeForTokenResponse', exchangeCodeForTokenResponse_expiresIn - The date and time when the new access token expires.

$sel:refreshToken:ExchangeCodeForTokenResponse', exchangeCodeForTokenResponse_refreshToken - The token to use to refresh a previously issued access token that might have expired.

Response Lenses

exchangeCodeForTokenResponse_expiresIn :: Lens' ExchangeCodeForTokenResponse Int Source #

The date and time when the new access token expires.

exchangeCodeForTokenResponse_refreshToken :: Lens' ExchangeCodeForTokenResponse Text Source #

The token to use to refresh a previously issued access token that might have expired.