Class: AWSCDK::S3Deployment::JsonProcessingOptions

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

Overview

Define options which can be passed using the method Source.jsonData().

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(escape: nil) ⇒ JsonProcessingOptions

Returns a new instance of JsonProcessingOptions.

Parameters:

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

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



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

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

Instance Attribute Details

#escapeBoolean? (readonly)

Note:

Default: - false

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

Returns:

  • (Boolean, nil)


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

def escape
  @escape
end

Class Method Details

.jsii_propertiesObject



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

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

Instance Method Details

#to_jsiiObject



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

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