1. Packages
  2. AWS Classic
  3. API Docs
  4. connect
  5. getBotAssociation

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.41.0 published on Tuesday, Jun 18, 2024 by Pulumi

aws.connect.getBotAssociation

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.41.0 published on Tuesday, Jun 18, 2024 by Pulumi

    Provides details about a specific Lex (V1) Bot associated with an Amazon Connect instance.

    Example Usage

    By name

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.connect.getBotAssociation({
        instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
        lexBot: {
            name: "Test",
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.connect.get_bot_association(instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
        lex_bot=aws.connect.GetBotAssociationLexBotArgs(
            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.LookupBotAssociation(ctx, &connect.LookupBotAssociationArgs{
    			InstanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
    			LexBot: connect.GetBotAssociationLexBot{
    				Name: "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 example = Aws.Connect.GetBotAssociation.Invoke(new()
        {
            InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
            LexBot = new Aws.Connect.Inputs.GetBotAssociationLexBotInputArgs
            {
                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.GetBotAssociationArgs;
    import com.pulumi.aws.connect.inputs.GetBotAssociationLexBotArgs;
    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.getBotAssociation(GetBotAssociationArgs.builder()
                .instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
                .lexBot(GetBotAssociationLexBotArgs.builder()
                    .name("Test")
                    .build())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:connect:getBotAssociation
          Arguments:
            instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
            lexBot:
              name: Test
    

    Using getBotAssociation

    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 getBotAssociation(args: GetBotAssociationArgs, opts?: InvokeOptions): Promise<GetBotAssociationResult>
    function getBotAssociationOutput(args: GetBotAssociationOutputArgs, opts?: InvokeOptions): Output<GetBotAssociationResult>
    def get_bot_association(instance_id: Optional[str] = None,
                            lex_bot: Optional[GetBotAssociationLexBot] = None,
                            opts: Optional[InvokeOptions] = None) -> GetBotAssociationResult
    def get_bot_association_output(instance_id: Optional[pulumi.Input[str]] = None,
                            lex_bot: Optional[pulumi.Input[GetBotAssociationLexBotArgs]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetBotAssociationResult]
    func LookupBotAssociation(ctx *Context, args *LookupBotAssociationArgs, opts ...InvokeOption) (*LookupBotAssociationResult, error)
    func LookupBotAssociationOutput(ctx *Context, args *LookupBotAssociationOutputArgs, opts ...InvokeOption) LookupBotAssociationResultOutput

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

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

    The following arguments are supported:

    InstanceId string
    Identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
    LexBot GetBotAssociationLexBot
    Configuration information of an Amazon Lex (V1) bot. Detailed below.
    InstanceId string
    Identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
    LexBot GetBotAssociationLexBot
    Configuration information of an Amazon Lex (V1) bot. Detailed below.
    instanceId String
    Identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
    lexBot GetBotAssociationLexBot
    Configuration information of an Amazon Lex (V1) bot. Detailed below.
    instanceId string
    Identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
    lexBot GetBotAssociationLexBot
    Configuration information of an Amazon Lex (V1) bot. Detailed below.
    instance_id str
    Identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
    lex_bot GetBotAssociationLexBot
    Configuration information of an Amazon Lex (V1) bot. Detailed below.
    instanceId String
    Identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
    lexBot Property Map
    Configuration information of an Amazon Lex (V1) bot. Detailed below.

    getBotAssociation Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    LexBot GetBotAssociationLexBot
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    LexBot GetBotAssociationLexBot
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    lexBot GetBotAssociationLexBot
    id string
    The provider-assigned unique ID for this managed resource.
    instanceId string
    lexBot GetBotAssociationLexBot
    id str
    The provider-assigned unique ID for this managed resource.
    instance_id str
    lex_bot GetBotAssociationLexBot
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    lexBot Property Map

    Supporting Types

    GetBotAssociationLexBot

    LexRegion string
    Region that the Amazon Lex (V1) bot was created in.
    Name string
    Name of the Amazon Lex (V1) bot.
    LexRegion string
    Region that the Amazon Lex (V1) bot was created in.
    Name string
    Name of the Amazon Lex (V1) bot.
    lexRegion String
    Region that the Amazon Lex (V1) bot was created in.
    name String
    Name of the Amazon Lex (V1) bot.
    lexRegion string
    Region that the Amazon Lex (V1) bot was created in.
    name string
    Name of the Amazon Lex (V1) bot.
    lex_region str
    Region that the Amazon Lex (V1) bot was created in.
    name str
    Name of the Amazon Lex (V1) bot.
    lexRegion String
    Region that the Amazon Lex (V1) bot was created in.
    name String
    Name of the Amazon Lex (V1) bot.

    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

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.41.0 published on Tuesday, Jun 18, 2024 by Pulumi