ReplicationSubnetGroup

Provides a DMS (Data Migration Service) replication subnet group resource. DMS replication subnet groups can be created, updated, deleted, and imported.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        // Create a new replication subnet group
        var test = new Aws.Dms.ReplicationSubnetGroup("test", new Aws.Dms.ReplicationSubnetGroupArgs
        {
            ReplicationSubnetGroupDescription = "Test replication subnet group",
            ReplicationSubnetGroupId = "test-dms-replication-subnet-group-tf",
            SubnetIds = 
            {
                "subnet-12345678",
            },
            Tags = 
            {
                { "Name", "test" },
            },
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/dms"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := dms.NewReplicationSubnetGroup(ctx, "test", &dms.ReplicationSubnetGroupArgs{
            ReplicationSubnetGroupDescription: pulumi.String("Test replication subnet group"),
            ReplicationSubnetGroupId:          pulumi.String("test-dms-replication-subnet-group-tf"),
            SubnetIds: pulumi.StringArray{
                pulumi.String("subnet-12345678"),
            },
            Tags: pulumi.StringMap{
                "Name": pulumi.String("test"),
            },
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

# Create a new replication subnet group
test = aws.dms.ReplicationSubnetGroup("test",
    replication_subnet_group_description="Test replication subnet group",
    replication_subnet_group_id="test-dms-replication-subnet-group-tf",
    subnet_ids=["subnet-12345678"],
    tags={
        "Name": "test",
    })
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

// Create a new replication subnet group
const test = new aws.dms.ReplicationSubnetGroup("test", {
    replicationSubnetGroupDescription: "Test replication subnet group",
    replicationSubnetGroupId: "test-dms-replication-subnet-group-tf",
    subnetIds: ["subnet-12345678"],
    tags: {
        Name: "test",
    },
});

Create a ReplicationSubnetGroup Resource

def ReplicationSubnetGroup(resource_name, opts=None, replication_subnet_group_description=None, replication_subnet_group_id=None, subnet_ids=None, tags=None, __props__=None);
name string
The unique name of the resource.
args ReplicationSubnetGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ReplicationSubnetGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ReplicationSubnetGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ReplicationSubnetGroup Resource Properties

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

Inputs

The ReplicationSubnetGroup resource accepts the following input properties:

ReplicationSubnetGroupDescription string

The description for the subnet group.

ReplicationSubnetGroupId string

The name for the replication subnet group. This value is stored as a lowercase string.

SubnetIds List<string>

A list of the EC2 subnet IDs for the subnet group.

Tags Dictionary<string, string>

A map of tags to assign to the resource.

ReplicationSubnetGroupDescription string

The description for the subnet group.

ReplicationSubnetGroupId string

The name for the replication subnet group. This value is stored as a lowercase string.

SubnetIds []string

A list of the EC2 subnet IDs for the subnet group.

Tags map[string]string

A map of tags to assign to the resource.

replicationSubnetGroupDescription string

The description for the subnet group.

replicationSubnetGroupId string

The name for the replication subnet group. This value is stored as a lowercase string.

subnetIds string[]

A list of the EC2 subnet IDs for the subnet group.

tags {[key: string]: string}

A map of tags to assign to the resource.

replication_subnet_group_description str

The description for the subnet group.

replication_subnet_group_id str

The name for the replication subnet group. This value is stored as a lowercase string.

subnet_ids List[str]

A list of the EC2 subnet IDs for the subnet group.

tags Dict[str, str]

A map of tags to assign to the resource.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
ReplicationSubnetGroupArn string
VpcId string

The ID of the VPC the subnet group is in.

Id string
The provider-assigned unique ID for this managed resource.
ReplicationSubnetGroupArn string
VpcId string

The ID of the VPC the subnet group is in.

id string
The provider-assigned unique ID for this managed resource.
replicationSubnetGroupArn string
vpcId string

The ID of the VPC the subnet group is in.

id str
The provider-assigned unique ID for this managed resource.
replication_subnet_group_arn str
vpc_id str

The ID of the VPC the subnet group is in.

Look up an Existing ReplicationSubnetGroup Resource

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

static get(resource_name, id, opts=None, replication_subnet_group_arn=None, replication_subnet_group_description=None, replication_subnet_group_id=None, subnet_ids=None, tags=None, vpc_id=None, __props__=None);
func GetReplicationSubnetGroup(ctx *Context, name string, id IDInput, state *ReplicationSubnetGroupState, opts ...ResourceOption) (*ReplicationSubnetGroup, error)
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.

The following state arguments are supported:

ReplicationSubnetGroupArn string
ReplicationSubnetGroupDescription string

The description for the subnet group.

ReplicationSubnetGroupId string

The name for the replication subnet group. This value is stored as a lowercase string.

SubnetIds List<string>

A list of the EC2 subnet IDs for the subnet group.

Tags Dictionary<string, string>

A map of tags to assign to the resource.

VpcId string

The ID of the VPC the subnet group is in.

ReplicationSubnetGroupArn string
ReplicationSubnetGroupDescription string

The description for the subnet group.

ReplicationSubnetGroupId string

The name for the replication subnet group. This value is stored as a lowercase string.

SubnetIds []string

A list of the EC2 subnet IDs for the subnet group.

Tags map[string]string

A map of tags to assign to the resource.

VpcId string

The ID of the VPC the subnet group is in.

replicationSubnetGroupArn string
replicationSubnetGroupDescription string

The description for the subnet group.

replicationSubnetGroupId string

The name for the replication subnet group. This value is stored as a lowercase string.

subnetIds string[]

A list of the EC2 subnet IDs for the subnet group.

tags {[key: string]: string}

A map of tags to assign to the resource.

vpcId string

The ID of the VPC the subnet group is in.

replication_subnet_group_arn str
replication_subnet_group_description str

The description for the subnet group.

replication_subnet_group_id str

The name for the replication subnet group. This value is stored as a lowercase string.

subnet_ids List[str]

A list of the EC2 subnet IDs for the subnet group.

tags Dict[str, str]

A map of tags to assign to the resource.

vpc_id str

The ID of the VPC the subnet group is in.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.