Class: AWSCDK::IoT::CfnSecurityProfile::AlertTargetProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnSecurityProfile::AlertTargetProperty
- Defined in:
- io_t/cfn_security_profile.rb
Overview
A structure containing the alert target ARN and the role ARN.
Instance Attribute Summary collapse
-
#alert_target_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the notification target to which alerts are sent.
-
#role_arn ⇒ String
readonly
The ARN of the role that grants permission to send alerts to the notification target.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(alert_target_arn:, role_arn:) ⇒ AlertTargetProperty
constructor
A new instance of AlertTargetProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(alert_target_arn:, role_arn:) ⇒ AlertTargetProperty
Returns a new instance of AlertTargetProperty.
638 639 640 641 642 643 |
# File 'io_t/cfn_security_profile.rb', line 638 def initialize(alert_target_arn:, role_arn:) @alert_target_arn = alert_target_arn Jsii::Type.check_type(@alert_target_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "alertTargetArn") @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") end |
Instance Attribute Details
#alert_target_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the notification target to which alerts are sent.
649 650 651 |
# File 'io_t/cfn_security_profile.rb', line 649 def alert_target_arn @alert_target_arn end |
#role_arn ⇒ String (readonly)
The ARN of the role that grants permission to send alerts to the notification target.
654 655 656 |
# File 'io_t/cfn_security_profile.rb', line 654 def role_arn @role_arn end |
Class Method Details
.jsii_properties ⇒ Object
656 657 658 659 660 661 |
# File 'io_t/cfn_security_profile.rb', line 656 def self.jsii_properties { :alert_target_arn => "alertTargetArn", :role_arn => "roleArn", } end |
Instance Method Details
#to_jsii ⇒ Object
663 664 665 666 667 668 669 670 |
# File 'io_t/cfn_security_profile.rb', line 663 def to_jsii result = {} result.merge!({ "alertTargetArn" => @alert_target_arn, "roleArn" => @role_arn, }) result.compact end |