Class: AWSCDK::Pipelines::ECRDockerCredentialOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pipelines::ECRDockerCredentialOptions
- Defined in:
- pipelines/ecr_docker_credential_options.rb
Overview
Options for defining access for a Docker Credential composed of ECR repos.
Instance Attribute Summary collapse
-
#assume_role ⇒ AWSCDK::IAM::IRole?
readonly
An IAM role to assume prior to accessing the secret.
-
#usages ⇒ Array<AWSCDK::Pipelines::DockerCredentialUsage>?
readonly
Defines which stages of the pipeline should be granted access to these credentials.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(assume_role: nil, usages: nil) ⇒ ECRDockerCredentialOptions
constructor
A new instance of ECRDockerCredentialOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(assume_role: nil, usages: nil) ⇒ ECRDockerCredentialOptions
Returns a new instance of ECRDockerCredentialOptions.
9 10 11 12 13 14 |
# File 'pipelines/ecr_docker_credential_options.rb', line 9 def initialize(assume_role: nil, usages: nil) @assume_role = assume_role Jsii::Type.check_type(@assume_role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklSb2xlIn0=")), "assumeRole") unless @assume_role.nil? @usages = usages Jsii::Type.check_type(@usages, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLnBpcGVsaW5lcy5Eb2NrZXJDcmVkZW50aWFsVXNhZ2UifSwia2luZCI6ImFycmF5In19")), "usages") unless @usages.nil? end |
Instance Attribute Details
#assume_role ⇒ AWSCDK::IAM::IRole? (readonly)
Note:
Default: - none. The current execution role will be used.
An IAM role to assume prior to accessing the secret.
20 21 22 |
# File 'pipelines/ecr_docker_credential_options.rb', line 20 def assume_role @assume_role end |
#usages ⇒ Array<AWSCDK::Pipelines::DockerCredentialUsage>? (readonly)
Note:
Default: - all relevant stages (synth, self-update, asset publishing) are granted access.
Defines which stages of the pipeline should be granted access to these credentials.
25 26 27 |
# File 'pipelines/ecr_docker_credential_options.rb', line 25 def usages @usages end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'pipelines/ecr_docker_credential_options.rb', line 27 def self.jsii_properties { :assume_role => "assumeRole", :usages => "usages", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'pipelines/ecr_docker_credential_options.rb', line 34 def to_jsii result = {} result.merge!({ "assumeRole" => @assume_role, "usages" => @usages, }) result.compact end |