Class: AWSCDK::Pipelines::ECRSourceOptions

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pipelines/ecr_source_options.rb

Overview

Options for ECR sources.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action_name: nil, image_tag: nil) ⇒ ECRSourceOptions

Returns a new instance of ECRSourceOptions.

Parameters:

  • action_name (String, nil) (defaults to: nil)

    The action name used for this source in the CodePipeline.

  • image_tag (String, nil) (defaults to: nil)

    The image tag that will be checked for changes.



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_nameString? (readonly)

Note:

Default: - The repository name

The action name used for this source in the CodePipeline.

Returns:

  • (String, nil)


20
21
22
# File 'pipelines/ecr_source_options.rb', line 20

def action_name
  @action_name
end

#image_tagString? (readonly)

Note:

Default: latest

The image tag that will be checked for changes.

Returns:

  • (String, nil)


25
26
27
# File 'pipelines/ecr_source_options.rb', line 25

def image_tag
  @image_tag
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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