From a7981154aee7bbfa57e90c83d1ac72d6fade299a Mon Sep 17 00:00:00 2001
From: awstools Associate the configuration set with a MailManager archive. When you send email using the
+ * The input you provided is invalid. The resource you attempted to access doesn't exist. Too many requests have been made to the operation. Base exception class for all service exceptions from SESv2 service. Used to associate a configuration set with a MailManager archive. The Amazon Resource Name (ARN) of the MailManager archive where the Amazon SES API v2 will archive sent
+ * emails. The input you provided is invalid. An object that defines the MailManager archiving options for emails that you send
+ * using the configuration set. An object that defines the MailManager archive where sent emails are archived that you send
+ * using the configuration set.
* The recommendation type, with values like
+PutConfigurationSetArchivingOptions
+
+
+[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sesv2/command/PutConfigurationSetArchivingOptionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sesv2/Interface/PutConfigurationSetArchivingOptionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sesv2/Interface/PutConfigurationSetArchivingOptionsCommandOutput/)
+
diff --git a/clients/client-sesv2/src/SESv2.ts b/clients/client-sesv2/src/SESv2.ts
index ec8481aa7b42..a95e77ca752f 100644
--- a/clients/client-sesv2/src/SESv2.ts
+++ b/clients/client-sesv2/src/SESv2.ts
@@ -334,6 +334,11 @@ import {
PutAccountVdmAttributesCommandInput,
PutAccountVdmAttributesCommandOutput,
} from "./commands/PutAccountVdmAttributesCommand";
+import {
+ PutConfigurationSetArchivingOptionsCommand,
+ PutConfigurationSetArchivingOptionsCommandInput,
+ PutConfigurationSetArchivingOptionsCommandOutput,
+} from "./commands/PutConfigurationSetArchivingOptionsCommand";
import {
PutConfigurationSetDeliveryOptionsCommand,
PutConfigurationSetDeliveryOptionsCommandInput,
@@ -537,6 +542,7 @@ const commands = {
PutAccountSendingAttributesCommand,
PutAccountSuppressionAttributesCommand,
PutAccountVdmAttributesCommand,
+ PutConfigurationSetArchivingOptionsCommand,
PutConfigurationSetDeliveryOptionsCommand,
PutConfigurationSetReputationOptionsCommand,
PutConfigurationSetSendingOptionsCommand,
@@ -1676,6 +1682,23 @@ export interface SESv2 {
cb: (err: any, data?: PutAccountVdmAttributesCommandOutput) => void
): void;
+ /**
+ * @see {@link PutConfigurationSetArchivingOptionsCommand}
+ */
+ putConfigurationSetArchivingOptions(
+ args: PutConfigurationSetArchivingOptionsCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise
SendEmail
or SendBulkEmail
operations the message as it will be given
+ * to the receiving SMTP server will be archived, along with the recipient information.REPLICATION_PRIMARY_INVALID_REGION
– The verification failed due to an invalid
- * primary region specified. Ensure you provide a valid AWS region where Amazon SES is available and different
+ * primary region specified. Ensure you provide a valid Amazon Web Services region where Amazon SES is available and different
* from the replica region.
* DKIM
,
- * SPF
, DMARC
or BIMI
.SPF
, DMARC
, BIMI
, or COMPLAINT
.
A request to associate a configuration set with a MailManager archive.
+ * @public + */ +export interface PutConfigurationSetArchivingOptionsRequest { + /** + *The name of the configuration set to associate with a MailManager archive.
+ * @public + */ + ConfigurationSetName: string | undefined; + + /** + *The Amazon Resource Name (ARN) of the MailManager archive that the Amazon SES API v2 sends email + * to.
+ * @public + */ + ArchiveArn?: string | undefined; +} + +/** + *An HTTP 200 response if the request succeeds, or an error message if the request + * fails.
+ * @public + */ +export interface PutConfigurationSetArchivingOptionsResponse {} + /** *A request to associate a configuration set with a dedicated IP pool.
* @public @@ -7915,38 +7968,6 @@ export interface PutConfigurationSetTrackingOptionsRequest { HttpsPolicy?: HttpsPolicy | undefined; } -/** - *An HTTP 200 response if the request succeeds, or an error message if the request - * fails.
- * @public - */ -export interface PutConfigurationSetTrackingOptionsResponse {} - -/** - *A request to add specific VDM settings to a configuration set.
- * @public - */ -export interface PutConfigurationSetVdmOptionsRequest { - /** - *The name of the configuration set.
- * @public - */ - ConfigurationSetName: string | undefined; - - /** - *The VDM options to apply to the configuration set.
- * @public - */ - VdmOptions?: VdmOptions | undefined; -} - -/** - *An HTTP 200 response if the request succeeds, or an error message if the request - * fails.
- * @public - */ -export interface PutConfigurationSetVdmOptionsResponse {} - /** * @internal */ diff --git a/clients/client-sesv2/src/models/models_1.ts b/clients/client-sesv2/src/models/models_1.ts index a7e15741bb1f..29036d3c92fb 100644 --- a/clients/client-sesv2/src/models/models_1.ts +++ b/clients/client-sesv2/src/models/models_1.ts @@ -20,8 +20,41 @@ import { Tag, Topic, TopicPreference, + VdmOptions, } from "./models_0"; +/** + *An HTTP 200 response if the request succeeds, or an error message if the request + * fails.
+ * @public + */ +export interface PutConfigurationSetTrackingOptionsResponse {} + +/** + *A request to add specific VDM settings to a configuration set.
+ * @public + */ +export interface PutConfigurationSetVdmOptionsRequest { + /** + *The name of the configuration set.
+ * @public + */ + ConfigurationSetName: string | undefined; + + /** + *The VDM options to apply to the configuration set.
+ * @public + */ + VdmOptions?: VdmOptions | undefined; +} + +/** + *An HTTP 200 response if the request succeeds, or an error message if the request + * fails.
+ * @public + */ +export interface PutConfigurationSetVdmOptionsResponse {} + /** *A request to move a dedicated IP address to a dedicated IP pool.
* @public diff --git a/clients/client-sesv2/src/protocols/Aws_restJson1.ts b/clients/client-sesv2/src/protocols/Aws_restJson1.ts index 9618003dc3db..2eeb673ec58f 100644 --- a/clients/client-sesv2/src/protocols/Aws_restJson1.ts +++ b/clients/client-sesv2/src/protocols/Aws_restJson1.ts @@ -225,6 +225,10 @@ import { PutAccountVdmAttributesCommandInput, PutAccountVdmAttributesCommandOutput, } from "../commands/PutAccountVdmAttributesCommand"; +import { + PutConfigurationSetArchivingOptionsCommandInput, + PutConfigurationSetArchivingOptionsCommandOutput, +} from "../commands/PutConfigurationSetArchivingOptionsCommand"; import { PutConfigurationSetDeliveryOptionsCommandInput, PutConfigurationSetDeliveryOptionsCommandOutput, @@ -322,6 +326,7 @@ import { import { AccountSuspendedException, AlreadyExistsException, + ArchivingOptions, BadRequestException, BatchGetMetricDataQuery, BlacklistEntry, @@ -472,6 +477,7 @@ export const se_CreateConfigurationSetCommand = async ( let body: any; body = JSON.stringify( take(input, { + ArchivingOptions: (_) => _json(_), ConfigurationSetName: [], DeliveryOptions: (_) => _json(_), ReputationOptions: (_) => se_ReputationOptions(_, context), @@ -1746,6 +1752,29 @@ export const se_PutAccountVdmAttributesCommand = async ( return b.build(); }; +/** + * serializeAws_restJson1PutConfigurationSetArchivingOptionsCommand + */ +export const se_PutConfigurationSetArchivingOptionsCommand = async ( + input: PutConfigurationSetArchivingOptionsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/json", + }; + b.bp("/v2/email/configuration-sets/{ConfigurationSetName}/archiving-options"); + b.p("ConfigurationSetName", () => input.ConfigurationSetName!, "{ConfigurationSetName}", false); + let body: any; + body = JSON.stringify( + take(input, { + ArchiveArn: [], + }) + ); + b.m("PUT").h(headers).b(body); + return b.build(); +}; + /** * serializeAws_restJson1PutConfigurationSetDeliveryOptionsCommand */ @@ -2958,6 +2987,7 @@ export const de_GetConfigurationSetCommand = async ( }); const data: RecordThe Amazon Resource Name (ARN) of the MailManager archive where the Amazon SES API v2 will archive sent\n emails.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Used to associate a configuration set with a MailManager archive.
" + } + }, "com.amazonaws.sesv2#AttributesData": { "type": "string" }, @@ -1090,6 +1114,12 @@ "traits": { "smithy.api#documentation": "An object that defines the VDM options for emails that you send using the\n configuration set.
" } + }, + "ArchivingOptions": { + "target": "com.amazonaws.sesv2#ArchivingOptions", + "traits": { + "smithy.api#documentation": "An object that defines the MailManager archiving options for emails that you send\n using the configuration set.
" + } } }, "traits": { @@ -4576,6 +4606,12 @@ "traits": { "smithy.api#documentation": "An object that contains information about the VDM preferences for your configuration\n set.
" } + }, + "ArchivingOptions": { + "target": "com.amazonaws.sesv2#ArchivingOptions", + "traits": { + "smithy.api#documentation": "An object that defines the MailManager archive where sent emails are archived that you send\n using the configuration set.
" + } } }, "traits": { @@ -7672,7 +7708,7 @@ } }, "traits": { - "smithy.api#documentation": "The ListRecommendations
filter type. This can be one of the following:
\n TYPE
– The recommendation type, with values like DKIM
,\n SPF
, DMARC
or BIMI
.
\n IMPACT
– The recommendation impact, with values like\n HIGH
or LOW
.
\n STATUS
– The recommendation status, with values like\n OPEN
or FIXED
.
\n RESOURCE_ARN
– The resource affected by the recommendation,\n with values like arn:aws:ses:us-east-1:123456789012:identity/example.com
.
The ListRecommendations
filter type. This can be one of the following:
\n TYPE
– The recommendation type, with values like DKIM
,\n SPF
, DMARC
, BIMI
, or COMPLAINT
.
\n IMPACT
– The recommendation impact, with values like\n HIGH
or LOW
.
\n STATUS
– The recommendation status, with values like\n OPEN
or FIXED
.
\n RESOURCE_ARN
– The resource affected by the recommendation,\n with values like arn:aws:ses:us-east-1:123456789012:identity/example.com
.
Associate the configuration set with a MailManager archive. When you send email using the\n SendEmail
or SendBulkEmail
operations the message as it will be given\n to the receiving SMTP server will be archived, along with the recipient information.
The name of the configuration set to associate with a MailManager archive.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "ArchiveArn": { + "target": "com.amazonaws.sesv2#ArchiveArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the MailManager archive that the Amazon SES API v2 sends email\n to.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A request to associate a configuration set with a MailManager archive.
", + "smithy.api#input": {} + } + }, + "com.amazonaws.sesv2#PutConfigurationSetArchivingOptionsResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#documentation": "An HTTP 200 response if the request succeeds, or an error message if the request\n fails.
", + "smithy.api#output": {} + } + }, "com.amazonaws.sesv2#PutConfigurationSetDeliveryOptions": { "type": "operation", "input": { @@ -10072,7 +10179,7 @@ "Type": { "target": "com.amazonaws.sesv2#RecommendationType", "traits": { - "smithy.api#documentation": "The recommendation type, with values like DKIM
,\n SPF
, DMARC
or BIMI
.
The recommendation type, with values like DKIM
,\n SPF
, DMARC
, BIMI
, or COMPLAINT
.
Provides the reason for the failure describing why Amazon SES was not able to successfully\n verify the identity. Below are the possible values:
\n\n INVALID_VALUE
– Amazon SES was able to find the record, but the\n value contained within the record was invalid. Ensure you have published the\n correct values for the record.
\n TYPE_NOT_FOUND
– The queried hostname exists but does not\n have the requested type of DNS record. Ensure that you have published the\n correct type of DNS record.
\n HOST_NOT_FOUND
– The queried hostname does not exist or was\n not reachable at the time of the request. Ensure that you have published the\n required DNS record(s).
\n SERVICE_ERROR
– A temporary issue is preventing Amazon SES from\n determining the verification status of the domain.
\n DNS_SERVER_ERROR
– The DNS server encountered an issue and\n was unable to complete the request.
\n REPLICATION_ACCESS_DENIED
– The verification failed because the user does not\n have the required permissions to replicate the DKIM key from the primary region. Ensure you have the\n necessary permissions in both primary and replica regions.\n
\n REPLICATION_PRIMARY_NOT_FOUND
– The verification failed because no corresponding\n identity was found in the specified primary region. Ensure the identity exists in the primary region\n before attempting replication.\n
\n REPLICATION_PRIMARY_BYO_DKIM_NOT_SUPPORTED
– The verification failed because the\n identity in the primary region is configured with Bring Your Own DKIM (BYODKIM). DKIM key\n replication is only supported for identities using Easy DKIM.\n
\n REPLICATION_REPLICA_AS_PRIMARY_NOT_SUPPORTED
– The verification failed because\n the specified primary identity is a replica of another identity, and multi-level replication is not\n supported; the primary identity must be a non-replica identity.\n
\n REPLICATION_PRIMARY_INVALID_REGION
– The verification failed due to an invalid\n primary region specified. Ensure you provide a valid AWS region where Amazon SES is available and different\n from the replica region.\n
Provides the reason for the failure describing why Amazon SES was not able to successfully\n verify the identity. Below are the possible values:
\n\n INVALID_VALUE
– Amazon SES was able to find the record, but the\n value contained within the record was invalid. Ensure you have published the\n correct values for the record.
\n TYPE_NOT_FOUND
– The queried hostname exists but does not\n have the requested type of DNS record. Ensure that you have published the\n correct type of DNS record.
\n HOST_NOT_FOUND
– The queried hostname does not exist or was\n not reachable at the time of the request. Ensure that you have published the\n required DNS record(s).
\n SERVICE_ERROR
– A temporary issue is preventing Amazon SES from\n determining the verification status of the domain.
\n DNS_SERVER_ERROR
– The DNS server encountered an issue and\n was unable to complete the request.
\n REPLICATION_ACCESS_DENIED
– The verification failed because the user does not\n have the required permissions to replicate the DKIM key from the primary region. Ensure you have the\n necessary permissions in both primary and replica regions.\n
\n REPLICATION_PRIMARY_NOT_FOUND
– The verification failed because no corresponding\n identity was found in the specified primary region. Ensure the identity exists in the primary region\n before attempting replication.\n
\n REPLICATION_PRIMARY_BYO_DKIM_NOT_SUPPORTED
– The verification failed because the\n identity in the primary region is configured with Bring Your Own DKIM (BYODKIM). DKIM key\n replication is only supported for identities using Easy DKIM.\n
\n REPLICATION_REPLICA_AS_PRIMARY_NOT_SUPPORTED
– The verification failed because\n the specified primary identity is a replica of another identity, and multi-level replication is not\n supported; the primary identity must be a non-replica identity.\n
\n REPLICATION_PRIMARY_INVALID_REGION
– The verification failed due to an invalid\n primary region specified. Ensure you provide a valid Amazon Web Services region where Amazon SES is available and different\n from the replica region.\n