Class: AWSCDK::Pipelines::ECRSourceOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pipelines::ECRSourceOptions
- Defined in:
- pipelines/ecr_source_options.rb
Overview
Options for ECR sources.
Instance Attribute Summary collapse
-
#action_name ⇒ String?
readonly
The action name used for this source in the CodePipeline.
-
#image_tag ⇒ String?
readonly
The image tag that will be checked for changes.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(action_name: nil, image_tag: nil) ⇒ ECRSourceOptions
constructor
A new instance of ECRSourceOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(action_name: nil, image_tag: nil) ⇒ ECRSourceOptions
Returns a new instance of ECRSourceOptions.
9 10 11 12 13 14 |
# File 'pipelines/ecr_source_options.rb', line 9 def initialize(action_name: nil, image_tag: nil) @action_name = action_name Jsii::Type.check_type(@action_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "actionName") unless @action_name.nil? @image_tag = image_tag Jsii::Type.check_type(@image_tag, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "imageTag") unless @image_tag.nil? end |
Instance Attribute Details
#action_name ⇒ String? (readonly)
Note:
Default: - The repository name
The action name used for this source in the CodePipeline.
20 21 22 |
# File 'pipelines/ecr_source_options.rb', line 20 def action_name @action_name end |
#image_tag ⇒ String? (readonly)
Note:
Default: latest
The image tag that will be checked for changes.
25 26 27 |
# File 'pipelines/ecr_source_options.rb', line 25 def image_tag @image_tag end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'pipelines/ecr_source_options.rb', line 27 def self.jsii_properties { :action_name => "actionName", :image_tag => "imageTag", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'pipelines/ecr_source_options.rb', line 34 def to_jsii result = {} result.merge!({ "actionName" => @action_name, "imageTag" => @image_tag, }) result.compact end |