Class: AWSCDK::ImageBuilder::CfnDistributionConfiguration::SSMParameterConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
image_builder/cfn_distribution_configuration.rb

Overview

Configuration for a single Parameter in the AWS Systems Manager (SSM) Parameter Store in a given Region.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parameter_name:, ami_account_id: nil, data_type: nil) ⇒ SSMParameterConfigurationProperty

Returns a new instance of SSMParameterConfigurationProperty.

Parameters:

  • parameter_name (String)

    This is the name of the Parameter in the target Region or account.

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

    Specify the account that will own the Parameter in a given Region.

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

    The data type specifies what type of value the Parameter contains.



1100
1101
1102
1103
1104
1105
1106
1107
# File 'image_builder/cfn_distribution_configuration.rb', line 1100

def initialize(parameter_name:, ami_account_id: nil, data_type: nil)
  @parameter_name = parameter_name
  Jsii::Type.check_type(@parameter_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "parameterName")
  @ami_account_id = 
  Jsii::Type.check_type(@ami_account_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "amiAccountId") unless @ami_account_id.nil?
  @data_type = data_type
  Jsii::Type.check_type(@data_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dataType") unless @data_type.nil?
end

Instance Attribute Details

#ami_account_idString? (readonly)

Specify the account that will own the Parameter in a given Region.

During distribution, this account must be specified in distribution settings as a target account for the Region.



1122
1123
1124
# File 'image_builder/cfn_distribution_configuration.rb', line 1122

def 
  @ami_account_id
end

#data_typeString? (readonly)

The data type specifies what type of value the Parameter contains.

We recommend that you use data type aws:ec2:image .



1129
1130
1131
# File 'image_builder/cfn_distribution_configuration.rb', line 1129

def data_type
  @data_type
end

#parameter_nameString (readonly)

This is the name of the Parameter in the target Region or account.

The image distribution creates the Parameter if it doesn't already exist. Otherwise, it updates the parameter.



1115
1116
1117
# File 'image_builder/cfn_distribution_configuration.rb', line 1115

def parameter_name
  @parameter_name
end

Class Method Details

.jsii_propertiesObject



1131
1132
1133
1134
1135
1136
1137
# File 'image_builder/cfn_distribution_configuration.rb', line 1131

def self.jsii_properties
  {
    :parameter_name => "parameterName",
    :ami_account_id => "amiAccountId",
    :data_type => "dataType",
  }
end

Instance Method Details

#to_jsiiObject



1139
1140
1141
1142
1143
1144
1145
1146
1147
# File 'image_builder/cfn_distribution_configuration.rb', line 1139

def to_jsii
  result = {}
  result.merge!({
    "parameterName" => @parameter_name,
    "amiAccountId" => @ami_account_id,
    "dataType" => @data_type,
  })
  result.compact
end