Class: AWSCDK::SMSVoice::CfnConfigurationSet::EventDestinationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SMSVoice::CfnConfigurationSet::EventDestinationProperty
- Defined in:
- sms_voice/cfn_configuration_set.rb
Overview
Contains information about an event destination.
Event destinations are associated with configuration sets, which enable you to publish message sending events to CloudWatch, Firehose, or Amazon SNS.
Instance Attribute Summary collapse
-
#cloud_watch_logs_destination ⇒ AWSCDK::IResolvable, ...
readonly
An object that contains information about an event destination that sends logging events to Amazon CloudWatch logs.
-
#enabled ⇒ Boolean, AWSCDK::IResolvable
readonly
When set to true events will be logged.
-
#event_destination_name ⇒ String
readonly
The name of the EventDestination.
-
#kinesis_firehose_destination ⇒ AWSCDK::IResolvable, ...
readonly
An object that contains information about an event destination for logging to Amazon Data Firehose.
-
#matching_event_types ⇒ Array<String>
readonly
An array of event types that determine which events to log.
-
#sns_destination ⇒ AWSCDK::IResolvable, ...
readonly
An object that contains information about an event destination that sends logging events to Amazon SNS.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enabled:, event_destination_name:, matching_event_types:, cloud_watch_logs_destination: nil, kinesis_firehose_destination: nil, sns_destination: nil) ⇒ EventDestinationProperty
constructor
A new instance of EventDestinationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enabled:, event_destination_name:, matching_event_types:, cloud_watch_logs_destination: nil, kinesis_firehose_destination: nil, sns_destination: nil) ⇒ EventDestinationProperty
Returns a new instance of EventDestinationProperty.
664 665 666 667 668 669 670 671 672 673 674 675 676 677 |
# File 'sms_voice/cfn_configuration_set.rb', line 664 def initialize(enabled:, event_destination_name:, matching_event_types:, cloud_watch_logs_destination: nil, kinesis_firehose_destination: nil, sns_destination: nil) @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") @event_destination_name = event_destination_name Jsii::Type.check_type(@event_destination_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "eventDestinationName") @matching_event_types = matching_event_types Jsii::Type.check_type(@matching_event_types, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "matchingEventTypes") @cloud_watch_logs_destination = cloud_watch_logs_destination.is_a?(Hash) ? ::AWSCDK::SMSVoice::CfnConfigurationSet::CloudWatchLogsDestinationProperty.new(**cloud_watch_logs_destination.transform_keys(&:to_sym)) : cloud_watch_logs_destination Jsii::Type.check_type(@cloud_watch_logs_destination, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zbXN2b2ljZS5DZm5Db25maWd1cmF0aW9uU2V0LkNsb3VkV2F0Y2hMb2dzRGVzdGluYXRpb25Qcm9wZXJ0eSJ9XX19")), "cloudWatchLogsDestination") unless @cloud_watch_logs_destination.nil? @kinesis_firehose_destination = kinesis_firehose_destination.is_a?(Hash) ? ::AWSCDK::SMSVoice::CfnConfigurationSet::KinesisFirehoseDestinationProperty.new(**kinesis_firehose_destination.transform_keys(&:to_sym)) : kinesis_firehose_destination Jsii::Type.check_type(@kinesis_firehose_destination, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zbXN2b2ljZS5DZm5Db25maWd1cmF0aW9uU2V0LktpbmVzaXNGaXJlaG9zZURlc3RpbmF0aW9uUHJvcGVydHkifV19fQ==")), "kinesisFirehoseDestination") unless @kinesis_firehose_destination.nil? @sns_destination = sns_destination.is_a?(Hash) ? ::AWSCDK::SMSVoice::CfnConfigurationSet::SNSDestinationProperty.new(**sns_destination.transform_keys(&:to_sym)) : sns_destination Jsii::Type.check_type(@sns_destination, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zbXN2b2ljZS5DZm5Db25maWd1cmF0aW9uU2V0LlNuc0Rlc3RpbmF0aW9uUHJvcGVydHkifV19fQ==")), "snsDestination") unless @sns_destination.nil? end |
Instance Attribute Details
#cloud_watch_logs_destination ⇒ AWSCDK::IResolvable, ... (readonly)
An object that contains information about an event destination that sends logging events to Amazon CloudWatch logs.
700 701 702 |
# File 'sms_voice/cfn_configuration_set.rb', line 700 def cloud_watch_logs_destination @cloud_watch_logs_destination end |
#enabled ⇒ Boolean, AWSCDK::IResolvable (readonly)
When set to true events will be logged.
683 684 685 |
# File 'sms_voice/cfn_configuration_set.rb', line 683 def enabled @enabled end |
#event_destination_name ⇒ String (readonly)
The name of the EventDestination.
688 689 690 |
# File 'sms_voice/cfn_configuration_set.rb', line 688 def event_destination_name @event_destination_name end |
#kinesis_firehose_destination ⇒ AWSCDK::IResolvable, ... (readonly)
An object that contains information about an event destination for logging to Amazon Data Firehose.
705 706 707 |
# File 'sms_voice/cfn_configuration_set.rb', line 705 def kinesis_firehose_destination @kinesis_firehose_destination end |
#matching_event_types ⇒ Array<String> (readonly)
An array of event types that determine which events to log.
The
TEXT_SENTevent type is not supported.
695 696 697 |
# File 'sms_voice/cfn_configuration_set.rb', line 695 def matching_event_types @matching_event_types end |
#sns_destination ⇒ AWSCDK::IResolvable, ... (readonly)
An object that contains information about an event destination that sends logging events to Amazon SNS.
710 711 712 |
# File 'sms_voice/cfn_configuration_set.rb', line 710 def sns_destination @sns_destination end |
Class Method Details
.jsii_properties ⇒ Object
712 713 714 715 716 717 718 719 720 721 |
# File 'sms_voice/cfn_configuration_set.rb', line 712 def self.jsii_properties { :enabled => "enabled", :event_destination_name => "eventDestinationName", :matching_event_types => "matchingEventTypes", :cloud_watch_logs_destination => "cloudWatchLogsDestination", :kinesis_firehose_destination => "kinesisFirehoseDestination", :sns_destination => "snsDestination", } end |
Instance Method Details
#to_jsii ⇒ Object
723 724 725 726 727 728 729 730 731 732 733 734 |
# File 'sms_voice/cfn_configuration_set.rb', line 723 def to_jsii result = {} result.merge!({ "enabled" => @enabled, "eventDestinationName" => @event_destination_name, "matchingEventTypes" => @matching_event_types, "cloudWatchLogsDestination" => @cloud_watch_logs_destination, "kinesisFirehoseDestination" => @kinesis_firehose_destination, "snsDestination" => @sns_destination, }) result.compact end |