Class: AWSCDK::IoT::CfnSecurityProfile::AlertTargetProperty

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

Overview

A structure containing the alert target ARN and the role ARN.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(alert_target_arn:, role_arn:) ⇒ AlertTargetProperty

Returns a new instance of AlertTargetProperty.

Parameters:

  • alert_target_arn (String)

    The Amazon Resource Name (ARN) of the notification target to which alerts are sent.

  • role_arn (String)

    The ARN of the role that grants permission to send alerts to the notification target.



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_arnString (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_arnString (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_propertiesObject



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_jsiiObject



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