SampleUtteranceGenerationSpecificationProperty Struct
Contains specifications for the sample utterance generation feature.
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 sampleUtteranceGenerationSpecificationProperty: lex.CfnBot.SampleUtteranceGenerationSpecificationProperty = {
enabled: false,
// the properties below are optional
bedrockModelSpecification: {
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
sample_utterance_generation_specification_property = lex.CfnBot.SampleUtteranceGenerationSpecificationProperty(
enabled=False,
# the properties below are optional
bedrock_model_specification=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.*;
SampleUtteranceGenerationSpecificationProperty sampleUtteranceGenerationSpecificationProperty = SampleUtteranceGenerationSpecificationProperty.builder()
.enabled(false)
// the properties below are optional
.bedrockModelSpecification(BedrockModelSpecificationProperty.builder()
.modelArn("modelArn")
// the properties below are optional
.bedrockGuardrailConfiguration(BedrockGuardrailConfigurationProperty.builder()
.bedrockGuardrailIdentifier("bedrockGuardrailIdentifier")
.bedrockGuardrailVersion("bedrockGuardrailVersion")
.build())
.bedrockModelCustomPrompt("bedrockModelCustomPrompt")
.bedrockTraceStatus("bedrockTraceStatus")
.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 sampleUtteranceGenerationSpecificationProperty = new SampleUtteranceGenerationSpecificationProperty {
Enabled = false,
// the properties below are optional
BedrockModelSpecification = 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"
sampleUtteranceGenerationSpecificationProperty := &SampleUtteranceGenerationSpecificationProperty{
Enabled: jsii.Boolean(false),
// the properties below are optional
BedrockModelSpecification: &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
bedrockModelSpecificationoptionalIResolvable | CfnBot.BedrockModelSpecificationPropertybedrock_model_specificationoptionaltyping.Union[IResolvable, BedrockModelSpecificationProperty]bedrockModelSpecificationoptionalIResolvableBedrockModelSpecificationoptionalIResolvableBedrockModelSpecificationoptionalinterface{}#enabledboolean | IResolvableenabledtyping.Union[bool, IResolvable]enabledBooleanEnabledboolEnabledinterface{}required#Specifies whether to enable sample utterance generation or not.