AWS Classic
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:
- Instance
Id string The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
- Lex
Bot GetBot Association Lex Bot Configuration information of an Amazon Lex (V1) bot. Detailed below.
- Instance
Id string The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
- Lex
Bot GetBot Association Lex Bot Configuration information of an Amazon Lex (V1) bot. Detailed below.
- instance
Id String The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
- lex
Bot GetBot Association Lex Bot Configuration information of an Amazon Lex (V1) bot. Detailed below.
- instance
Id string The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
- lex
Bot GetBot Association Lex Bot 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 GetBot Association Lex Bot Configuration information of an Amazon Lex (V1) bot. Detailed below.
- instance
Id String The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
- lex
Bot 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.
- Instance
Id string - Lex
Bot GetBot Association Lex Bot
- Id string
The provider-assigned unique ID for this managed resource.
- Instance
Id string - Lex
Bot GetBot Association Lex Bot
- id String
The provider-assigned unique ID for this managed resource.
- instance
Id String - lex
Bot GetBot Association Lex Bot
- id string
The provider-assigned unique ID for this managed resource.
- instance
Id string - lex
Bot GetBot Association Lex Bot
- id str
The provider-assigned unique ID for this managed resource.
- instance_
id str - lex_
bot GetBot Association Lex Bot
- id String
The provider-assigned unique ID for this managed resource.
- instance
Id String - lex
Bot Property Map
Supporting Types
GetBotAssociationLexBot
- lex_
region str The Region that the Amazon Lex (V1) bot was created in.
- name str
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.