Class: AWSCDK::IoT::CfnLoggingProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnLoggingProps
- Defined in:
- io_t/cfn_logging_props.rb
Overview
Properties for defining a CfnLogging.
Instance Attribute Summary collapse
-
#account_id ⇒ String
readonly
The account ID.
-
#default_log_level ⇒ String
readonly
The default log level.
-
#event_configurations ⇒ AWSCDK::IResolvable, ...
readonly
Configurations for event-based logging that specifies which event types to log and their logging settings.
-
#role_arn ⇒ String, AWSCDK::Interfaces::AWSIAM::IRoleRef
readonly
The role ARN used for the log.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(account_id:, default_log_level:, role_arn:, event_configurations: nil) ⇒ CfnLoggingProps
constructor
A new instance of CfnLoggingProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(account_id:, default_log_level:, role_arn:, event_configurations: nil) ⇒ CfnLoggingProps
Returns a new instance of CfnLoggingProps.
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 = 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_id ⇒ String (readonly)
The account ID.
28 29 30 |
# File 'io_t/cfn_logging_props.rb', line 28 def account_id @account_id end |
#default_log_level ⇒ String (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_configurations ⇒ AWSCDK::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_arn ⇒ String, 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_properties ⇒ Object
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_jsii ⇒ Object
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 |