

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::Wisdom::MessageTemplate MessageTemplateAttachment
<a name="aws-properties-wisdom-messagetemplate-messagetemplateattachment"></a>

Information about the message template attachment.

## Syntax
<a name="aws-properties-wisdom-messagetemplate-messagetemplateattachment-syntax"></a>

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

### JSON
<a name="aws-properties-wisdom-messagetemplate-messagetemplateattachment-syntax.json"></a>

```
{
  "[AttachmentId](#cfn-wisdom-messagetemplate-messagetemplateattachment-attachmentid)" : {{String}},
  "[AttachmentName](#cfn-wisdom-messagetemplate-messagetemplateattachment-attachmentname)" : {{String}},
  "[S3PresignedUrl](#cfn-wisdom-messagetemplate-messagetemplateattachment-s3presignedurl)" : {{String}}
}
```

### YAML
<a name="aws-properties-wisdom-messagetemplate-messagetemplateattachment-syntax.yaml"></a>

```
  [AttachmentId](#cfn-wisdom-messagetemplate-messagetemplateattachment-attachmentid): {{String}}
  [AttachmentName](#cfn-wisdom-messagetemplate-messagetemplateattachment-attachmentname): {{String}}
  [S3PresignedUrl](#cfn-wisdom-messagetemplate-messagetemplateattachment-s3presignedurl): {{String}}
```

## Properties
<a name="aws-properties-wisdom-messagetemplate-messagetemplateattachment-properties"></a>

`AttachmentId`  <a name="cfn-wisdom-messagetemplate-messagetemplateattachment-attachmentid"></a>
The identifier of the attachment file.  
*Required*: No  
*Type*: String  
*Minimum*: `1`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`AttachmentName`  <a name="cfn-wisdom-messagetemplate-messagetemplateattachment-attachmentname"></a>
The name of the attachment file being uploaded. The name should include the file extension.  
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `255`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`S3PresignedUrl`  <a name="cfn-wisdom-messagetemplate-messagetemplateattachment-s3presignedurl"></a>
The S3 Presigned URL for the attachment file. When generating the PreSignedUrl, please ensure that the expires-in time is set to 30 minutes. The URL can be generated through the Amazon Console or through the Amazon CLI. For more information, see [Sharing objects with presigned URLs](https://docs.amazonaws.cn/AmazonS3/latest/userguide/ShareObjectPreSignedURL.html).  
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)