Class: AWSCDK::ECR::PublicGalleryAuthorizationToken

Inherits:
Jsii::Object
  • Object
show all
Defined in:
ecr/public_gallery_authorization_token.rb

Overview

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ PublicGalleryAuthorizationToken

Returns a new instance of PublicGalleryAuthorizationToken.

Raises:

  • (NoMethodError)


10
11
12
# File 'ecr/public_gallery_authorization_token.rb', line 10

def initialize(*args)
  raise NoMethodError, "aws-cdk-lib.aws_ecr.PublicGalleryAuthorizationToken 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.

Parameters:



23
24
25
26
# File 'ecr/public_gallery_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.PublicGalleryAuthorizationToken", "grantRead", [grantee])
end

.jsii_overridable_methodsObject



14
15
16
17
# File 'ecr/public_gallery_authorization_token.rb', line 14

def self.jsii_overridable_methods
  {
  }
end