Class: AWSCDK::IoT::CfnMitigationAction::EnableIoTLoggingParamsProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(log_level:, role_arn_for_logging:) ⇒ EnableIoTLoggingParamsProperty

Returns a new instance of EnableIoTLoggingParamsProperty.

Parameters:

  • log_level (String)

    Specifies the type of information to be logged.

  • role_arn_for_logging (String)

    The Amazon Resource Name (ARN) of the IAM role used for logging.



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_levelString (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_loggingString (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_propertiesObject



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_jsiiObject



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