Class: AWSCDK::IoT::CfnAccountAuditConfiguration::AuditNotificationTargetProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnAccountAuditConfiguration::AuditNotificationTargetProperty
- Defined in:
- io_t/cfn_account_audit_configuration.rb
Overview
Information about the targets to which audit notifications are sent.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean, ...
readonly
True if notifications to the target are enabled.
-
#role_arn ⇒ String?
readonly
The ARN of the role that grants permission to send notifications to the target.
-
#target_arn ⇒ String?
readonly
The ARN of the target (SNS topic) to which audit notifications are sent.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enabled: nil, role_arn: nil, target_arn: nil) ⇒ AuditNotificationTargetProperty
constructor
A new instance of AuditNotificationTargetProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enabled: nil, role_arn: nil, target_arn: nil) ⇒ AuditNotificationTargetProperty
Returns a new instance of AuditNotificationTargetProperty.
808 809 810 811 812 813 814 815 |
# File 'io_t/cfn_account_audit_configuration.rb', line 808 def initialize(enabled: nil, role_arn: nil, target_arn: nil) @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") unless @enabled.nil? @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") unless @role_arn.nil? @target_arn = target_arn Jsii::Type.check_type(@target_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetArn") unless @target_arn.nil? end |
Instance Attribute Details
#enabled ⇒ Boolean, ... (readonly)
True if notifications to the target are enabled.
821 822 823 |
# File 'io_t/cfn_account_audit_configuration.rb', line 821 def enabled @enabled end |
#role_arn ⇒ String? (readonly)
The ARN of the role that grants permission to send notifications to the target.
826 827 828 |
# File 'io_t/cfn_account_audit_configuration.rb', line 826 def role_arn @role_arn end |
#target_arn ⇒ String? (readonly)
The ARN of the target (SNS topic) to which audit notifications are sent.
831 832 833 |
# File 'io_t/cfn_account_audit_configuration.rb', line 831 def target_arn @target_arn end |
Class Method Details
.jsii_properties ⇒ Object
833 834 835 836 837 838 839 |
# File 'io_t/cfn_account_audit_configuration.rb', line 833 def self.jsii_properties { :enabled => "enabled", :role_arn => "roleArn", :target_arn => "targetArn", } end |
Instance Method Details
#to_jsii ⇒ Object
841 842 843 844 845 846 847 848 849 |
# File 'io_t/cfn_account_audit_configuration.rb', line 841 def to_jsii result = {} result.merge!({ "enabled" => @enabled, "roleArn" => @role_arn, "targetArn" => @target_arn, }) result.compact end |