Contact Flow Args
data class ContactFlowArgs(val content: Output<String>? = null, val contentHash: Output<String>? = null, val description: Output<String>? = null, val filename: Output<String>? = null, val instanceId: Output<String>? = null, val name: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val type: Output<String>? = null) : ConvertibleToJava<ContactFlowArgs>
Provides an Amazon Connect Contact Flow resource. For more information see Amazon Connect: Getting Started This resource embeds or references Contact Flows specified in Amazon Connect Contact Flow Language. For more information see Amazon Connect Flow language !>WARN: Contact Flows exported from the Console Contact Flow import/export are not in the Amazon Connect Contact Flow Language and can not be used with this resource. Instead, the recommendation is to use the AWS CLI describe-contact-flow
. See example below which uses jq
to extract the Content
attribute and saves it to a local file.
Example Usage
Basic
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.ContactFlow;
import com.pulumi.aws.connect.ContactFlowArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new ContactFlow("test", ContactFlowArgs.builder()
.content("""
{
"Version": "2019-10-30",
"StartAction": "12345678-1234-1234-1234-123456789012",
"Actions": [
{
"Identifier": "12345678-1234-1234-1234-123456789012",
"Type": "MessageParticipant",
"Transitions": {
"NextAction": "abcdef-abcd-abcd-abcd-abcdefghijkl",
"Errors": [],
"Conditions": []
},
"Parameters": {
"Text": "Thanks for calling the sample flow!"
}
},
{
"Identifier": "abcdef-abcd-abcd-abcd-abcdefghijkl",
"Type": "DisconnectParticipant",
"Transitions": {},
"Parameters": {}
}
]
}
""")
.description("Test Contact Flow Description")
.instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
.tags(Map.ofEntries(
Map.entry("Application", "Example"),
Map.entry("Method", "Create"),
Map.entry("Name", "Test Contact Flow")
))
.type("CONTACT_FLOW")
.build());
}
}
Content copied to clipboard
Import
Amazon Connect Contact Flows can be imported using the instance_id
and contact_flow_id
separated by a colon (:
), e.g.,
$ pulumi import aws:connect/contactFlow:ContactFlow example f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5
Content copied to clipboard