AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.6.0 published on Friday, May 27, 2022 by Pulumi

getBotAssociation

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

Example Usage

By name

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.Connect.GetBotAssociation.InvokeAsync(new Aws.Connect.GetBotAssociationArgs
        {
            InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
            LexBot = new Aws.Connect.Inputs.GetBotAssociationLexBotArgs
            {
                Name = "Test",
            },
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/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
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = Output.of(ConnectFunctions.getBotAssociation(GetBotAssociationArgs.builder()
            .instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
            .lexBot(GetBotAssociationLexBotArgs.builder()
                .name("Test")
                .build())
            .build()));

    }
}
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",
    ))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.connect.getBotAssociation({
    instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
    lexBot: {
        name: "Test",
    },
}));
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

The 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

The 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

The 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

The 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

The 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

The 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

The Region that the Amazon Lex (V1) bot was created in.

Name string

The name of the Amazon Lex (V1) bot.

LexRegion string

The Region that the Amazon Lex (V1) bot was created in.

Name string

The name of the Amazon Lex (V1) bot.

lexRegion String

The Region that the Amazon Lex (V1) bot was created in.

name String

The name of the Amazon Lex (V1) bot.

lexRegion string

The Region that the Amazon Lex (V1) bot was created in.

name string

The name of the Amazon Lex (V1) bot.

lex_region str

The Region that the Amazon Lex (V1) bot was created in.

name str

The name of the Amazon Lex (V1) bot.

lexRegion String

The Region that the Amazon Lex (V1) bot was created in.

name String

The name of the Amazon Lex (V1) bot.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.