Class: AWSCDK::Logs::CfnTransformer::TrimStringProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Logs::CfnTransformer::TrimStringProperty
- Defined in:
- logs/cfn_transformer.rb
Overview
Use this processor to remove leading and trailing whitespace.
For more information about this processor including examples, see trimString in the CloudWatch Logs User Guide .
Instance Attribute Summary collapse
-
#with_keys ⇒ Array<String>
readonly
The array containing the keys of the fields to trim.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(with_keys:) ⇒ TrimStringProperty
constructor
A new instance of TrimStringProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(with_keys:) ⇒ TrimStringProperty
Returns a new instance of TrimStringProperty.
2128 2129 2130 2131 |
# File 'logs/cfn_transformer.rb', line 2128 def initialize(with_keys:) @with_keys = with_keys Jsii::Type.check_type(@with_keys, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "withKeys") end |
Instance Attribute Details
#with_keys ⇒ Array<String> (readonly)
The array containing the keys of the fields to trim.
2137 2138 2139 |
# File 'logs/cfn_transformer.rb', line 2137 def with_keys @with_keys end |
Class Method Details
.jsii_properties ⇒ Object
2139 2140 2141 2142 2143 |
# File 'logs/cfn_transformer.rb', line 2139 def self.jsii_properties { :with_keys => "withKeys", } end |
Instance Method Details
#to_jsii ⇒ Object
2145 2146 2147 2148 2149 2150 2151 |
# File 'logs/cfn_transformer.rb', line 2145 def to_jsii result = {} result.merge!({ "withKeys" => @with_keys, }) result.compact end |