Class: AWSCDK::CloudAssemblySchema::UnconfiguredBehavesLike

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_assembly_schema/unconfigured_behaves_like.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(v1: nil, v2: nil) ⇒ UnconfiguredBehavesLike

Returns a new instance of UnconfiguredBehavesLike.

Parameters:

  • v1 (Object, nil) (defaults to: nil)

    Historical accident, don't use.

  • v2 (Object, nil) (defaults to: nil)

    The value of the flag that produces the same behavior as when the flag is not configured at all.



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

#v1Object? (readonly)

Note:

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.

Returns:

  • (Object, nil)


22
23
24
# File 'cloud_assembly_schema/unconfigured_behaves_like.rb', line 22

def v1
  @v1
end

#v2Object? (readonly)

Note:

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.

Returns:

  • (Object, nil)


33
34
35
# File 'cloud_assembly_schema/unconfigured_behaves_like.rb', line 33

def v2
  @v2
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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