aws logo
AWS Classic v5.34.0, Mar 30 23

aws.sesv2.DedicatedIpAssignment

Resource for managing an AWS SESv2 (Simple Email V2) Dedicated IP Assignment.

This resource is used with “Standard” dedicated IP addresses. This includes addresses requested and relinquished manually via an AWS support case, or Bring Your Own IP addresses. Once no longer assigned, this resource returns the IP to the ses-default-dedicated-pool, managed by AWS.

Example Usage

Basic Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.SesV2.DedicatedIpAssignment("example", new()
    {
        DestinationPoolName = "my-pool",
        Ip = "0.0.0.0",
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/sesv2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sesv2.NewDedicatedIpAssignment(ctx, "example", &sesv2.DedicatedIpAssignmentArgs{
			DestinationPoolName: pulumi.String("my-pool"),
			Ip:                  pulumi.String("0.0.0.0"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sesv2.DedicatedIpAssignment;
import com.pulumi.aws.sesv2.DedicatedIpAssignmentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new DedicatedIpAssignment("example", DedicatedIpAssignmentArgs.builder()        
            .destinationPoolName("my-pool")
            .ip("0.0.0.0")
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.sesv2.DedicatedIpAssignment("example",
    destination_pool_name="my-pool",
    ip="0.0.0.0")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.sesv2.DedicatedIpAssignment("example", {
    destinationPoolName: "my-pool",
    ip: "0.0.0.0",
});
resources:
  example:
    type: aws:sesv2:DedicatedIpAssignment
    properties:
      destinationPoolName: my-pool
      ip: 0.0.0.0

Create DedicatedIpAssignment Resource

new DedicatedIpAssignment(name: string, args: DedicatedIpAssignmentArgs, opts?: CustomResourceOptions);
@overload
def DedicatedIpAssignment(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          destination_pool_name: Optional[str] = None,
                          ip: Optional[str] = None)
@overload
def DedicatedIpAssignment(resource_name: str,
                          args: DedicatedIpAssignmentArgs,
                          opts: Optional[ResourceOptions] = None)
func NewDedicatedIpAssignment(ctx *Context, name string, args DedicatedIpAssignmentArgs, opts ...ResourceOption) (*DedicatedIpAssignment, error)
public DedicatedIpAssignment(string name, DedicatedIpAssignmentArgs args, CustomResourceOptions? opts = null)
public DedicatedIpAssignment(String name, DedicatedIpAssignmentArgs args)
public DedicatedIpAssignment(String name, DedicatedIpAssignmentArgs args, CustomResourceOptions options)
type: aws:sesv2:DedicatedIpAssignment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args DedicatedIpAssignmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args DedicatedIpAssignmentArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args DedicatedIpAssignmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DedicatedIpAssignmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DedicatedIpAssignmentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

DedicatedIpAssignment Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The DedicatedIpAssignment resource accepts the following input properties:

DestinationPoolName string

Dedicated IP address.

Ip string

Dedicated IP address.

DestinationPoolName string

Dedicated IP address.

Ip string

Dedicated IP address.

destinationPoolName String

Dedicated IP address.

ip String

Dedicated IP address.

destinationPoolName string

Dedicated IP address.

ip string

Dedicated IP address.

destination_pool_name str

Dedicated IP address.

ip str

Dedicated IP address.

destinationPoolName String

Dedicated IP address.

ip String

Dedicated IP address.

Outputs

All input properties are implicitly available as output properties. Additionally, the DedicatedIpAssignment resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing DedicatedIpAssignment Resource

Get an existing DedicatedIpAssignment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: DedicatedIpAssignmentState, opts?: CustomResourceOptions): DedicatedIpAssignment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        destination_pool_name: Optional[str] = None,
        ip: Optional[str] = None) -> DedicatedIpAssignment
func GetDedicatedIpAssignment(ctx *Context, name string, id IDInput, state *DedicatedIpAssignmentState, opts ...ResourceOption) (*DedicatedIpAssignment, error)
public static DedicatedIpAssignment Get(string name, Input<string> id, DedicatedIpAssignmentState? state, CustomResourceOptions? opts = null)
public static DedicatedIpAssignment get(String name, Output<String> id, DedicatedIpAssignmentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
DestinationPoolName string

Dedicated IP address.

Ip string

Dedicated IP address.

DestinationPoolName string

Dedicated IP address.

Ip string

Dedicated IP address.

destinationPoolName String

Dedicated IP address.

ip String

Dedicated IP address.

destinationPoolName string

Dedicated IP address.

ip string

Dedicated IP address.

destination_pool_name str

Dedicated IP address.

ip str

Dedicated IP address.

destinationPoolName String

Dedicated IP address.

ip String

Dedicated IP address.

Import

SESv2 (Simple Email V2) Dedicated IP Assignment can be imported using the id, which is a comma-separated string made up of ip and destination_pool_name, e.g.,

 $ pulumi import aws:sesv2/dedicatedIpAssignment:DedicatedIpAssignment example "0.0.0.0,my-pool"

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.