AuthorizationToken

class aws_cdk.aws_ecr.AuthorizationToken(*args: Any, **kwargs)

Bases: object

Authorization token to access private ECR repositories in the current environment via Docker CLI.

See:

https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry_auth.html

ExampleMetadata:

infused

Example:

user = iam.User(self, "User")
ecr.AuthorizationToken.grant_read(user)

Static Methods

classmethod grant_read(grantee)

Grant access to retrieve an authorization token.

Parameters:

grantee (IGrantable) –

Return type:

None