amazonka-ecr-2.0: Amazon EC2 Container Registry 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.ECR.Types.AuthorizationData

Description

 
Synopsis

Documentation

data AuthorizationData Source #

An object representing authorization data for an Amazon ECR registry.

See: newAuthorizationData smart constructor.

Constructors

AuthorizationData' 

Fields

  • authorizationToken :: Maybe Text

    A base64-encoded string that contains authorization data for the specified Amazon ECR registry. When the string is decoded, it is presented in the format user:password for private registry authentication using docker login.

  • expiresAt :: Maybe POSIX

    The Unix time in seconds and milliseconds when the authorization token expires. Authorization tokens are valid for 12 hours.

  • proxyEndpoint :: Maybe Text

    The registry URL to use for this authorization token in a docker login command. The Amazon ECR registry URL format is https://aws_account_id.dkr.ecr.region.amazonaws.com. For example, https://012345678910.dkr.ecr.us-east-1.amazonaws.com..

Instances

Instances details
FromJSON AuthorizationData Source # 
Instance details

Defined in Amazonka.ECR.Types.AuthorizationData

Generic AuthorizationData Source # 
Instance details

Defined in Amazonka.ECR.Types.AuthorizationData

Associated Types

type Rep AuthorizationData :: Type -> Type #

Read AuthorizationData Source # 
Instance details

Defined in Amazonka.ECR.Types.AuthorizationData

Show AuthorizationData Source # 
Instance details

Defined in Amazonka.ECR.Types.AuthorizationData

NFData AuthorizationData Source # 
Instance details

Defined in Amazonka.ECR.Types.AuthorizationData

Methods

rnf :: AuthorizationData -> () #

Eq AuthorizationData Source # 
Instance details

Defined in Amazonka.ECR.Types.AuthorizationData

Hashable AuthorizationData Source # 
Instance details

Defined in Amazonka.ECR.Types.AuthorizationData

type Rep AuthorizationData Source # 
Instance details

Defined in Amazonka.ECR.Types.AuthorizationData

type Rep AuthorizationData = D1 ('MetaData "AuthorizationData" "Amazonka.ECR.Types.AuthorizationData" "amazonka-ecr-2.0-BqgZWPod2JCFn2nq69DCrJ" 'False) (C1 ('MetaCons "AuthorizationData'" 'PrefixI 'True) (S1 ('MetaSel ('Just "authorizationToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "expiresAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "proxyEndpoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newAuthorizationData :: AuthorizationData Source #

Create a value of AuthorizationData 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:authorizationToken:AuthorizationData', authorizationData_authorizationToken - A base64-encoded string that contains authorization data for the specified Amazon ECR registry. When the string is decoded, it is presented in the format user:password for private registry authentication using docker login.

$sel:expiresAt:AuthorizationData', authorizationData_expiresAt - The Unix time in seconds and milliseconds when the authorization token expires. Authorization tokens are valid for 12 hours.

$sel:proxyEndpoint:AuthorizationData', authorizationData_proxyEndpoint - The registry URL to use for this authorization token in a docker login command. The Amazon ECR registry URL format is https://aws_account_id.dkr.ecr.region.amazonaws.com. For example, https://012345678910.dkr.ecr.us-east-1.amazonaws.com..

authorizationData_authorizationToken :: Lens' AuthorizationData (Maybe Text) Source #

A base64-encoded string that contains authorization data for the specified Amazon ECR registry. When the string is decoded, it is presented in the format user:password for private registry authentication using docker login.

authorizationData_expiresAt :: Lens' AuthorizationData (Maybe UTCTime) Source #

The Unix time in seconds and milliseconds when the authorization token expires. Authorization tokens are valid for 12 hours.

authorizationData_proxyEndpoint :: Lens' AuthorizationData (Maybe Text) Source #

The registry URL to use for this authorization token in a docker login command. The Amazon ECR registry URL format is https://aws_account_id.dkr.ecr.region.amazonaws.com. For example, https://012345678910.dkr.ecr.us-east-1.amazonaws.com..