Class: AWSCDK::IoT::CfnMitigationAction::EnableIoTLoggingParamsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnMitigationAction::EnableIoTLoggingParamsProperty
- Defined in:
- io_t/cfn_mitigation_action.rb
Overview
Parameters used when defining a mitigation action that enable AWS IoT Core logging.
Instance Attribute Summary collapse
-
#log_level ⇒ String
readonly
Specifies the type of information to be logged.
-
#role_arn_for_logging ⇒ String
readonly
The Amazon Resource Name (ARN) of the IAM role used for logging.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(log_level:, role_arn_for_logging:) ⇒ EnableIoTLoggingParamsProperty
constructor
A new instance of EnableIoTLoggingParamsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(log_level:, role_arn_for_logging:) ⇒ EnableIoTLoggingParamsProperty
Returns a new instance of EnableIoTLoggingParamsProperty.
704 705 706 707 708 709 |
# File 'io_t/cfn_mitigation_action.rb', line 704 def initialize(log_level:, role_arn_for_logging:) @log_level = log_level Jsii::Type.check_type(@log_level, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logLevel") @role_arn_for_logging = role_arn_for_logging Jsii::Type.check_type(@role_arn_for_logging, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArnForLogging") end |
Instance Attribute Details
#log_level ⇒ String (readonly)
Specifies the type of information to be logged.
715 716 717 |
# File 'io_t/cfn_mitigation_action.rb', line 715 def log_level @log_level end |
#role_arn_for_logging ⇒ String (readonly)
The Amazon Resource Name (ARN) of the IAM role used for logging.
720 721 722 |
# File 'io_t/cfn_mitigation_action.rb', line 720 def role_arn_for_logging @role_arn_for_logging end |
Class Method Details
.jsii_properties ⇒ Object
722 723 724 725 726 727 |
# File 'io_t/cfn_mitigation_action.rb', line 722 def self.jsii_properties { :log_level => "logLevel", :role_arn_for_logging => "roleArnForLogging", } end |
Instance Method Details
#to_jsii ⇒ Object
729 730 731 732 733 734 735 736 |
# File 'io_t/cfn_mitigation_action.rb', line 729 def to_jsii result = {} result.merge!({ "logLevel" => @log_level, "roleArnForLogging" => @role_arn_for_logging, }) result.compact end |