Class: AWSCDK::S3Deployment::MarkersConfig

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
s3_deployment/markers_config.rb

Overview

A configuration for markers substitution strategy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json_escape: nil) ⇒ MarkersConfig

Returns a new instance of MarkersConfig.

Parameters:

  • json_escape (Boolean, nil) (defaults to: nil)

    If set to true, the marker substitution will make ure the value inserted in the file will be a valid JSON string.



8
9
10
11
# File 's3_deployment/markers_config.rb', line 8

def initialize(json_escape: nil)
  @json_escape = json_escape
  Jsii::Type.check_type(@json_escape, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "jsonEscape") unless @json_escape.nil?
end

Instance Attribute Details

#json_escapeBoolean? (readonly)

Note:

Default: - false

If set to true, the marker substitution will make ure the value inserted in the file will be a valid JSON string.

Returns:

  • (Boolean, nil)


17
18
19
# File 's3_deployment/markers_config.rb', line 17

def json_escape
  @json_escape
end

Class Method Details

.jsii_propertiesObject



19
20
21
22
23
# File 's3_deployment/markers_config.rb', line 19

def self.jsii_properties
  {
    :json_escape => "jsonEscape",
  }
end

Instance Method Details

#to_jsiiObject



25
26
27
28
29
30
31
# File 's3_deployment/markers_config.rb', line 25

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