Skip to content
v2.277.0

BotReference Struct ​

A reference to a Bot resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lex as interfaces_lex } from 'aws-cdk-lib/interfaces';
const botReference: interfaces_lex.BotReference = {
  botArn: 'botArn',
  botId: 'botId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_lex as interfaces_lex

bot_reference = interfaces_lex.BotReference(
    bot_arn="botArn",
    bot_id="botId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.lex.*;

BotReference botReference = BotReference.builder()
        .botArn("botArn")
        .botId("botId")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Interfaces.Lex;

var botReference = new BotReference {
    BotArn = "botArn",
    BotId = "botId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

botReference := &BotReference{
	BotArn: jsii.String("botArn"),
	BotId: jsii.String("botId"),
}

Properties ​

botArnstringbot_arnstrbotArnStringBotArnstringBotArn*stringrequired#
The ARN of the Bot resource.
botIdstringbot_idstrbotIdStringBotIdstringBotId*stringrequired#
The Id of the Bot resource.