Class: AWSCDK::S3Deployment::JsonProcessingOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3Deployment::JsonProcessingOptions
- Defined in:
- s3_deployment/json_processing_options.rb
Overview
Define options which can be passed using the method Source.jsonData().
Instance Attribute Summary collapse
-
#escape ⇒ Boolean?
readonly
If set to
true, the marker substitution will make sure the value inserted in the file will be a valid JSON string.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(escape: nil) ⇒ JsonProcessingOptions
constructor
A new instance of JsonProcessingOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(escape: nil) ⇒ JsonProcessingOptions
Returns a new instance of JsonProcessingOptions.
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
#escape ⇒ Boolean? (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.
17 18 19 |
# File 's3_deployment/json_processing_options.rb', line 17 def escape @escape end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |