Class: AWSCDK::Sagemaker::CfnProject::CfnStackParameterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnProject::CfnStackParameterProperty
- Defined in:
- sagemaker/cfn_project.rb
Overview
A key-value pair representing a parameter used in the CloudFormation stack.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
The name of the CloudFormation parameter.
-
#value ⇒ String
readonly
The value of the CloudFormation parameter.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ CfnStackParameterProperty
constructor
A new instance of CfnStackParameterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ CfnStackParameterProperty
Returns a new instance of CfnStackParameterProperty.
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
#key ⇒ String (readonly)
The name of the CloudFormation parameter.
621 622 623 |
# File 'sagemaker/cfn_project.rb', line 621 def key @key end |
#value ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |