Class: AWSCDK::AppIntegrations::CfnEventIntegrationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_integrations/cfn_event_integration_props.rb

Overview

Properties for defining a CfnEventIntegration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_bridge_bus:, event_filter:, name:, description: nil, tags: nil) ⇒ CfnEventIntegrationProps

Returns a new instance of CfnEventIntegrationProps.

Parameters:



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

The event integration description.



46
47
48
# File 'app_integrations/cfn_event_integration_props.rb', line 46

def description
  @description
end

#event_bridge_busString (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

#nameString (readonly)

The name of the event integration.



41
42
43
# File 'app_integrations/cfn_event_integration_props.rb', line 41

def name
  @name
end

#tagsArray<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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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