From 14fc94cdbd3a649d144f06a8d7f220b5890906bc Mon Sep 17 00:00:00 2001 From: awstools Date: Fri, 22 Nov 2024 19:18:06 +0000 Subject: [PATCH] feat(client-ses): This release adds support for starting email contacts in your Amazon Connect instance as an email receiving action. --- .../src/commands/CreateReceiptRuleCommand.ts | 4 ++ .../DescribeActiveReceiptRuleSetCommand.ts | 4 ++ .../commands/DescribeReceiptRuleCommand.ts | 4 ++ .../commands/DescribeReceiptRuleSetCommand.ts | 4 ++ .../src/commands/UpdateReceiptRuleCommand.ts | 4 ++ clients/client-ses/src/models/models_0.ts | 64 ++++++++++++++----- clients/client-ses/src/protocols/Aws_query.ts | 41 ++++++++++++ codegen/sdk-codegen/aws-models/ses.json | 40 +++++++++++- 8 files changed, 147 insertions(+), 18 deletions(-) diff --git a/clients/client-ses/src/commands/CreateReceiptRuleCommand.ts b/clients/client-ses/src/commands/CreateReceiptRuleCommand.ts index c43345552153..99b899e0b1a7 100644 --- a/clients/client-ses/src/commands/CreateReceiptRuleCommand.ts +++ b/clients/client-ses/src/commands/CreateReceiptRuleCommand.ts @@ -85,6 +85,10 @@ export interface CreateReceiptRuleCommandOutput extends CreateReceiptRuleRespons * TopicArn: "STRING_VALUE", // required * Encoding: "UTF-8" || "Base64", * }, + * ConnectAction: { // ConnectAction + * InstanceARN: "STRING_VALUE", // required + * IAMRoleARN: "STRING_VALUE", // required + * }, * }, * ], * ScanEnabled: true || false, diff --git a/clients/client-ses/src/commands/DescribeActiveReceiptRuleSetCommand.ts b/clients/client-ses/src/commands/DescribeActiveReceiptRuleSetCommand.ts index 3eb24c6065ba..06fc29ad12b6 100644 --- a/clients/client-ses/src/commands/DescribeActiveReceiptRuleSetCommand.ts +++ b/clients/client-ses/src/commands/DescribeActiveReceiptRuleSetCommand.ts @@ -93,6 +93,10 @@ export interface DescribeActiveReceiptRuleSetCommandOutput * // TopicArn: "STRING_VALUE", // required * // Encoding: "UTF-8" || "Base64", * // }, + * // ConnectAction: { // ConnectAction + * // InstanceARN: "STRING_VALUE", // required + * // IAMRoleARN: "STRING_VALUE", // required + * // }, * // }, * // ], * // ScanEnabled: true || false, diff --git a/clients/client-ses/src/commands/DescribeReceiptRuleCommand.ts b/clients/client-ses/src/commands/DescribeReceiptRuleCommand.ts index 27fb2aa7272c..b4453b23d2f6 100644 --- a/clients/client-ses/src/commands/DescribeReceiptRuleCommand.ts +++ b/clients/client-ses/src/commands/DescribeReceiptRuleCommand.ts @@ -89,6 +89,10 @@ export interface DescribeReceiptRuleCommandOutput extends DescribeReceiptRuleRes * // TopicArn: "STRING_VALUE", // required * // Encoding: "UTF-8" || "Base64", * // }, + * // ConnectAction: { // ConnectAction + * // InstanceARN: "STRING_VALUE", // required + * // IAMRoleARN: "STRING_VALUE", // required + * // }, * // }, * // ], * // ScanEnabled: true || false, diff --git a/clients/client-ses/src/commands/DescribeReceiptRuleSetCommand.ts b/clients/client-ses/src/commands/DescribeReceiptRuleSetCommand.ts index 2d3a4d9c20c6..78593f8118e0 100644 --- a/clients/client-ses/src/commands/DescribeReceiptRuleSetCommand.ts +++ b/clients/client-ses/src/commands/DescribeReceiptRuleSetCommand.ts @@ -93,6 +93,10 @@ export interface DescribeReceiptRuleSetCommandOutput extends DescribeReceiptRule * // TopicArn: "STRING_VALUE", // required * // Encoding: "UTF-8" || "Base64", * // }, + * // ConnectAction: { // ConnectAction + * // InstanceARN: "STRING_VALUE", // required + * // IAMRoleARN: "STRING_VALUE", // required + * // }, * // }, * // ], * // ScanEnabled: true || false, diff --git a/clients/client-ses/src/commands/UpdateReceiptRuleCommand.ts b/clients/client-ses/src/commands/UpdateReceiptRuleCommand.ts index 15632b8f86b8..818163696f18 100644 --- a/clients/client-ses/src/commands/UpdateReceiptRuleCommand.ts +++ b/clients/client-ses/src/commands/UpdateReceiptRuleCommand.ts @@ -84,6 +84,10 @@ export interface UpdateReceiptRuleCommandOutput extends UpdateReceiptRuleRespons * TopicArn: "STRING_VALUE", // required * Encoding: "UTF-8" || "Base64", * }, + * ConnectAction: { // ConnectAction + * InstanceARN: "STRING_VALUE", // required + * IAMRoleARN: "STRING_VALUE", // required + * }, * }, * ], * ScanEnabled: true || false, diff --git a/clients/client-ses/src/models/models_0.ts b/clients/client-ses/src/models/models_0.ts index ffff5e281083..ef800dc4990a 100644 --- a/clients/client-ses/src/models/models_0.ts +++ b/clients/client-ses/src/models/models_0.ts @@ -912,6 +912,36 @@ export class ConfigurationSetSendingPausedException extends __BaseException { } } +/** + *

