Class: AWSCDK::IoT::CfnResourceSpecificLoggingProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t/cfn_resource_specific_logging_props.rb

Overview

Properties for defining a CfnResourceSpecificLogging.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(log_level:, target_name:, target_type:) ⇒ CfnResourceSpecificLoggingProps

Returns a new instance of CfnResourceSpecificLoggingProps.

Parameters:

  • log_level (String)

    The default log level.Valid Values: DEBUG | INFO | ERROR | WARN | DISABLED.

  • target_name (String)

    The target name.

  • target_type (String)

    The target type.



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_levelString (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_nameString (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_typeString (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_propertiesObject



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_jsiiObject



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