aws.connect.ContactFlowModule
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.connect.ContactFlowModule("example", {
instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
name: "Example",
description: "Example Contact Flow Module Description",
content: JSON.stringify({
Version: "2019-10-30",
StartAction: "12345678-1234-1234-1234-123456789012",
Actions: [
{
Identifier: "12345678-1234-1234-1234-123456789012",
Parameters: {
Text: "Hello contact flow module",
},
Transitions: {
NextAction: "abcdef-abcd-abcd-abcd-abcdefghijkl",
Errors: [],
Conditions: [],
},
Type: "MessageParticipant",
},
{
Identifier: "abcdef-abcd-abcd-abcd-abcdefghijkl",
Type: "DisconnectParticipant",
Parameters: {},
Transitions: {},
},
],
Settings: {
InputParameters: [],
OutputParameters: [],
Transitions: [
{
DisplayName: "Success",
ReferenceName: "Success",
Description: "",
},
{
DisplayName: "Error",
ReferenceName: "Error",
Description: "",
},
],
},
}),
tags: {
Name: "Example Contact Flow Module",
Application: "Example",
Method: "Create",
},
});
import pulumi
import json
import pulumi_aws as aws
example = aws.connect.ContactFlowModule("example",
instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
name="Example",
description="Example Contact Flow Module Description",
content=json.dumps({
"Version": "2019-10-30",
"StartAction": "12345678-1234-1234-1234-123456789012",
"Actions": [
{
"Identifier": "12345678-1234-1234-1234-123456789012",
"Parameters": {
"Text": "Hello contact flow module",
},
"Transitions": {
"NextAction": "abcdef-abcd-abcd-abcd-abcdefghijkl",
"Errors": [],
"Conditions": [],
},
"Type": "MessageParticipant",
},
{
"Identifier": "abcdef-abcd-abcd-abcd-abcdefghijkl",
"Type": "DisconnectParticipant",
"Parameters": {},
"Transitions": {},
},
],
"Settings": {
"InputParameters": [],
"OutputParameters": [],
"Transitions": [
{
"DisplayName": "Success",
"ReferenceName": "Success",
"Description": "",
},
{
"DisplayName": "Error",
"ReferenceName": "Error",
"Description": "",
},
],
},
}),
tags={
"Name": "Example Contact Flow Module",
"Application": "Example",
"Method": "Create",
})
package main
import (
"encoding/json"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/connect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
tmpJSON0, err := json.Marshal(map[string]interface{}{
"Version": "2019-10-30",
"StartAction": "12345678-1234-1234-1234-123456789012",
"Actions": []interface{}{
map[string]interface{}{
"Identifier": "12345678-1234-1234-1234-123456789012",
"Parameters": map[string]interface{}{
"Text": "Hello contact flow module",
},
"Transitions": map[string]interface{}{
"NextAction": "abcdef-abcd-abcd-abcd-abcdefghijkl",
"Errors": []interface{}{},
"Conditions": []interface{}{},
},
"Type": "MessageParticipant",
},
map[string]interface{}{
"Identifier": "abcdef-abcd-abcd-abcd-abcdefghijkl",
"Type": "DisconnectParticipant",
"Parameters": map[string]interface{}{},
"Transitions": map[string]interface{}{},
},
},
"Settings": map[string]interface{}{
"InputParameters": []interface{}{},
"OutputParameters": []interface{}{},
"Transitions": []map[string]interface{}{
map[string]interface{}{
"DisplayName": "Success",
"ReferenceName": "Success",
"Description": "",
},
map[string]interface{}{
"DisplayName": "Error",
"ReferenceName": "Error",
"Description": "",
},
},
},
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
_, err = connect.NewContactFlowModule(ctx, "example", &connect.ContactFlowModuleArgs{
InstanceId: pulumi.String("aaaaaaaa-bbbb-cccc-dddd-111111111111"),
Name: pulumi.String("Example"),
Description: pulumi.String("Example Contact Flow Module Description"),
Content: pulumi.String(json0),
Tags: pulumi.StringMap{
"Name": pulumi.String("Example Contact Flow Module"),
"Application": pulumi.String("Example"),
"Method": pulumi.String("Create"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Connect.ContactFlowModule("example", new()
{
InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
Name = "Example",
Description = "Example Contact Flow Module Description",
Content = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["Version"] = "2019-10-30",
["StartAction"] = "12345678-1234-1234-1234-123456789012",
["Actions"] = new[]
{
new Dictionary<string, object?>
{
["Identifier"] = "12345678-1234-1234-1234-123456789012",
["Parameters"] = new Dictionary<string, object?>
{
["Text"] = "Hello contact flow module",
},
["Transitions"] = new Dictionary<string, object?>
{
["NextAction"] = "abcdef-abcd-abcd-abcd-abcdefghijkl",
["Errors"] = new[]
{
},
["Conditions"] = new[]
{
},
},
["Type"] = "MessageParticipant",
},
new Dictionary<string, object?>
{
["Identifier"] = "abcdef-abcd-abcd-abcd-abcdefghijkl",
["Type"] = "DisconnectParticipant",
["Parameters"] = new Dictionary<string, object?>
{
},
["Transitions"] = new Dictionary<string, object?>
{
},
},
},
["Settings"] = new Dictionary<string, object?>
{
["InputParameters"] = new[]
{
},
["OutputParameters"] = new[]
{
},
["Transitions"] = new[]
{
new Dictionary<string, object?>
{
["DisplayName"] = "Success",
["ReferenceName"] = "Success",
["Description"] = "",
},
new Dictionary<string, object?>
{
["DisplayName"] = "Error",
["ReferenceName"] = "Error",
["Description"] = "",
},
},
},
}),
Tags =
{
{ "Name", "Example Contact Flow Module" },
{ "Application", "Example" },
{ "Method", "Create" },
},
});
});
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")
.name("Example")
.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());
}
}
resources:
example:
type: aws:connect:ContactFlowModule
properties:
instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
name: Example
description: Example Contact Flow Module Description
content:
fn::toJSON:
Version: 2019-10-30
StartAction: 12345678-1234-1234-1234-123456789012
Actions:
- Identifier: 12345678-1234-1234-1234-123456789012
Parameters:
Text: Hello contact flow module
Transitions:
NextAction: abcdef-abcd-abcd-abcd-abcdefghijkl
Errors: []
Conditions: []
Type: MessageParticipant
- Identifier: abcdef-abcd-abcd-abcd-abcdefghijkl
Type: DisconnectParticipant
Parameters: {}
Transitions: {}
Settings:
InputParameters: []
OutputParameters: []
Transitions:
- DisplayName: Success
ReferenceName: Success
Description:
- DisplayName: Error
ReferenceName: Error
Description:
tags:
Name: Example Contact Flow Module
Application: Example
Method: Create
With External Content
Use the AWS CLI to extract Contact Flow Content:
% aws connect describe-contact-flow-module --instance-id 1b3c5d8-1b3c-1b3c-1b3c-1b3c5d81b3c5 --contact-flow-module-id c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5 --region us-west-2 | jq '.ContactFlowModule.Content | fromjson' > contact_flow_module.json
Use the generated file as input:
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as std from "@pulumi/std";
const example = new aws.connect.ContactFlowModule("example", {
instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
name: "Example",
description: "Example Contact Flow Module Description",
filename: "contact_flow_module.json",
contentHash: std.filebase64sha256({
input: "contact_flow_module.json",
}).then(invoke => invoke.result),
tags: {
Name: "Example Contact Flow Module",
Application: "Example",
Method: "Create",
},
});
import pulumi
import pulumi_aws as aws
import pulumi_std as std
example = aws.connect.ContactFlowModule("example",
instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
name="Example",
description="Example Contact Flow Module Description",
filename="contact_flow_module.json",
content_hash=std.filebase64sha256(input="contact_flow_module.json").result,
tags={
"Name": "Example Contact Flow Module",
"Application": "Example",
"Method": "Create",
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/connect"
"github.com/pulumi/pulumi-std/sdk/go/std"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
invokeFilebase64sha256, err := std.Filebase64sha256(ctx, &std.Filebase64sha256Args{
Input: "contact_flow_module.json",
}, nil)
if err != nil {
return err
}
_, err = connect.NewContactFlowModule(ctx, "example", &connect.ContactFlowModuleArgs{
InstanceId: pulumi.String("aaaaaaaa-bbbb-cccc-dddd-111111111111"),
Name: pulumi.String("Example"),
Description: pulumi.String("Example Contact Flow Module Description"),
Filename: pulumi.String("contact_flow_module.json"),
ContentHash: pulumi.String(invokeFilebase64sha256.Result),
Tags: pulumi.StringMap{
"Name": pulumi.String("Example Contact Flow Module"),
"Application": pulumi.String("Example"),
"Method": pulumi.String("Create"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
using Std = Pulumi.Std;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Connect.ContactFlowModule("example", new()
{
InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
Name = "Example",
Description = "Example Contact Flow Module Description",
Filename = "contact_flow_module.json",
ContentHash = Std.Filebase64sha256.Invoke(new()
{
Input = "contact_flow_module.json",
}).Apply(invoke => invoke.Result),
Tags =
{
{ "Name", "Example Contact Flow Module" },
{ "Application", "Example" },
{ "Method", "Create" },
},
});
});
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 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")
.name("Example")
.description("Example Contact Flow Module Description")
.filename("contact_flow_module.json")
.contentHash(StdFunctions.filebase64sha256(Filebase64sha256Args.builder()
.input("contact_flow_module.json")
.build()).result())
.tags(Map.ofEntries(
Map.entry("Name", "Example Contact Flow Module"),
Map.entry("Application", "Example"),
Map.entry("Method", "Create")
))
.build());
}
}
resources:
example:
type: aws:connect:ContactFlowModule
properties:
instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
name: Example
description: Example Contact Flow Module Description
filename: contact_flow_module.json
contentHash:
fn::invoke:
Function: std:filebase64sha256
Arguments:
input: contact_flow_module.json
Return: result
tags:
Name: Example Contact Flow Module
Application: Example
Method: Create
Create ContactFlowModule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ContactFlowModule(name: string, args: ContactFlowModuleArgs, opts?: CustomResourceOptions);
@overload
def ContactFlowModule(resource_name: str,
args: ContactFlowModuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ContactFlowModule(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
content: Optional[str] = None,
content_hash: Optional[str] = None,
description: Optional[str] = None,
filename: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewContactFlowModule(ctx *Context, name string, args ContactFlowModuleArgs, opts ...ResourceOption) (*ContactFlowModule, error)
public ContactFlowModule(string name, ContactFlowModuleArgs args, CustomResourceOptions? opts = null)
public ContactFlowModule(String name, ContactFlowModuleArgs args)
public ContactFlowModule(String name, ContactFlowModuleArgs args, CustomResourceOptions options)
type: aws:connect:ContactFlowModule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ContactFlowModuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ContactFlowModuleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ContactFlowModuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContactFlowModuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ContactFlowModuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var contactFlowModuleResource = new Aws.Connect.ContactFlowModule("contactFlowModuleResource", new()
{
InstanceId = "string",
Content = "string",
ContentHash = "string",
Description = "string",
Filename = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := connect.NewContactFlowModule(ctx, "contactFlowModuleResource", &connect.ContactFlowModuleArgs{
InstanceId: pulumi.String("string"),
Content: pulumi.String("string"),
ContentHash: pulumi.String("string"),
Description: pulumi.String("string"),
Filename: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var contactFlowModuleResource = new ContactFlowModule("contactFlowModuleResource", ContactFlowModuleArgs.builder()
.instanceId("string")
.content("string")
.contentHash("string")
.description("string")
.filename("string")
.name("string")
.tags(Map.of("string", "string"))
.build());
contact_flow_module_resource = aws.connect.ContactFlowModule("contactFlowModuleResource",
instance_id="string",
content="string",
content_hash="string",
description="string",
filename="string",
name="string",
tags={
"string": "string",
})
const contactFlowModuleResource = new aws.connect.ContactFlowModule("contactFlowModuleResource", {
instanceId: "string",
content: "string",
contentHash: "string",
description: "string",
filename: "string",
name: "string",
tags: {
string: "string",
},
});
type: aws:connect:ContactFlowModule
properties:
content: string
contentHash: string
description: string
filename: string
instanceId: string
name: string
tags:
string: string
ContactFlowModule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ContactFlowModule resource accepts the following input properties:
- Instance
Id string - Specifies the identifier of the hosting Amazon Connect Instance.
- Content string
- 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. - Content
Hash string - Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the Contact Flow Module source specified with
filename
. - Description string
- Specifies the description of the Contact Flow Module.
- Filename string
- The path to the Contact Flow Module source within the local filesystem. Conflicts with
content
. - Name string
- Specifies the name of the Contact Flow Module.
- Dictionary<string, string>
- 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.
- Instance
Id string - Specifies the identifier of the hosting Amazon Connect Instance.
- Content string
- 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. - Content
Hash string - Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the Contact Flow Module source specified with
filename
. - Description string
- Specifies the description of the Contact Flow Module.
- Filename string
- The path to the Contact Flow Module source within the local filesystem. Conflicts with
content
. - Name string
- Specifies the name of the Contact Flow Module.
- map[string]string
- 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.
- instance
Id String - Specifies the identifier of the hosting Amazon Connect Instance.
- content String
- 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. - content
Hash String - Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the Contact Flow Module source specified with
filename
. - description String
- Specifies the description of the Contact Flow Module.
- filename String
- The path to the Contact Flow Module source within the local filesystem. Conflicts with
content
. - name String
- Specifies the name of the Contact Flow Module.
- Map<String,String>
- 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.
- instance
Id string - Specifies the identifier of the hosting Amazon Connect Instance.
- content string
- 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. - content
Hash string - Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the Contact Flow Module source specified with
filename
. - description string
- Specifies the description of the Contact Flow Module.
- filename string
- The path to the Contact Flow Module source within the local filesystem. Conflicts with
content
. - name string
- Specifies the name of the Contact Flow Module.
- {[key: string]: string}
- 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.
- instance_
id str - Specifies the identifier of the hosting Amazon Connect Instance.
- content str
- 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. - content_
hash str - Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the Contact Flow Module source specified with
filename
. - description str
- Specifies the description of the Contact Flow Module.
- filename str
- The path to the Contact Flow Module source within the local filesystem. Conflicts with
content
. - name str
- Specifies the name of the Contact Flow Module.
- Mapping[str, str]
- 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.
- instance
Id String - Specifies the identifier of the hosting Amazon Connect Instance.
- content String
- 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. - content
Hash String - Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the Contact Flow Module source specified with
filename
. - description String
- Specifies the description of the Contact Flow Module.
- filename String
- The path to the Contact Flow Module source within the local filesystem. Conflicts with
content
. - name String
- Specifies the name of the Contact Flow Module.
- Map<String>
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the ContactFlowModule resource produces the following output properties:
- Arn string
- The Amazon Resource Name (ARN) of the Contact Flow Module.
- Contact
Flow stringModule Id - The identifier of the Contact Flow Module.
- Id string
- The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- The Amazon Resource Name (ARN) of the Contact Flow Module.
- Contact
Flow stringModule Id - The identifier of the Contact Flow Module.
- Id string
- The provider-assigned unique ID for this managed resource.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The Amazon Resource Name (ARN) of the Contact Flow Module.
- contact
Flow StringModule Id - The identifier of the Contact Flow Module.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- The Amazon Resource Name (ARN) of the Contact Flow Module.
- contact
Flow stringModule Id - The identifier of the Contact Flow Module.
- id string
- The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- The Amazon Resource Name (ARN) of the Contact Flow Module.
- contact_
flow_ strmodule_ id - The identifier of the Contact Flow Module.
- id str
- The provider-assigned unique ID for this managed resource.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The Amazon Resource Name (ARN) of the Contact Flow Module.
- contact
Flow StringModule Id - The identifier of the Contact Flow Module.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up Existing ContactFlowModule Resource
Get an existing ContactFlowModule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ContactFlowModuleState, opts?: CustomResourceOptions): ContactFlowModule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
contact_flow_module_id: Optional[str] = None,
content: Optional[str] = None,
content_hash: Optional[str] = None,
description: Optional[str] = None,
filename: Optional[str] = None,
instance_id: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> ContactFlowModule
func GetContactFlowModule(ctx *Context, name string, id IDInput, state *ContactFlowModuleState, opts ...ResourceOption) (*ContactFlowModule, error)
public static ContactFlowModule Get(string name, Input<string> id, ContactFlowModuleState? state, CustomResourceOptions? opts = null)
public static ContactFlowModule get(String name, Output<String> id, ContactFlowModuleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- The Amazon Resource Name (ARN) of the Contact Flow Module.
- Contact
Flow stringModule Id - The identifier of the Contact Flow Module.
- Content string
- 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. - Content
Hash string - Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the Contact Flow Module source specified with
filename
. - Description string
- Specifies the description of the Contact Flow Module.
- Filename string
- The path to the Contact Flow Module source within the local filesystem. Conflicts with
content
. - Instance
Id string - Specifies the identifier of the hosting Amazon Connect Instance.
- Name string
- Specifies the name of the Contact Flow Module.
- Dictionary<string, string>
- 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. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- The Amazon Resource Name (ARN) of the Contact Flow Module.
- Contact
Flow stringModule Id - The identifier of the Contact Flow Module.
- Content string
- 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. - Content
Hash string - Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the Contact Flow Module source specified with
filename
. - Description string
- Specifies the description of the Contact Flow Module.
- Filename string
- The path to the Contact Flow Module source within the local filesystem. Conflicts with
content
. - Instance
Id string - Specifies the identifier of the hosting Amazon Connect Instance.
- Name string
- Specifies the name of the Contact Flow Module.
- map[string]string
- 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. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The Amazon Resource Name (ARN) of the Contact Flow Module.
- contact
Flow StringModule Id - The identifier of the Contact Flow Module.
- content String
- 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. - content
Hash String - Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the Contact Flow Module source specified with
filename
. - description String
- Specifies the description of the Contact Flow Module.
- filename String
- The path to the Contact Flow Module source within the local filesystem. Conflicts with
content
. - instance
Id String - Specifies the identifier of the hosting Amazon Connect Instance.
- name String
- Specifies the name of the Contact Flow Module.
- Map<String,String>
- 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. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- The Amazon Resource Name (ARN) of the Contact Flow Module.
- contact
Flow stringModule Id - The identifier of the Contact Flow Module.
- content string
- 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. - content
Hash string - Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the Contact Flow Module source specified with
filename
. - description string
- Specifies the description of the Contact Flow Module.
- filename string
- The path to the Contact Flow Module source within the local filesystem. Conflicts with
content
. - instance
Id string - Specifies the identifier of the hosting Amazon Connect Instance.
- name string
- Specifies the name of the Contact Flow Module.
- {[key: string]: string}
- 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. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- The Amazon Resource Name (ARN) of the Contact Flow Module.
- contact_
flow_ strmodule_ id - The identifier of the Contact Flow Module.
- content str
- 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. - content_
hash str - Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the Contact Flow Module source specified with
filename
. - description str
- Specifies the description of the Contact Flow Module.
- filename str
- The path to the Contact Flow Module source within the local filesystem. Conflicts with
content
. - instance_
id str - Specifies the identifier of the hosting Amazon Connect Instance.
- name str
- Specifies the name of the Contact Flow Module.
- Mapping[str, str]
- 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. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The Amazon Resource Name (ARN) of the Contact Flow Module.
- contact
Flow StringModule Id - The identifier of the Contact Flow Module.
- content String
- 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. - content
Hash String - Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the Contact Flow Module source specified with
filename
. - description String
- Specifies the description of the Contact Flow Module.
- filename String
- The path to the Contact Flow Module source within the local filesystem. Conflicts with
content
. - instance
Id String - Specifies the identifier of the hosting Amazon Connect Instance.
- name String
- Specifies the name of the Contact Flow Module.
- Map<String>
- 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. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Import
Using pulumi import
, import Amazon Connect Contact Flow Modules using the instance_id
and contact_flow_module_id
separated by a colon (:
). For example:
$ pulumi import aws:connect/contactFlowModule:ContactFlowModule example f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.