MessageTemplateAttachmentProperty Struct
Information about the message template attachment.
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
attachmentIdoptionalstringattachment_idoptionalstrattachmentIdoptionalStringAttachmentIdoptionalstringAttachmentIdoptional*string#The identifier of the attachment file.
attachmentNamestringattachment_namestrattachmentNameStringAttachmentNamestringAttachmentName*stringrequired#The name of the attachment file being uploaded.
The name should include the file extension.
s3PresignedUrlstrings3_presigned_urlstrs3PresignedUrlStringS3PresignedUrlstringS3PresignedUrl*stringrequired#The S3 Presigned URL for the attachment file.
notes
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 .