ContactFlowModuleArgs

data class ContactFlowModuleArgs(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) : ConvertibleToJava<ContactFlowModuleArgs>

Provides an Amazon Connect Contact Flow Module resource. For more information see Amazon Connect: Getting Started This resource embeds or references Contact Flows Modules specified in Amazon Connect Contact Flow Language. For more information see Amazon Connect Flow language !>WARN: Contact Flow Modules exported from the Console See Contact Flow import/export which is the same for Contact Flow Modules 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-module. 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.ContactFlowModule;
import com.pulumi.aws.connect.ContactFlowModuleArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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 example = new ContactFlowModule("example", ContactFlowModuleArgs.builder()
.instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
.description("Example Contact Flow Module Description")
.content(serializeJson(
jsonObject(
jsonProperty("Version", "2019-10-30"),
jsonProperty("StartAction", "12345678-1234-1234-1234-123456789012"),
jsonProperty("Actions", jsonArray(
jsonObject(
jsonProperty("Identifier", "12345678-1234-1234-1234-123456789012"),
jsonProperty("Parameters", jsonObject(
jsonProperty("Text", "Hello contact flow module")
)),
jsonProperty("Transitions", jsonObject(
jsonProperty("NextAction", "abcdef-abcd-abcd-abcd-abcdefghijkl"),
jsonProperty("Errors", jsonArray(
)),
jsonProperty("Conditions", jsonArray(
))
)),
jsonProperty("Type", "MessageParticipant")
),
jsonObject(
jsonProperty("Identifier", "abcdef-abcd-abcd-abcd-abcdefghijkl"),
jsonProperty("Type", "DisconnectParticipant"),
jsonProperty("Parameters", jsonObject(
)),
jsonProperty("Transitions", jsonObject(
))
)
)),
jsonProperty("Settings", jsonObject(
jsonProperty("InputParameters", jsonArray(
)),
jsonProperty("OutputParameters", jsonArray(
)),
jsonProperty("Transitions", jsonArray(
jsonObject(
jsonProperty("DisplayName", "Success"),
jsonProperty("ReferenceName", "Success"),
jsonProperty("Description", "")
),
jsonObject(
jsonProperty("DisplayName", "Error"),
jsonProperty("ReferenceName", "Error"),
jsonProperty("Description", "")
)
))
))
)))
.tags(Map.ofEntries(
Map.entry("Name", "Example Contact Flow Module"),
Map.entry("Application", "Example"),
Map.entry("Method", "Create")
))
.build());
}
}

Import

Amazon Connect Contact Flow Modules can be imported using the instance_id and contact_flow_module_id separated by a colon (:), e.g.,

$ pulumi import aws:connect/contactFlowModule:ContactFlowModule example f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5

Constructors

Link copied to clipboard
constructor(content: Output<String>? = null, contentHash: Output<String>? = null, description: Output<String>? = null, filename: Output<String>? = null, instanceId: Output<String>? = null, name: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val content: Output<String>? = null

Specifies the content of the Contact Flow Module, provided as a JSON string, written in Amazon Connect Contact Flow Language. If defined, the filename argument cannot be used.

Link copied to clipboard
val contentHash: Output<String>? = null

Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the Contact Flow Module source specified with filename.

Link copied to clipboard
val description: Output<String>? = null

Specifies the description of the Contact Flow Module.

Link copied to clipboard
val filename: Output<String>? = null

The path to the Contact Flow Module source within the local filesystem. Conflicts with content.

Link copied to clipboard
val instanceId: Output<String>? = null

Specifies the identifier of the hosting Amazon Connect Instance.

Link copied to clipboard
val name: Output<String>? = null

Specifies the name of the Contact Flow Module.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Tags to apply to the Contact Flow Module. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): ContactFlowModuleArgs