ExternalSourceSettingProperty Struct
Provides information about the external source of the slot type's definition.
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 externalSourceSettingProperty: lex.CfnBot.ExternalSourceSettingProperty = {
grammarSlotTypeSetting: {
source: {
s3BucketName: 's3BucketName',
s3ObjectKey: 's3ObjectKey',
// the properties below are optional
kmsKeyArn: 'kmsKeyArn',
},
},
};
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
external_source_setting_property = lex.CfnBot.ExternalSourceSettingProperty(
grammar_slot_type_setting=lex.CfnBot.GrammarSlotTypeSettingProperty(
source=lex.CfnBot.GrammarSlotTypeSourceProperty(
s3_bucket_name="s3BucketName",
s3_object_key="s3ObjectKey",
# the properties below are optional
kms_key_arn="kmsKeyArn"
)
)
)
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.*;
ExternalSourceSettingProperty externalSourceSettingProperty = ExternalSourceSettingProperty.builder()
.grammarSlotTypeSetting(GrammarSlotTypeSettingProperty.builder()
.source(GrammarSlotTypeSourceProperty.builder()
.s3BucketName("s3BucketName")
.s3ObjectKey("s3ObjectKey")
// the properties below are optional
.kmsKeyArn("kmsKeyArn")
.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 externalSourceSettingProperty = new ExternalSourceSettingProperty {
GrammarSlotTypeSetting = new GrammarSlotTypeSettingProperty {
Source = new GrammarSlotTypeSourceProperty {
S3BucketName = "s3BucketName",
S3ObjectKey = "s3ObjectKey",
// the properties below are optional
KmsKeyArn = "kmsKeyArn"
}
}
};
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"
externalSourceSettingProperty := &ExternalSourceSettingProperty{
GrammarSlotTypeSetting: &GrammarSlotTypeSettingProperty{
Source: &GrammarSlotTypeSourceProperty{
S3BucketName: jsii.String("s3BucketName"),
S3ObjectKey: jsii.String("s3ObjectKey"),
// the properties below are optional
KmsKeyArn: jsii.String("kmsKeyArn"),
},
},
}
Properties
grammarSlotTypeSettingoptionalIResolvable | CfnBot.GrammarSlotTypeSettingPropertygrammar_slot_type_settingoptionaltyping.Union[IResolvable, GrammarSlotTypeSettingProperty]grammarSlotTypeSettingoptionalIResolvableGrammarSlotTypeSettingoptionalIResolvableGrammarSlotTypeSettingoptionalinterface{}#Settings required for a slot type based on a grammar that you provide.