Contact Flow Module Args
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
Properties
Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the Contact Flow Module source specified with filename
.
Specifies the description of the Contact Flow Module.
Specifies the identifier of the hosting Amazon Connect Instance.