

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::Lex::Bot GrammarSlotTypeSource
<a name="aws-properties-lex-bot-grammarslottypesource"></a>

Describes the Amazon S3 bucket name and location for the grammar that is the source for the slot type.

## Syntax
<a name="aws-properties-lex-bot-grammarslottypesource-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-lex-bot-grammarslottypesource-syntax.json"></a>

```
{
  "[KmsKeyArn](#cfn-lex-bot-grammarslottypesource-kmskeyarn)" : {{String}},
  "[S3BucketName](#cfn-lex-bot-grammarslottypesource-s3bucketname)" : {{String}},
  "[S3ObjectKey](#cfn-lex-bot-grammarslottypesource-s3objectkey)" : {{String}}
}
```

### YAML
<a name="aws-properties-lex-bot-grammarslottypesource-syntax.yaml"></a>

```
  [KmsKeyArn](#cfn-lex-bot-grammarslottypesource-kmskeyarn): {{String}}
  [S3BucketName](#cfn-lex-bot-grammarslottypesource-s3bucketname): {{String}}
  [S3ObjectKey](#cfn-lex-bot-grammarslottypesource-s3objectkey): {{String}}
```

## Properties
<a name="aws-properties-lex-bot-grammarslottypesource-properties"></a>

`KmsKeyArn`  <a name="cfn-lex-bot-grammarslottypesource-kmskeyarn"></a>
The Amazon KMS key required to decrypt the contents of the grammar, if any.  
*Required*: No  
*Type*: String  
*Pattern*: `^arn:[\w\-]+:kms:[\w\-]+:[\d]{12}:(?:key\/[\w\-]+|alias\/[a-zA-Z0-9:\/_\-]{1,256})$`  
*Minimum*: `20`  
*Maximum*: `2048`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`S3BucketName`  <a name="cfn-lex-bot-grammarslottypesource-s3bucketname"></a>
The name of the Amazon S3 bucket that contains the grammar source.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9]$`  
*Minimum*: `3`  
*Maximum*: `63`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`S3ObjectKey`  <a name="cfn-lex-bot-grammarslottypesource-s3objectkey"></a>
The path to the grammar in the Amazon S3 bucket.  
*Required*: Yes  
*Type*: String  
*Pattern*: `[\.\-\!\*\_\'\(\)a-zA-Z0-9][\.\-\!\*\_\'\(\)\/a-zA-Z0-9]*$`  
*Minimum*: `1`  
*Maximum*: `1024`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)