Skip to content
v2.278.0

BedrockAgentIntentConfigurationProperty Struct ​

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 lex } from 'aws-cdk-lib';
const bedrockAgentIntentConfigurationProperty: lex.CfnBot.BedrockAgentIntentConfigurationProperty = {
  bedrockAgentConfiguration: {
    bedrockAgentAliasId: 'bedrockAgentAliasId',
    bedrockAgentId: 'bedrockAgentId',
  },
  bedrockAgentIntentKnowledgeBaseConfiguration: {
    bedrockKnowledgeBaseArn: 'bedrockKnowledgeBaseArn',
    bedrockModelConfiguration: {
      modelArn: 'modelArn',

      // the properties below are optional
      bedrockGuardrailConfiguration: {
        bedrockGuardrailIdentifier: 'bedrockGuardrailIdentifier',
        bedrockGuardrailVersion: 'bedrockGuardrailVersion',
      },
      bedrockModelCustomPrompt: 'bedrockModelCustomPrompt',
      bedrockTraceStatus: 'bedrockTraceStatus',
    },
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lex as lex

bedrock_agent_intent_configuration_property = lex.CfnBot.BedrockAgentIntentConfigurationProperty(
    bedrock_agent_configuration=lex.CfnBot.BedrockAgentConfigurationProperty(
        bedrock_agent_alias_id="bedrockAgentAliasId",
        bedrock_agent_id="bedrockAgentId"
    ),
    bedrock_agent_intent_knowledge_base_configuration=lex.CfnBot.BedrockAgentIntentKnowledgeBaseConfigurationProperty(
        bedrock_knowledge_base_arn="bedrockKnowledgeBaseArn",
        bedrock_model_configuration=lex.CfnBot.BedrockModelSpecificationProperty(
            model_arn="modelArn",

            # the properties below are optional
            bedrock_guardrail_configuration=lex.CfnBot.BedrockGuardrailConfigurationProperty(
                bedrock_guardrail_identifier="bedrockGuardrailIdentifier",
                bedrock_guardrail_version="bedrockGuardrailVersion"
            ),
            bedrock_model_custom_prompt="bedrockModelCustomPrompt",
            bedrock_trace_status="bedrockTraceStatus"
        )
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lex.*;

BedrockAgentIntentConfigurationProperty bedrockAgentIntentConfigurationProperty = BedrockAgentIntentConfigurationProperty.builder()
        .bedrockAgentConfiguration(BedrockAgentConfigurationProperty.builder()
                .bedrockAgentAliasId("bedrockAgentAliasId")
                .bedrockAgentId("bedrockAgentId")
                .build())
        .bedrockAgentIntentKnowledgeBaseConfiguration(BedrockAgentIntentKnowledgeBaseConfigurationProperty.builder()
                .bedrockKnowledgeBaseArn("bedrockKnowledgeBaseArn")
                .bedrockModelConfiguration(BedrockModelSpecificationProperty.builder()
                        .modelArn("modelArn")

                        // the properties below are optional
                        .bedrockGuardrailConfiguration(BedrockGuardrailConfigurationProperty.builder()
                                .bedrockGuardrailIdentifier("bedrockGuardrailIdentifier")
                                .bedrockGuardrailVersion("bedrockGuardrailVersion")
                                .build())
                        .bedrockModelCustomPrompt("bedrockModelCustomPrompt")
                        .bedrockTraceStatus("bedrockTraceStatus")
                        .build())
                .build())
        .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.AWS.Lex;

var bedrockAgentIntentConfigurationProperty = new BedrockAgentIntentConfigurationProperty {
    BedrockAgentConfiguration = new BedrockAgentConfigurationProperty {
        BedrockAgentAliasId = "bedrockAgentAliasId",
        BedrockAgentId = "bedrockAgentId"
    },
    BedrockAgentIntentKnowledgeBaseConfiguration = new BedrockAgentIntentKnowledgeBaseConfigurationProperty {
        BedrockKnowledgeBaseArn = "bedrockKnowledgeBaseArn",
        BedrockModelConfiguration = new BedrockModelSpecificationProperty {
            ModelArn = "modelArn",

            // the properties below are optional
            BedrockGuardrailConfiguration = new BedrockGuardrailConfigurationProperty {
                BedrockGuardrailIdentifier = "bedrockGuardrailIdentifier",
                BedrockGuardrailVersion = "bedrockGuardrailVersion"
            },
            BedrockModelCustomPrompt = "bedrockModelCustomPrompt",
            BedrockTraceStatus = "bedrockTraceStatus"
        }
    }
};
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"

bedrockAgentIntentConfigurationProperty := &BedrockAgentIntentConfigurationProperty{
	BedrockAgentConfiguration: &BedrockAgentConfigurationProperty{
		BedrockAgentAliasId: jsii.String("bedrockAgentAliasId"),
		BedrockAgentId: jsii.String("bedrockAgentId"),
	},
	BedrockAgentIntentKnowledgeBaseConfiguration: &BedrockAgentIntentKnowledgeBaseConfigurationProperty{
		BedrockKnowledgeBaseArn: jsii.String("bedrockKnowledgeBaseArn"),
		BedrockModelConfiguration: &BedrockModelSpecificationProperty{
			ModelArn: jsii.String("modelArn"),

			// the properties below are optional
			BedrockGuardrailConfiguration: &BedrockGuardrailConfigurationProperty{
				BedrockGuardrailIdentifier: jsii.String("bedrockGuardrailIdentifier"),
				BedrockGuardrailVersion: jsii.String("bedrockGuardrailVersion"),
			},
			BedrockModelCustomPrompt: jsii.String("bedrockModelCustomPrompt"),
			BedrockTraceStatus: jsii.String("bedrockTraceStatus"),
		},
	},
}

Properties ​

bedrockAgentConfigurationoptionalIResolvable | CfnBot.BedrockAgentConfigurationPropertybedrock_agent_configurationoptionaltyping.Union[IResolvable, BedrockAgentConfigurationProperty]bedrockAgentConfigurationoptionalIResolvableBedrockAgentConfigurationoptionalIResolvableBedrockAgentConfigurationoptionalinterface{} #
bedrockAgentIntentKnowledgeBaseConfigurationoptionalIResolvable | CfnBot.BedrockAgentIntentKnowledgeBaseConfigurationPropertybedrock_agent_intent_knowledge_base_configurationoptionaltyping.Union[IResolvable, BedrockAgentIntentKnowledgeBaseConfigurationProperty]bedrockAgentIntentKnowledgeBaseConfigurationoptionalIResolvableBedrockAgentIntentKnowledgeBaseConfigurationoptionalIResolvableBedrockAgentIntentKnowledgeBaseConfigurationoptionalinterface{} #