Class: AWSCDK::Connect::CfnRule::TaskActionProperty

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

Overview

Information about the task action.

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(contact_flow_arn:, name:, description: nil, references: nil) ⇒ TaskActionProperty

Returns a new instance of TaskActionProperty.

Parameters:



1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
# File 'connect/cfn_rule.rb', line 1124

def initialize(contact_flow_arn:, name:, description: nil, references: nil)
  @contact_flow_arn = contact_flow_arn
  Jsii::Type.check_type(@contact_flow_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "contactFlowArn")
  @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?
  @references = references
  Jsii::Type.check_type(@references, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29ubmVjdC5DZm5SdWxlLlJlZmVyZW5jZVByb3BlcnR5In1dfX0sImtpbmQiOiJtYXAifX1dfX0=")), "references") unless @references.nil?
end

Instance Attribute Details

#contact_flow_arnString (readonly)

The Amazon Resource Name (ARN) of the flow.



1139
1140
1141
# File 'connect/cfn_rule.rb', line 1139

def contact_flow_arn
  @contact_flow_arn
end

#descriptionString? (readonly)

The description.

Supports variable injection. For more information, see JSONPath reference in the Connect Customer Administrators Guide .



1153
1154
1155
# File 'connect/cfn_rule.rb', line 1153

def description
  @description
end

#nameString (readonly)

The name.

Supports variable injection. For more information, see JSONPath reference in the Connect Customer Administrators Guide .



1146
1147
1148
# File 'connect/cfn_rule.rb', line 1146

def name
  @name
end

#referencesAWSCDK::IResolvable, ... (readonly)

Information about the reference when the referenceType is URL .

Otherwise, null. URL is the only accepted type. (Supports variable injection in the Value field.)



1160
1161
1162
# File 'connect/cfn_rule.rb', line 1160

def references
  @references
end

Class Method Details

.jsii_propertiesObject



1162
1163
1164
1165
1166
1167
1168
1169
# File 'connect/cfn_rule.rb', line 1162

def self.jsii_properties
  {
    :contact_flow_arn => "contactFlowArn",
    :name => "name",
    :description => "description",
    :references => "references",
  }
end

Instance Method Details

#to_jsiiObject



1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
# File 'connect/cfn_rule.rb', line 1171

def to_jsii
  result = {}
  result.merge!({
    "contactFlowArn" => @contact_flow_arn,
    "name" => @name,
    "description" => @description,
    "references" => @references,
  })
  result.compact
end