AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.9.1 published on Tuesday, Jun 21, 2022 by Pulumi

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/v5/go/aws/dms"
	"github.com/pulumi/pulumi/sdk/v3/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
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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

    public static void stack(Context ctx) {
        var test = new ReplicationSubnetGroup("test", ReplicationSubnetGroupArgs.builder()        
            .replicationSubnetGroupDescription("Test replication subnet group")
            .replicationSubnetGroupId("test-dms-replication-subnet-group-tf")
            .subnetIds("subnet-12345678")
            .tags(Map.of("Name", "test"))
            .build());

    }
}
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",
    },
});
resources:
  test:
    type: aws:dms:ReplicationSubnetGroup
    properties:
      replicationSubnetGroupDescription: Test replication subnet group
      replicationSubnetGroupId: test-dms-replication-subnet-group-tf
      subnetIds:
        - subnet-12345678
      tags:
        Name: test

Create a ReplicationSubnetGroup Resource

new ReplicationSubnetGroup(name: string, args: ReplicationSubnetGroupArgs, opts?: CustomResourceOptions);
@overload
def ReplicationSubnetGroup(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           replication_subnet_group_description: Optional[str] = None,
                           replication_subnet_group_id: Optional[str] = None,
                           subnet_ids: Optional[Sequence[str]] = None,
                           tags: Optional[Mapping[str, str]] = None)
@overload
def ReplicationSubnetGroup(resource_name: str,
                           args: ReplicationSubnetGroupArgs,
                           opts: Optional[ResourceOptions] = None)
func NewReplicationSubnetGroup(ctx *Context, name string, args ReplicationSubnetGroupArgs, opts ...ResourceOption) (*ReplicationSubnetGroup, error)
public ReplicationSubnetGroup(string name, ReplicationSubnetGroupArgs args, CustomResourceOptions? opts = null)
public ReplicationSubnetGroup(String name, ReplicationSubnetGroupArgs args)
public ReplicationSubnetGroup(String name, ReplicationSubnetGroupArgs args, CustomResourceOptions options)
type: aws:dms:ReplicationSubnetGroup
properties: # The arguments to resource properties.
options: # 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.
resource_name str
The unique name of the resource.
args ReplicationSubnetGroupArgs
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 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.
name String
The unique name of the resource.
args ReplicationSubnetGroupArgs
The arguments to resource properties.
options 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 Architecture and Concepts 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. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

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. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

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 Map<String,String>

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

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. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

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 Sequence[str]

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

tags Mapping[str, str]

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

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 Map<String>

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

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
TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider .

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
TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider .

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
tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider .

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
tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider .

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
tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider .

vpc_id str

The ID of the VPC the subnet group is in.

id String

The provider-assigned unique ID for this managed resource.

replicationSubnetGroupArn String
tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider .

vpcId String

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.

public static get(name: string, id: Input<ID>, state?: ReplicationSubnetGroupState, opts?: CustomResourceOptions): ReplicationSubnetGroup
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        replication_subnet_group_arn: Optional[str] = None,
        replication_subnet_group_description: Optional[str] = None,
        replication_subnet_group_id: Optional[str] = None,
        subnet_ids: Optional[Sequence[str]] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        vpc_id: Optional[str] = None) -> ReplicationSubnetGroup
func GetReplicationSubnetGroup(ctx *Context, name string, id IDInput, state *ReplicationSubnetGroupState, opts ...ResourceOption) (*ReplicationSubnetGroup, error)
public static ReplicationSubnetGroup Get(string name, Input<string> id, ReplicationSubnetGroupState? state, CustomResourceOptions? opts = null)
public static ReplicationSubnetGroup get(String name, Output<String> id, ReplicationSubnetGroupState 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:
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. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider .

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. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider .

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 List<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. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider .

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. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider .

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 Sequence[str]

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

tags Mapping[str, str]

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider .

vpc_id str

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 List<String>

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

tags Map<String>

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider .

vpcId String

The ID of the VPC the subnet group is in.

Import

Replication subnet groups can be imported using the replication_subnet_group_id, e.g.,

 $ pulumi import aws:dms/replicationSubnetGroup:ReplicationSubnetGroup test test-dms-replication-subnet-group-tf

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.