DedicatedIpPool
The DedicatedIpPool resource allows you to manage dedicated IP pools for Amazon Simple Email Service (SES), enabling better deliverability and control over your sending reputation. For more information, see the AWS SES DedicatedIpPools documentation.
Minimal Example
Section titled “Minimal Example”Create a basic dedicated IP pool with a specified name:
import AWS from "alchemy/aws/control";
const dedicatedIpPool = await AWS.SES.DedicatedIpPool("myIpPool", { PoolName: "MyDedicatedIpPool", ScalingMode: "MANAGED"});
Advanced Configuration
Section titled “Advanced Configuration”Configure a dedicated IP pool with additional options, including the ability to adopt an existing resource:
const advancedIpPool = await AWS.SES.DedicatedIpPool("advancedIpPool", { PoolName: "AdvancedDedicatedIpPool", ScalingMode: "MANAGED", adopt: true});
Adoption of Existing Pool
Section titled “Adoption of Existing Pool”This example demonstrates how to adopt an existing dedicated IP pool without failing if it already exists:
const adoptExistingIpPool = await AWS.SES.DedicatedIpPool("existingIpPool", { PoolName: "ExistingDedicatedIpPool", adopt: true});
Status and Metadata Retrieval
Section titled “Status and Metadata Retrieval”After creating a dedicated IP pool, you can access its metadata, such as ARN and creation time:
const ipPoolMetadata = await AWS.SES.DedicatedIpPool("metadataIpPool", { PoolName: "MetadataDedicatedIpPool"});
// Accessing metadataconsole.log("Pool ARN:", ipPoolMetadata.Arn);console.log("Creation Time:", ipPoolMetadata.CreationTime);console.log("Last Updated:", ipPoolMetadata.LastUpdateTime);