PublicGalleryAuthorizationToken

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

Bases: object

Authorization token to access the global public ECR Gallery via Docker CLI.

See:

https://docs.aws.amazon.com/AmazonECR/latest/public/public-registries.html#public-registry-auth

ExampleMetadata:

infused

Example:

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

Static Methods

classmethod grant_read(grantee)

Grant access to retrieve an authorization token.

Parameters:

grantee (IGrantable) –

Return type:

None