Class: AWSCDK::S3Deployment::MarkersConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::S3Deployment::MarkersConfig
- Defined in:
- s3_deployment/markers_config.rb
Overview
A configuration for markers substitution strategy.
Instance Attribute Summary collapse
-
#json_escape ⇒ Boolean?
readonly
If set to
true, the marker substitution will make ure the value inserted in the file will be a valid JSON string.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(json_escape: nil) ⇒ MarkersConfig
constructor
A new instance of MarkersConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(json_escape: nil) ⇒ MarkersConfig
Returns a new instance of MarkersConfig.
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_escape ⇒ Boolean? (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.
17 18 19 |
# File 's3_deployment/markers_config.rb', line 17 def json_escape @json_escape end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |