Jump to Content

Class CloneReceiptRuleSetCommandProtected

Creates a receipt rule set by cloning an existing one. All receipt rules and configurations are copied to the new receipt rule set and are completely independent of the source rule set.

For information about setting up rule sets, see the Amazon SES Developer Guide.

You can execute this operation no more than once per second.

Example

Use a bare-bones client and the command you need to make an API call.

import { SESClient, CloneReceiptRuleSetCommand } from "@aws-sdk/client-ses"; // ES Modules import
// const { SESClient, CloneReceiptRuleSetCommand } = require("@aws-sdk/client-ses"); // CommonJS import
const client = new SESClient(config);
const command = new CloneReceiptRuleSetCommand(input);
const response = await client.send(command);

Param

CloneReceiptRuleSetCommandInput

Returns

CloneReceiptRuleSetCommandOutput

See

Throws

AlreadyExistsException (client fault)

Indicates that a resource could not be created because of a naming conflict.

Throws

LimitExceededException (client fault)

Indicates that a resource could not be created because of service limits. For a list of Amazon SES limits, see the Amazon SES Developer Guide.

Throws

RuleSetDoesNotExistException (client fault)

Indicates that the provided receipt rule set does not exist.

Example

CloneReceiptRuleSet

// The following example creates a receipt rule set by cloning an existing one:
const input = {
"OriginalRuleSetName": "RuleSetToClone",
"RuleSetName": "RuleSetToCreate"
};
const command = new CloneReceiptRuleSetCommand(input);
await client.send(command);
// example id: clonereceiptruleset-1469055039770

Hierarchy

Constructors

Properties

Methods