class PublicGalleryAuthorizationToken
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ECR.PublicGalleryAuthorizationToken |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsecr#PublicGalleryAuthorizationToken |
![]() | software.amazon.awscdk.services.ecr.PublicGalleryAuthorizationToken |
![]() | aws_cdk.aws_ecr.PublicGalleryAuthorizationToken |
![]() | 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.