Class: AWSCDK::ApplicationInsights::CfnApplication::LogPatternProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ApplicationInsights::CfnApplication::LogPatternProperty
- Defined in:
- application_insights/cfn_application.rb
Overview
The AWS::ApplicationInsights::Application LogPattern property type specifies an object that defines the log patterns that belong to a LogPatternSet .
Instance Attribute Summary collapse
-
#pattern ⇒ String
readonly
A regular expression that defines the log pattern.
-
#pattern_name ⇒ String
readonly
The name of the log pattern.
-
#rank ⇒ Numeric
readonly
The rank of the log pattern.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(pattern:, pattern_name:, rank:) ⇒ LogPatternProperty
constructor
A new instance of LogPatternProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(pattern:, pattern_name:, rank:) ⇒ LogPatternProperty
Returns a new instance of LogPatternProperty.
1231 1232 1233 1234 1235 1236 1237 1238 |
# File 'application_insights/cfn_application.rb', line 1231 def initialize(pattern:, pattern_name:, rank:) @pattern = pattern Jsii::Type.check_type(@pattern, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "pattern") @pattern_name = pattern_name Jsii::Type.check_type(@pattern_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "patternName") @rank = rank Jsii::Type.check_type(@rank, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "rank") end |
Instance Attribute Details
#pattern ⇒ String (readonly)
A regular expression that defines the log pattern.
A log pattern can contain up to 50 characters, and it cannot be empty.
1246 1247 1248 |
# File 'application_insights/cfn_application.rb', line 1246 def pattern @pattern end |
#pattern_name ⇒ String (readonly)
The name of the log pattern.
A log pattern name can contain up to 50 characters, and it cannot be empty. The characters can be Unicode letters, digits, or one of the following symbols: period, dash, underscore.
1253 1254 1255 |
# File 'application_insights/cfn_application.rb', line 1253 def pattern_name @pattern_name end |
#rank ⇒ Numeric (readonly)
The rank of the log pattern.
1258 1259 1260 |
# File 'application_insights/cfn_application.rb', line 1258 def rank @rank end |
Class Method Details
.jsii_properties ⇒ Object
1260 1261 1262 1263 1264 1265 1266 |
# File 'application_insights/cfn_application.rb', line 1260 def self.jsii_properties { :pattern => "pattern", :pattern_name => "patternName", :rank => "rank", } end |
Instance Method Details
#to_jsii ⇒ Object
1268 1269 1270 1271 1272 1273 1274 1275 1276 |
# File 'application_insights/cfn_application.rb', line 1268 def to_jsii result = {} result.merge!({ "pattern" => @pattern, "patternName" => @pattern_name, "rank" => @rank, }) result.compact end |