Skip to content
GitHubXDiscord

DedicatedIpPool

The DedicatedIpPool resource lets you manage AWS PinpointEmail Dedicated IP Pools which are used to send email using dedicated IP addresses. This can enhance your email deliverability and reputation.

Create a basic dedicated IP pool with a specified name.

import AWS from "alchemy/aws/control";
const dedicatedIpPool = await AWS.PinpointEmail.DedicatedIpPool("myDedicatedIpPool", {
PoolName: "MyDedicatedIpPool",
Tags: [
{ Key: "Environment", Value: "Production" }
]
});

Configure a dedicated IP pool with additional tags for better resource management.

const advancedIpPool = await AWS.PinpointEmail.DedicatedIpPool("advancedDedicatedIpPool", {
PoolName: "AdvancedDedicatedIpPool",
Tags: [
{ Key: "Project", Value: "EmailCampaign" },
{ Key: "Owner", Value: "MarketingTeam" }
],
adopt: true // This allows adopting an existing resource if it already exists
});

Create a dedicated IP pool while allowing adoption of an existing resource.

const adoptiveIpPool = await AWS.PinpointEmail.DedicatedIpPool("adoptiveDedicatedIpPool", {
PoolName: "AdoptiveDedicatedIpPool",
Tags: [
{ Key: "Status", Value: "Active" }
],
adopt: true // If the resource already exists, it will be adopted instead of failing
});

Create a dedicated IP pool and log its ARN and creation time after creation.

const detailedIpPool = await AWS.PinpointEmail.DedicatedIpPool("detailedDedicatedIpPool", {
PoolName: "DetailedDedicatedIpPool",
Tags: [
{ Key: "UseCase", Value: "TransactionalEmails" }
]
});
// Log the ARN and creation time
console.log(`ARN: ${detailedIpPool.Arn}`);
console.log(`Created At: ${detailedIpPool.CreationTime}`);