Class: AWSCDK::Sagemaker::CfnProject::CfnStackParameterProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_project.rb

Overview

A key-value pair representing a parameter used in the CloudFormation stack.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ CfnStackParameterProperty

Returns a new instance of CfnStackParameterProperty.

Parameters:

  • key (String)

    The name of the CloudFormation parameter.

  • value (String)

    The value of the CloudFormation parameter.



610
611
612
613
614
615
# File 'sagemaker/cfn_project.rb', line 610

def initialize(key:, value:)
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value")
end

Instance Attribute Details

#keyString (readonly)

The name of the CloudFormation parameter.



621
622
623
# File 'sagemaker/cfn_project.rb', line 621

def key
  @key
end

#valueString (readonly)

The value of the CloudFormation parameter.



626
627
628
# File 'sagemaker/cfn_project.rb', line 626

def value
  @value
end

Class Method Details

.jsii_propertiesObject



628
629
630
631
632
633
# File 'sagemaker/cfn_project.rb', line 628

def self.jsii_properties
  {
    :key => "key",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



635
636
637
638
639
640
641
642
# File 'sagemaker/cfn_project.rb', line 635

def to_jsii
  result = {}
  result.merge!({
    "key" => @key,
    "value" => @value,
  })
  result.compact
end