Class: AWSCDK::IoT::CfnResourceSpecificLoggingProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnResourceSpecificLoggingProps
- Defined in:
- io_t/cfn_resource_specific_logging_props.rb
Overview
Properties for defining a CfnResourceSpecificLogging.
Instance Attribute Summary collapse
-
#log_level ⇒ String
readonly
The default log level.Valid Values:
DEBUG | INFO | ERROR | WARN | DISABLED. -
#target_name ⇒ String
readonly
The target name.
-
#target_type ⇒ String
readonly
The target type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(log_level:, target_name:, target_type:) ⇒ CfnResourceSpecificLoggingProps
constructor
A new instance of CfnResourceSpecificLoggingProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(log_level:, target_name:, target_type:) ⇒ CfnResourceSpecificLoggingProps
Returns a new instance of CfnResourceSpecificLoggingProps.
12 13 14 15 16 17 18 19 |
# File 'io_t/cfn_resource_specific_logging_props.rb', line 12 def initialize(log_level:, target_name:, target_type:) @log_level = log_level Jsii::Type.check_type(@log_level, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logLevel") @target_name = target_name Jsii::Type.check_type(@target_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetName") @target_type = target_type Jsii::Type.check_type(@target_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetType") end |
Instance Attribute Details
#log_level ⇒ String (readonly)
The default log level.Valid Values: DEBUG | INFO | ERROR | WARN | DISABLED.
25 26 27 |
# File 'io_t/cfn_resource_specific_logging_props.rb', line 25 def log_level @log_level end |
#target_name ⇒ String (readonly)
The target name.
30 31 32 |
# File 'io_t/cfn_resource_specific_logging_props.rb', line 30 def target_name @target_name end |
#target_type ⇒ String (readonly)
The target type.
Valid Values: DEFAULT | THING_GROUP
37 38 39 |
# File 'io_t/cfn_resource_specific_logging_props.rb', line 37 def target_type @target_type end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 'io_t/cfn_resource_specific_logging_props.rb', line 39 def self.jsii_properties { :log_level => "logLevel", :target_name => "targetName", :target_type => "targetType", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'io_t/cfn_resource_specific_logging_props.rb', line 47 def to_jsii result = {} result.merge!({ "logLevel" => @log_level, "targetName" => @target_name, "targetType" => @target_type, }) result.compact end |