AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi
aws.connect.getContactFlow
Explore with Pulumi AI
Provides details about a specific Amazon Connect Contact Flow.
Example Usage
By name
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = aws.connect.getContactFlow({
instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
name: "Test",
});
import pulumi
import pulumi_aws as aws
test = aws.connect.get_contact_flow(instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
name="Test")
package main
import (
"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 {
_, err := connect.LookupContactFlow(ctx, &connect.LookupContactFlowArgs{
InstanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
Name: pulumi.StringRef("Test"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = Aws.Connect.GetContactFlow.Invoke(new()
{
InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
Name = "Test",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.ConnectFunctions;
import com.pulumi.aws.connect.inputs.GetContactFlowArgs;
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) {
final var test = ConnectFunctions.getContactFlow(GetContactFlowArgs.builder()
.instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
.name("Test")
.build());
}
}
variables:
test:
fn::invoke:
Function: aws:connect:getContactFlow
Arguments:
instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
name: Test
By contact_flow_id
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = aws.connect.getContactFlow({
instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
contactFlowId: "cccccccc-bbbb-cccc-dddd-111111111111",
});
import pulumi
import pulumi_aws as aws
test = aws.connect.get_contact_flow(instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
contact_flow_id="cccccccc-bbbb-cccc-dddd-111111111111")
package main
import (
"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 {
_, err := connect.LookupContactFlow(ctx, &connect.LookupContactFlowArgs{
InstanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
ContactFlowId: pulumi.StringRef("cccccccc-bbbb-cccc-dddd-111111111111"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = Aws.Connect.GetContactFlow.Invoke(new()
{
InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
ContactFlowId = "cccccccc-bbbb-cccc-dddd-111111111111",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.ConnectFunctions;
import com.pulumi.aws.connect.inputs.GetContactFlowArgs;
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) {
final var test = ConnectFunctions.getContactFlow(GetContactFlowArgs.builder()
.instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
.contactFlowId("cccccccc-bbbb-cccc-dddd-111111111111")
.build());
}
}
variables:
test:
fn::invoke:
Function: aws:connect:getContactFlow
Arguments:
instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
contactFlowId: cccccccc-bbbb-cccc-dddd-111111111111
Using getContactFlow
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getContactFlow(args: GetContactFlowArgs, opts?: InvokeOptions): Promise<GetContactFlowResult>
function getContactFlowOutput(args: GetContactFlowOutputArgs, opts?: InvokeOptions): Output<GetContactFlowResult>
def get_contact_flow(contact_flow_id: Optional[str] = None,
instance_id: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetContactFlowResult
def get_contact_flow_output(contact_flow_id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetContactFlowResult]
func LookupContactFlow(ctx *Context, args *LookupContactFlowArgs, opts ...InvokeOption) (*LookupContactFlowResult, error)
func LookupContactFlowOutput(ctx *Context, args *LookupContactFlowOutputArgs, opts ...InvokeOption) LookupContactFlowResultOutput
> Note: This function is named LookupContactFlow
in the Go SDK.
public static class GetContactFlow
{
public static Task<GetContactFlowResult> InvokeAsync(GetContactFlowArgs args, InvokeOptions? opts = null)
public static Output<GetContactFlowResult> Invoke(GetContactFlowInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetContactFlowResult> getContactFlow(GetContactFlowArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:connect/getContactFlow:getContactFlow
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - Reference to the hosting Amazon Connect Instance
- Contact
Flow stringId - Returns information on a specific Contact Flow by contact flow id
- Name string
- Returns information on a specific Contact Flow by name
- Dictionary<string, string>
- Tags to assign to the Contact Flow.
- Type string
- Type of Contact Flow.
- Instance
Id string - Reference to the hosting Amazon Connect Instance
- Contact
Flow stringId - Returns information on a specific Contact Flow by contact flow id
- Name string
- Returns information on a specific Contact Flow by name
- map[string]string
- Tags to assign to the Contact Flow.
- Type string
- Type of Contact Flow.
- instance
Id String - Reference to the hosting Amazon Connect Instance
- contact
Flow StringId - Returns information on a specific Contact Flow by contact flow id
- name String
- Returns information on a specific Contact Flow by name
- Map<String,String>
- Tags to assign to the Contact Flow.
- type String
- Type of Contact Flow.
- instance
Id string - Reference to the hosting Amazon Connect Instance
- contact
Flow stringId - Returns information on a specific Contact Flow by contact flow id
- name string
- Returns information on a specific Contact Flow by name
- {[key: string]: string}
- Tags to assign to the Contact Flow.
- type string
- Type of Contact Flow.
- instance_
id str - Reference to the hosting Amazon Connect Instance
- contact_
flow_ strid - Returns information on a specific Contact Flow by contact flow id
- name str
- Returns information on a specific Contact Flow by name
- Mapping[str, str]
- Tags to assign to the Contact Flow.
- type str
- Type of Contact Flow.
- instance
Id String - Reference to the hosting Amazon Connect Instance
- contact
Flow StringId - Returns information on a specific Contact Flow by contact flow id
- name String
- Returns information on a specific Contact Flow by name
- Map<String>
- Tags to assign to the Contact Flow.
- type String
- Type of Contact Flow.
getContactFlow Result
The following output properties are available:
- Arn string
- ARN of the Contact Flow.
- Contact
Flow stringId - Content string
- Logic of the Contact Flow.
- Description string
- Description of the Contact Flow.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Name string
- Dictionary<string, string>
- Tags to assign to the Contact Flow.
- Type string
- Type of Contact Flow.
- Arn string
- ARN of the Contact Flow.
- Contact
Flow stringId - Content string
- Logic of the Contact Flow.
- Description string
- Description of the Contact Flow.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Name string
- map[string]string
- Tags to assign to the Contact Flow.
- Type string
- Type of Contact Flow.
- arn String
- ARN of the Contact Flow.
- contact
Flow StringId - content String
- Logic of the Contact Flow.
- description String
- Description of the Contact Flow.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - name String
- Map<String,String>
- Tags to assign to the Contact Flow.
- type String
- Type of Contact Flow.
- arn string
- ARN of the Contact Flow.
- contact
Flow stringId - content string
- Logic of the Contact Flow.
- description string
- Description of the Contact Flow.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - name string
- {[key: string]: string}
- Tags to assign to the Contact Flow.
- type string
- Type of Contact Flow.
- arn str
- ARN of the Contact Flow.
- contact_
flow_ strid - content str
- Logic of the Contact Flow.
- description str
- Description of the Contact Flow.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
id str - name str
- Mapping[str, str]
- Tags to assign to the Contact Flow.
- type str
- Type of Contact Flow.
- arn String
- ARN of the Contact Flow.
- contact
Flow StringId - content String
- Logic of the Contact Flow.
- description String
- Description of the Contact Flow.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - name String
- Map<String>
- Tags to assign to the Contact Flow.
- type String
- Type of Contact Flow.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.