Skip to content
v2.277.0

PublicGalleryAuthorizationToken Class ​

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

Example ​

ts
const user = new iam.User(this, 'User');
ecr.PublicGalleryAuthorizationToken.grantRead(user);
python
user = iam.User(self, "User")
ecr.PublicGalleryAuthorizationToken.grant_read(user)
java
User user = new User(this, "User");
PublicGalleryAuthorizationToken.grantRead(user);
csharp
// Install: dotnet add package Amazon.CDK.Lib
var user = new User(this, "User");
PublicGalleryAuthorizationToken.GrantRead(user);
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
user := iam.NewUser(this, jsii.String("User"))
ecr.PublicGalleryAuthorizationToken_GrantRead(user)

Methods ​

grantRead(grantee: IGrantable): void@staticmethod def grant_read(grantee: IGrantable) -> Nonepublic static void grantRead(IGrantable grantee)public static void GrantRead(IGrantable grantee)func GrantRead(Grantee IGrantable)static#
Grant access to retrieve an authorization token.