Class: AWSCDK::ECR::AuthorizationToken
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::ECR::AuthorizationToken
- Defined in:
- ecr/authorization_token.rb
Overview
Authorization token to access private ECR repositories in the current environment via Docker CLI.
Class Method Summary collapse
-
.grant_read(grantee) ⇒ void
Grant access to retrieve an authorization token.
- .jsii_overridable_methods ⇒ Object
Instance Method Summary collapse
-
#initialize(*args) ⇒ AuthorizationToken
constructor
A new instance of AuthorizationToken.
Constructor Details
#initialize(*args) ⇒ AuthorizationToken
Returns a new instance of AuthorizationToken.
10 11 12 |
# File 'ecr/authorization_token.rb', line 10 def initialize(*args) raise NoMethodError, "aws-cdk-lib.aws_ecr.AuthorizationToken does not have a visible constructor; use the provided factory methods" end |
Class Method Details
.grant_read(grantee) ⇒ void
This method returns an undefined value.
Grant access to retrieve an authorization token.
23 24 25 26 |
# File 'ecr/authorization_token.rb', line 23 def self.grant_read(grantee) Jsii::Type.check_type(grantee, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "grantee") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_ecr.AuthorizationToken", "grantRead", [grantee]) end |
.jsii_overridable_methods ⇒ Object
14 15 16 17 |
# File 'ecr/authorization_token.rb', line 14 def self.jsii_overridable_methods { } end |