aws-cdk-lib.aws_ecr.PublicGalleryAuthorizationToken

class PublicGalleryAuthorizationToken

LanguageType name
.NETAmazon.CDK.AWS.ECR.PublicGalleryAuthorizationToken
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecr#PublicGalleryAuthorizationToken
Javasoftware.amazon.awscdk.services.ecr.PublicGalleryAuthorizationToken
Pythonaws_cdk.aws_ecr.PublicGalleryAuthorizationToken
TypeScript (source)aws-cdk-lib » aws_ecr » PublicGalleryAuthorizationToken

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

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

Example

const user = new iam.User(this, 'User');
ecr.PublicGalleryAuthorizationToken.grantRead(user);

Methods

NameDescription
static grantRead(grantee)Grant access to retrieve an authorization token.

static grantRead(grantee)

public static grantRead(grantee: IGrantable): void

Parameters

  • grantee IGrantable

Grant access to retrieve an authorization token.