# MessageTemplateAttachmentProperty

Information about the message template attachment.

- Source: Generated code
- Type last changed: v2.208.0 · 29 Jul 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_wisdom as wisdom } from 'aws-cdk-lib';
const messageTemplateAttachmentProperty: wisdom.CfnMessageTemplate.MessageTemplateAttachmentProperty = {
  attachmentName: 'attachmentName',
  s3PresignedUrl: 's3PresignedUrl',

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

## Properties

- `attachmentId`: string — The identifier of the attachment file.

- `attachmentName`: string (required) — The name of the attachment file being uploaded.

  The name should include the file extension.

- `s3PresignedUrl`: string (required) — 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 AWS Console or through the AWS CLI. For more information, see [Sharing objects with presigned URLs](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ShareObjectPreSignedURL.html) .
