class PublicGalleryAuthorizationToken
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ECR.PublicGalleryAuthorizationToken |
Java | software.amazon.awscdk.services.ecr.PublicGalleryAuthorizationToken |
Python | aws_cdk.aws_ecr.PublicGalleryAuthorizationToken |
TypeScript (source) | @aws-cdk/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
Java
Python
TypeScript (