Class: AWSCDK::Connect::CfnRule::RuleTriggerEventSourceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
connect/cfn_rule.rb

Overview

The name of the event source.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_source_name:, integration_association_arn: nil) ⇒ RuleTriggerEventSourceProperty

Returns a new instance of RuleTriggerEventSourceProperty.

Parameters:

  • event_source_name (String)

    The name of the event source.

  • integration_association_arn (String, nil) (defaults to: nil)

    The Amazon Resource Name (ARN) of the integration association.



965
966
967
968
969
970
# File 'connect/cfn_rule.rb', line 965

def initialize(event_source_name:, integration_association_arn: nil)
  @event_source_name = event_source_name
  Jsii::Type.check_type(@event_source_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "eventSourceName")
  @integration_association_arn = integration_association_arn
  Jsii::Type.check_type(@integration_association_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "integrationAssociationArn") unless @integration_association_arn.nil?
end

Instance Attribute Details

#event_source_nameString (readonly)

The name of the event source.



976
977
978
# File 'connect/cfn_rule.rb', line 976

def event_source_name
  @event_source_name
end

#integration_association_arnString? (readonly)

The Amazon Resource Name (ARN) of the integration association.

IntegrationAssociationArn is required if TriggerEventSource is one of the following values: OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | OnSalesforceCaseCreate



983
984
985
# File 'connect/cfn_rule.rb', line 983

def integration_association_arn
  @integration_association_arn
end

Class Method Details

.jsii_propertiesObject



985
986
987
988
989
990
# File 'connect/cfn_rule.rb', line 985

def self.jsii_properties
  {
    :event_source_name => "eventSourceName",
    :integration_association_arn => "integrationAssociationArn",
  }
end

Instance Method Details

#to_jsiiObject



992
993
994
995
996
997
998
999
# File 'connect/cfn_rule.rb', line 992

def to_jsii
  result = {}
  result.merge!({
    "eventSourceName" => @event_source_name,
    "integrationAssociationArn" => @integration_association_arn,
  })
  result.compact
end