AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.connect.getBotAssociation
Explore with Pulumi AI
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={
"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:
- Instance
Id string - 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 - 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 - 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 - 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 - 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 - 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 - Region that the Amazon Lex (V1) bot was created in.
- name str
- 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.