class PublicGalleryAuthorizationToken
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ECR.PublicGalleryAuthorizationToken |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecr#PublicGalleryAuthorizationToken |
Java | software.amazon.awscdk.services.ecr.PublicGalleryAuthorizationToken |
Python | aws_cdk.aws_ecr.PublicGalleryAuthorizationToken |
TypeScript (source) | aws-cdk-lib » aws_ecr » PublicGalleryAuthorizationToken |
Authorization token to access the global public ECR Gallery via Docker CLI.
Example
const user = new iam.User(this, 'User');
ecr.PublicGalleryAuthorizationToken.grantRead(user);
Methods
| Name | Description |
|---|---|
| static grant | 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.

.NET
Go
Java
Python
TypeScript (