# GrammarSlotTypeSettingProperty

Settings requried for a slot type based on a grammar that you provide.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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 grammarSlotTypeSettingProperty: lex.CfnBot.GrammarSlotTypeSettingProperty = {
  source: {
    s3BucketName: 's3BucketName',
    s3ObjectKey: 's3ObjectKey',

    // the properties below are optional
    kmsKeyArn: 'kmsKeyArn',
  },
};
```

Python:

```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

grammar_slot_type_setting_property = 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:

```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.*;

GrammarSlotTypeSettingProperty grammarSlotTypeSettingProperty = GrammarSlotTypeSettingProperty.builder()
        .source(GrammarSlotTypeSourceProperty.builder()
                .s3BucketName("s3BucketName")
                .s3ObjectKey("s3ObjectKey")

                // the properties below are optional
                .kmsKeyArn("kmsKeyArn")
                .build())
        .build();
```

C# / .NET:

```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 grammarSlotTypeSettingProperty = new GrammarSlotTypeSettingProperty {
    Source = new GrammarSlotTypeSourceProperty {
        S3BucketName = "s3BucketName",
        S3ObjectKey = "s3ObjectKey",

        // the properties below are optional
        KmsKeyArn = "kmsKeyArn"
    }
};
```

Golang:

```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"

grammarSlotTypeSettingProperty := &GrammarSlotTypeSettingProperty{
	Source: &GrammarSlotTypeSourceProperty{
		S3BucketName: jsii.String("s3BucketName"),
		S3ObjectKey: jsii.String("s3ObjectKey"),

		// the properties below are optional
		KmsKeyArn: jsii.String("kmsKeyArn"),
	},
}
```

## Properties

- `source`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.GrammarSlotTypeSourceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.GrammarSlotTypeSourceProperty.html) — The source of the grammar used to create the slot type.
