Class: AWSCDK::AppIntegrations::CfnEventIntegrationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppIntegrations::CfnEventIntegrationProps
- Defined in:
- app_integrations/cfn_event_integration_props.rb
Overview
Properties for defining a CfnEventIntegration.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The event integration description.
-
#event_bridge_bus ⇒ String
readonly
The Amazon EventBridge bus for the event integration.
-
#event_filter ⇒ AWSCDK::IResolvable, AWSCDK::AppIntegrations::CfnEventIntegration::EventFilterProperty
readonly
The event integration filter.
-
#name ⇒ String
readonly
The name of the event integration.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(event_bridge_bus:, event_filter:, name:, description: nil, tags: nil) ⇒ CfnEventIntegrationProps
constructor
A new instance of CfnEventIntegrationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(event_bridge_bus:, event_filter:, name:, description: nil, tags: nil) ⇒ CfnEventIntegrationProps
Returns a new instance of CfnEventIntegrationProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'app_integrations/cfn_event_integration_props.rb', line 14 def initialize(event_bridge_bus:, event_filter:, name:, description: nil, tags: nil) @event_bridge_bus = event_bridge_bus Jsii::Type.check_type(@event_bridge_bus, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "eventBridgeBus") @event_filter = event_filter.is_a?(Hash) ? ::AWSCDK::AppIntegrations::CfnEventIntegration::EventFilterProperty.new(**event_filter.transform_keys(&:to_sym)) : event_filter Jsii::Type.check_type(@event_filter, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBpbnRlZ3JhdGlvbnMuQ2ZuRXZlbnRJbnRlZ3JhdGlvbi5FdmVudEZpbHRlclByb3BlcnR5In1dfX0=")), "eventFilter") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
The event integration description.
46 47 48 |
# File 'app_integrations/cfn_event_integration_props.rb', line 46 def description @description end |
#event_bridge_bus ⇒ String (readonly)
The Amazon EventBridge bus for the event integration.
31 32 33 |
# File 'app_integrations/cfn_event_integration_props.rb', line 31 def event_bridge_bus @event_bridge_bus end |
#event_filter ⇒ AWSCDK::IResolvable, AWSCDK::AppIntegrations::CfnEventIntegration::EventFilterProperty (readonly)
The event integration filter.
36 37 38 |
# File 'app_integrations/cfn_event_integration_props.rb', line 36 def event_filter @event_filter end |
#name ⇒ String (readonly)
The name of the event integration.
41 42 43 |
# File 'app_integrations/cfn_event_integration_props.rb', line 41 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
For more information, see Tag .
53 54 55 |
# File 'app_integrations/cfn_event_integration_props.rb', line 53 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
55 56 57 58 59 60 61 62 63 |
# File 'app_integrations/cfn_event_integration_props.rb', line 55 def self.jsii_properties { :event_bridge_bus => "eventBridgeBus", :event_filter => "eventFilter", :name => "name", :description => "description", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 |
# File 'app_integrations/cfn_event_integration_props.rb', line 65 def to_jsii result = {} result.merge!({ "eventBridgeBus" => @event_bridge_bus, "eventFilter" => @event_filter, "name" => @name, "description" => @description, "tags" => @tags, }) result.compact end |