Class: AWSCDK::CloudAssemblySchema::DockerImageDestination
- Inherits:
-
AWSDestination
- Object
- AWSDestination
- AWSCDK::CloudAssemblySchema::DockerImageDestination
- Defined in:
- cloud_assembly_schema/docker_image_destination.rb
Overview
Where to publish docker images.
Instance Attribute Summary collapse
-
#assume_role_additional_options ⇒ Hash{String => Object}?
readonly
Additional options to pass to STS when assuming the role.
-
#assume_role_arn ⇒ String?
readonly
The role that needs to be assumed while publishing this asset.
-
#assume_role_external_id ⇒ String?
readonly
The ExternalId that needs to be supplied while assuming this role.
-
#image_tag ⇒ String
readonly
Tag of the image to publish.
-
#region ⇒ String?
readonly
The region where this asset will need to be published.
-
#repository_name ⇒ String
readonly
Name of the ECR repository to publish to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(assume_role_additional_options: nil, assume_role_arn: nil, assume_role_external_id: nil, region: nil, image_tag:, repository_name:) ⇒ DockerImageDestination
constructor
A new instance of DockerImageDestination.
- #to_jsii ⇒ Object
Constructor Details
#initialize(assume_role_additional_options: nil, assume_role_arn: nil, assume_role_external_id: nil, region: nil, image_tag:, repository_name:) ⇒ DockerImageDestination
Returns a new instance of DockerImageDestination.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'cloud_assembly_schema/docker_image_destination.rb', line 13 def initialize(assume_role_additional_options: nil, assume_role_arn: nil, assume_role_external_id: nil, region: nil, image_tag:, repository_name:) @assume_role_additional_options = Jsii::Type.check_type(@assume_role_additional_options, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6ImFueSJ9LCJraW5kIjoibWFwIn19")), "assumeRoleAdditionalOptions") unless @assume_role_additional_options.nil? @assume_role_arn = assume_role_arn Jsii::Type.check_type(@assume_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "assumeRoleArn") unless @assume_role_arn.nil? @assume_role_external_id = assume_role_external_id Jsii::Type.check_type(@assume_role_external_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "assumeRoleExternalId") unless @assume_role_external_id.nil? @region = region Jsii::Type.check_type(@region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "region") unless @region.nil? @image_tag = image_tag Jsii::Type.check_type(@image_tag, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "imageTag") @repository_name = repository_name Jsii::Type.check_type(@repository_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "repositoryName") end |
Instance Attribute Details
#assume_role_additional_options ⇒ Hash{String => Object}? (readonly)
Default: - No additional options.
Additional options to pass to STS when assuming the role.
RoleArnshould not be used. Use the dedicatedassume_role_arnproperty instead.ExternalIdshould not be used. Use the dedicatedassume_role_external_idinstead.
36 37 38 |
# File 'cloud_assembly_schema/docker_image_destination.rb', line 36 def @assume_role_additional_options end |
#assume_role_arn ⇒ String? (readonly)
Default: - No role will be assumed
The role that needs to be assumed while publishing this asset.
41 42 43 |
# File 'cloud_assembly_schema/docker_image_destination.rb', line 41 def assume_role_arn @assume_role_arn end |
#assume_role_external_id ⇒ String? (readonly)
Default: - No ExternalId will be supplied
The ExternalId that needs to be supplied while assuming this role.
46 47 48 |
# File 'cloud_assembly_schema/docker_image_destination.rb', line 46 def assume_role_external_id @assume_role_external_id end |
#image_tag ⇒ String (readonly)
Tag of the image to publish.
55 56 57 |
# File 'cloud_assembly_schema/docker_image_destination.rb', line 55 def image_tag @image_tag end |
#region ⇒ String? (readonly)
Default: - Current region
The region where this asset will need to be published.
51 52 53 |
# File 'cloud_assembly_schema/docker_image_destination.rb', line 51 def region @region end |
#repository_name ⇒ String (readonly)
Name of the ECR repository to publish to.
59 60 61 |
# File 'cloud_assembly_schema/docker_image_destination.rb', line 59 def repository_name @repository_name end |
Class Method Details
.jsii_properties ⇒ Object
61 62 63 64 65 66 67 68 69 70 |
# File 'cloud_assembly_schema/docker_image_destination.rb', line 61 def self.jsii_properties { :assume_role_additional_options => "assumeRoleAdditionalOptions", :assume_role_arn => "assumeRoleArn", :assume_role_external_id => "assumeRoleExternalId", :region => "region", :image_tag => "imageTag", :repository_name => "repositoryName", } end |
Instance Method Details
#to_jsii ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'cloud_assembly_schema/docker_image_destination.rb', line 72 def to_jsii result = {} result.merge!(super) result.merge!({ "assumeRoleAdditionalOptions" => @assume_role_additional_options, "assumeRoleArn" => @assume_role_arn, "assumeRoleExternalId" => @assume_role_external_id, "region" => @region, "imageTag" => @image_tag, "repositoryName" => @repository_name, }) result.compact end |