Class: AWSCDK::IoT::CfnLoggingProps

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

Overview

Properties for defining a CfnLogging.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account_id:, default_log_level:, role_arn:, event_configurations: nil) ⇒ CfnLoggingProps

Returns a new instance of CfnLoggingProps.

Parameters:



13
14
15
16
17
18
19
20
21
22
# File 'io_t/cfn_logging_props.rb', line 13

def initialize(account_id:, default_log_level:, role_arn:, event_configurations: nil)
  @account_id = 
  Jsii::Type.check_type(@account_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accountId")
  @default_log_level = default_log_level
  Jsii::Type.check_type(@default_log_level, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "defaultLogLevel")
  @role_arn = role_arn
  Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19pYW0uSVJvbGVSZWYifV19fQ==")), "roleArn")
  @event_configurations = event_configurations
  Jsii::Type.check_type(@event_configurations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaW90LkNmbkxvZ2dpbmcuRXZlbnRDb25maWd1cmF0aW9uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "eventConfigurations") unless @event_configurations.nil?
end

Instance Attribute Details

#account_idString (readonly)

The account ID.



28
29
30
# File 'io_t/cfn_logging_props.rb', line 28

def 
  @account_id
end

#default_log_levelString (readonly)

The default log level.

Valid Values: DEBUG | INFO | ERROR | WARN | DISABLED



35
36
37
# File 'io_t/cfn_logging_props.rb', line 35

def default_log_level
  @default_log_level
end

#event_configurationsAWSCDK::IResolvable, ... (readonly)

Configurations for event-based logging that specifies which event types to log and their logging settings.

Overrides account-level logging for the specified event



47
48
49
# File 'io_t/cfn_logging_props.rb', line 47

def event_configurations
  @event_configurations
end

#role_arnString, AWSCDK::Interfaces::AWSIAM::IRoleRef (readonly)

The role ARN used for the log.



40
41
42
# File 'io_t/cfn_logging_props.rb', line 40

def role_arn
  @role_arn
end

Class Method Details

.jsii_propertiesObject



49
50
51
52
53
54
55
56
# File 'io_t/cfn_logging_props.rb', line 49

def self.jsii_properties
  {
    :account_id => "accountId",
    :default_log_level => "defaultLogLevel",
    :role_arn => "roleArn",
    :event_configurations => "eventConfigurations",
  }
end

Instance Method Details

#to_jsiiObject



58
59
60
61
62
63
64
65
66
67
# File 'io_t/cfn_logging_props.rb', line 58

def to_jsii
  result = {}
  result.merge!({
    "accountId" => @account_id,
    "defaultLogLevel" => @default_log_level,
    "roleArn" => @role_arn,
    "eventConfigurations" => @event_configurations,
  })
  result.compact
end