libZSservicesZSamazonka-ecr-publicZSamazonka-ecr-public
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.ECRPublic.GetAuthorizationToken

Description

Retrieves an authorization token. An authorization token represents your IAM authentication credentials and can be used to access any Amazon ECR registry that your IAM principal has access to. The authorization token is valid for 12 hours. This API requires the ecr-public:GetAuthorizationToken and sts:GetServiceBearerToken permissions.

Synopsis

Creating a Request

data GetAuthorizationToken Source #

See: newGetAuthorizationToken smart constructor.

Instances

Instances details
Eq GetAuthorizationToken Source # 
Instance details

Defined in Amazonka.ECRPublic.GetAuthorizationToken

Read GetAuthorizationToken Source # 
Instance details

Defined in Amazonka.ECRPublic.GetAuthorizationToken

Show GetAuthorizationToken Source # 
Instance details

Defined in Amazonka.ECRPublic.GetAuthorizationToken

Generic GetAuthorizationToken Source # 
Instance details

Defined in Amazonka.ECRPublic.GetAuthorizationToken

Associated Types

type Rep GetAuthorizationToken :: Type -> Type #

NFData GetAuthorizationToken Source # 
Instance details

Defined in Amazonka.ECRPublic.GetAuthorizationToken

Methods

rnf :: GetAuthorizationToken -> () #

Hashable GetAuthorizationToken Source # 
Instance details

Defined in Amazonka.ECRPublic.GetAuthorizationToken

ToJSON GetAuthorizationToken Source # 
Instance details

Defined in Amazonka.ECRPublic.GetAuthorizationToken

AWSRequest GetAuthorizationToken Source # 
Instance details

Defined in Amazonka.ECRPublic.GetAuthorizationToken

Associated Types

type AWSResponse GetAuthorizationToken #

ToHeaders GetAuthorizationToken Source # 
Instance details

Defined in Amazonka.ECRPublic.GetAuthorizationToken

ToPath GetAuthorizationToken Source # 
Instance details

Defined in Amazonka.ECRPublic.GetAuthorizationToken

ToQuery GetAuthorizationToken Source # 
Instance details

Defined in Amazonka.ECRPublic.GetAuthorizationToken

type Rep GetAuthorizationToken Source # 
Instance details

Defined in Amazonka.ECRPublic.GetAuthorizationToken

type Rep GetAuthorizationToken = D1 ('MetaData "GetAuthorizationToken" "Amazonka.ECRPublic.GetAuthorizationToken" "libZSservicesZSamazonka-ecr-publicZSamazonka-ecr-public" 'False) (C1 ('MetaCons "GetAuthorizationToken'" 'PrefixI 'False) (U1 :: Type -> Type))
type AWSResponse GetAuthorizationToken Source # 
Instance details

Defined in Amazonka.ECRPublic.GetAuthorizationToken

newGetAuthorizationToken :: GetAuthorizationToken Source #

Create a value of GetAuthorizationToken with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

Destructuring the Response

data GetAuthorizationTokenResponse Source #

See: newGetAuthorizationTokenResponse smart constructor.

Constructors

GetAuthorizationTokenResponse' 

Fields

Instances

Instances details
Eq GetAuthorizationTokenResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.GetAuthorizationToken

Read GetAuthorizationTokenResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.GetAuthorizationToken

Show GetAuthorizationTokenResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.GetAuthorizationToken

Generic GetAuthorizationTokenResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.GetAuthorizationToken

Associated Types

type Rep GetAuthorizationTokenResponse :: Type -> Type #

NFData GetAuthorizationTokenResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.GetAuthorizationToken

type Rep GetAuthorizationTokenResponse Source # 
Instance details

Defined in Amazonka.ECRPublic.GetAuthorizationToken

type Rep GetAuthorizationTokenResponse = D1 ('MetaData "GetAuthorizationTokenResponse" "Amazonka.ECRPublic.GetAuthorizationToken" "libZSservicesZSamazonka-ecr-publicZSamazonka-ecr-public" 'False) (C1 ('MetaCons "GetAuthorizationTokenResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "authorizationData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AuthorizationData)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetAuthorizationTokenResponse Source #

Create a value of GetAuthorizationTokenResponse 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:authorizationData:GetAuthorizationTokenResponse', getAuthorizationTokenResponse_authorizationData - An authorization token data object that corresponds to a public registry.

$sel:httpStatus:GetAuthorizationTokenResponse', getAuthorizationTokenResponse_httpStatus - The response's http status code.

Response Lenses

getAuthorizationTokenResponse_authorizationData :: Lens' GetAuthorizationTokenResponse (Maybe AuthorizationData) Source #

An authorization token data object that corresponds to a public registry.