When included in a receipt rule, this action parses the received message and + * starts an email contact in Amazon Connect on your behalf.

+ * + *

When you receive emails, the maximum email size (including headers) is 40 MB. + * Additionally, emails may only have up to 10 attachments. + * Emails larger than 40 MB or with more than 10 attachments will be bounced.

+ *
+ *

We recommend that you configure this action via Amazon Connect.

+ * @public + */ +export interface ConnectAction { + /** + *

The Amazon Resource Name (ARN) for the Amazon Connect instance that Amazon SES integrates with for starting + * email contacts.

+ *

For more information about Amazon Connect instances, see the Amazon Connect Administrator Guide + *

+ * @public + */ + InstanceARN: string | undefined; + + /** + *

The Amazon Resource Name (ARN) of the IAM role to be used by Amazon Simple Email Service while starting email contacts + * to the Amazon Connect instance. This role should have permission to invoke connect:StartEmailContact + * for the given Amazon Connect instance.

+ * @public + */ + IAMRoleARN: string | undefined; +} + /** *

Represents a request to create a configuration set. Configuration sets enable you to * publish email sending events. For information about using configuration sets, see the @@ -1722,28 +1752,28 @@ export interface S3Action { /** *

The customer managed key that Amazon SES should use to encrypt your emails before saving - * them to the Amazon S3 bucket. You can use the default managed key or a custom managed key that - * you created in Amazon Web Services KMS as follows:

+ * them to the Amazon S3 bucket. You can use the Amazon Web Services managed key or a customer managed key + * that you created in Amazon Web Services KMS as follows:

* *

For more information about key policies, see the Amazon Web Services KMS Developer Guide. If - * you do not specify a managed key, Amazon SES does not encrypt your emails.

+ * you do not specify an Amazon Web Services KMS key, Amazon SES does not encrypt your emails.

* *

Your mail is encrypted by Amazon SES using the Amazon S3 encryption client before the mail * is submitted to Amazon S3 for storage. It is not encrypted using Amazon S3 server-side @@ -1762,14 +1792,12 @@ export interface S3Action { /** *

The ARN of the IAM role to be used by Amazon Simple Email Service while writing to the Amazon S3 bucket, * optionally encrypting your mail via the provided customer managed key, and publishing to - * the Amazon SNS topic. - * This role should have access to the following APIs: - *

+ * the Amazon SNS topic. This role should have access to the following APIs:

*