Class: AWSCDK::CloudAssemblySchema::UnconfiguredBehavesLike
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudAssemblySchema::UnconfiguredBehavesLike
- Defined in:
- cloud_assembly_schema/unconfigured_behaves_like.rb
Instance Attribute Summary collapse
-
#v1 ⇒ Object?
readonly
Historical accident, don't use.
-
#v2 ⇒ Object?
readonly
The value of the flag that produces the same behavior as when the flag is not configured at all.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(v1: nil, v2: nil) ⇒ UnconfiguredBehavesLike
constructor
A new instance of UnconfiguredBehavesLike.
- #to_jsii ⇒ Object
Constructor Details
#initialize(v1: nil, v2: nil) ⇒ UnconfiguredBehavesLike
Returns a new instance of UnconfiguredBehavesLike.
8 9 10 11 12 13 |
# File 'cloud_assembly_schema/unconfigured_behaves_like.rb', line 8 def initialize(v1: nil, v2: nil) @v1 = v1 Jsii::Type.check_type(@v1, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "v1") unless @v1.nil? @v2 = v2 Jsii::Type.check_type(@v2, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "v2") unless @v2.nil? end |
Instance Attribute Details
#v1 ⇒ Object? (readonly)
Default: - ignore
Historical accident, don't use.
This value may be present, but it should never be used. The actual value is
in the v2 field, regardless of the version of the CDK library.
22 23 24 |
# File 'cloud_assembly_schema/unconfigured_behaves_like.rb', line 22 def v1 @v1 end |
#v2 ⇒ Object? (readonly)
Default: false
The value of the flag that produces the same behavior as when the flag is not configured at all.
Even though it is called 'v2', this is the official name of this field. In any future versions of CDK (v3, v4, ...), this field will still be called 'v2'.
The structure of this field is a historical accident. See the comment on
unconfigured_behaves_like for more information.
33 34 35 |
# File 'cloud_assembly_schema/unconfigured_behaves_like.rb', line 33 def v2 @v2 end |
Class Method Details
.jsii_properties ⇒ Object
35 36 37 38 39 40 |
# File 'cloud_assembly_schema/unconfigured_behaves_like.rb', line 35 def self.jsii_properties { :v1 => "v1", :v2 => "v2", } end |
Instance Method Details
#to_jsii ⇒ Object
42 43 44 45 46 47 48 49 |
# File 'cloud_assembly_schema/unconfigured_behaves_like.rb', line 42 def to_jsii result = {} result.merge!({ "v1" => @v1, "v2" => @v2, }) result.compact end |