1. Packages
  2. AWS
  3. API Docs
  4. connect
  5. getContactFlowModule
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.connect.getContactFlowModule

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Provides details about a specific Amazon Connect Contact Flow Module.

    Example Usage

    By name

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.connect.getContactFlowModule({
        instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
        name: "example",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.connect.get_contact_flow_module(instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
        name="example")
    
    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.LookupContactFlowModule(ctx, &connect.LookupContactFlowModuleArgs{
    			InstanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
    			Name:       pulumi.StringRef("example"),
    		}, 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 example = Aws.Connect.GetContactFlowModule.Invoke(new()
        {
            InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
            Name = "example",
        });
    
    });
    
    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.GetContactFlowModuleArgs;
    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 example = ConnectFunctions.getContactFlowModule(GetContactFlowModuleArgs.builder()
                .instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
                .name("example")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:connect:getContactFlowModule
          Arguments:
            instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
            name: example
    

    By contact_flow_module_id

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.connect.getContactFlowModule({
        instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
        contactFlowModuleId: "cccccccc-bbbb-cccc-dddd-111111111111",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.connect.get_contact_flow_module(instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
        contact_flow_module_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.LookupContactFlowModule(ctx, &connect.LookupContactFlowModuleArgs{
    			InstanceId:          "aaaaaaaa-bbbb-cccc-dddd-111111111111",
    			ContactFlowModuleId: 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 example = Aws.Connect.GetContactFlowModule.Invoke(new()
        {
            InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
            ContactFlowModuleId = "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.GetContactFlowModuleArgs;
    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 example = ConnectFunctions.getContactFlowModule(GetContactFlowModuleArgs.builder()
                .instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
                .contactFlowModuleId("cccccccc-bbbb-cccc-dddd-111111111111")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:connect:getContactFlowModule
          Arguments:
            instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
            contactFlowModuleId: cccccccc-bbbb-cccc-dddd-111111111111
    

    Using getContactFlowModule

    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 getContactFlowModule(args: GetContactFlowModuleArgs, opts?: InvokeOptions): Promise<GetContactFlowModuleResult>
    function getContactFlowModuleOutput(args: GetContactFlowModuleOutputArgs, opts?: InvokeOptions): Output<GetContactFlowModuleResult>
    def get_contact_flow_module(contact_flow_module_id: Optional[str] = None,
                                instance_id: Optional[str] = None,
                                name: Optional[str] = None,
                                tags: Optional[Mapping[str, str]] = None,
                                opts: Optional[InvokeOptions] = None) -> GetContactFlowModuleResult
    def get_contact_flow_module_output(contact_flow_module_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,
                                opts: Optional[InvokeOptions] = None) -> Output[GetContactFlowModuleResult]
    func LookupContactFlowModule(ctx *Context, args *LookupContactFlowModuleArgs, opts ...InvokeOption) (*LookupContactFlowModuleResult, error)
    func LookupContactFlowModuleOutput(ctx *Context, args *LookupContactFlowModuleOutputArgs, opts ...InvokeOption) LookupContactFlowModuleResultOutput

    > Note: This function is named LookupContactFlowModule in the Go SDK.

    public static class GetContactFlowModule 
    {
        public static Task<GetContactFlowModuleResult> InvokeAsync(GetContactFlowModuleArgs args, InvokeOptions? opts = null)
        public static Output<GetContactFlowModuleResult> Invoke(GetContactFlowModuleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetContactFlowModuleResult> getContactFlowModule(GetContactFlowModuleArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:connect/getContactFlowModule:getContactFlowModule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    Reference to the hosting Amazon Connect Instance
    ContactFlowModuleId string
    Returns information on a specific Contact Flow Module by contact flow module id
    Name string
    Returns information on a specific Contact Flow Module by name
    Tags Dictionary<string, string>
    Map of tags to assign to the Contact Flow Module.
    InstanceId string
    Reference to the hosting Amazon Connect Instance
    ContactFlowModuleId string
    Returns information on a specific Contact Flow Module by contact flow module id
    Name string
    Returns information on a specific Contact Flow Module by name
    Tags map[string]string
    Map of tags to assign to the Contact Flow Module.
    instanceId String
    Reference to the hosting Amazon Connect Instance
    contactFlowModuleId String
    Returns information on a specific Contact Flow Module by contact flow module id
    name String
    Returns information on a specific Contact Flow Module by name
    tags Map<String,String>
    Map of tags to assign to the Contact Flow Module.
    instanceId string
    Reference to the hosting Amazon Connect Instance
    contactFlowModuleId string
    Returns information on a specific Contact Flow Module by contact flow module id
    name string
    Returns information on a specific Contact Flow Module by name
    tags {[key: string]: string}
    Map of tags to assign to the Contact Flow Module.
    instance_id str
    Reference to the hosting Amazon Connect Instance
    contact_flow_module_id str
    Returns information on a specific Contact Flow Module by contact flow module id
    name str
    Returns information on a specific Contact Flow Module by name
    tags Mapping[str, str]
    Map of tags to assign to the Contact Flow Module.
    instanceId String
    Reference to the hosting Amazon Connect Instance
    contactFlowModuleId String
    Returns information on a specific Contact Flow Module by contact flow module id
    name String
    Returns information on a specific Contact Flow Module by name
    tags Map<String>
    Map of tags to assign to the Contact Flow Module.

    getContactFlowModule Result

    The following output properties are available:

    Arn string
    ARN of the Contact Flow Module.
    ContactFlowModuleId string
    Content string
    Logic of the Contact Flow Module.
    Description string
    Description of the Contact Flow Module.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    Name string
    State string
    Type of Contact Flow Module Module. Values are either ACTIVE or ARCHIVED.
    Status string
    Status of the Contact Flow Module Module. Values are either PUBLISHED or SAVED.
    Tags Dictionary<string, string>
    Map of tags to assign to the Contact Flow Module.
    Arn string
    ARN of the Contact Flow Module.
    ContactFlowModuleId string
    Content string
    Logic of the Contact Flow Module.
    Description string
    Description of the Contact Flow Module.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    Name string
    State string
    Type of Contact Flow Module Module. Values are either ACTIVE or ARCHIVED.
    Status string
    Status of the Contact Flow Module Module. Values are either PUBLISHED or SAVED.
    Tags map[string]string
    Map of tags to assign to the Contact Flow Module.
    arn String
    ARN of the Contact Flow Module.
    contactFlowModuleId String
    content String
    Logic of the Contact Flow Module.
    description String
    Description of the Contact Flow Module.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    name String
    state String
    Type of Contact Flow Module Module. Values are either ACTIVE or ARCHIVED.
    status String
    Status of the Contact Flow Module Module. Values are either PUBLISHED or SAVED.
    tags Map<String,String>
    Map of tags to assign to the Contact Flow Module.
    arn string
    ARN of the Contact Flow Module.
    contactFlowModuleId string
    content string
    Logic of the Contact Flow Module.
    description string
    Description of the Contact Flow Module.
    id string
    The provider-assigned unique ID for this managed resource.
    instanceId string
    name string
    state string
    Type of Contact Flow Module Module. Values are either ACTIVE or ARCHIVED.
    status string
    Status of the Contact Flow Module Module. Values are either PUBLISHED or SAVED.
    tags {[key: string]: string}
    Map of tags to assign to the Contact Flow Module.
    arn str
    ARN of the Contact Flow Module.
    contact_flow_module_id str
    content str
    Logic of the Contact Flow Module.
    description str
    Description of the Contact Flow Module.
    id str
    The provider-assigned unique ID for this managed resource.
    instance_id str
    name str
    state str
    Type of Contact Flow Module Module. Values are either ACTIVE or ARCHIVED.
    status str
    Status of the Contact Flow Module Module. Values are either PUBLISHED or SAVED.
    tags Mapping[str, str]
    Map of tags to assign to the Contact Flow Module.
    arn String
    ARN of the Contact Flow Module.
    contactFlowModuleId String
    content String
    Logic of the Contact Flow Module.
    description String
    Description of the Contact Flow Module.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    name String
    state String
    Type of Contact Flow Module Module. Values are either ACTIVE or ARCHIVED.
    status String
    Status of the Contact Flow Module Module. Values are either PUBLISHED or SAVED.
    tags Map<String>
    Map of tags to assign to the Contact Flow Module.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi