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
new ReplicationSubnetGroup(name: string, args: ReplicationSubnetGroupArgs, opts?: CustomResourceOptions);def ReplicationSubnetGroup(resource_name, opts=None, replication_subnet_group_description=None, replication_subnet_group_id=None, subnet_ids=None, tags=None, __props__=None);func NewReplicationSubnetGroup(ctx *Context, name string, args ReplicationSubnetGroupArgs, opts ...ResourceOption) (*ReplicationSubnetGroup, error)public ReplicationSubnetGroup(string name, ReplicationSubnetGroupArgs args, CustomResourceOptions? opts = null)- 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:
- Replication
Subnet stringGroup Description The description for the subnet group.
- Replication
Subnet stringGroup Id The name for the replication subnet group. This value is stored as a lowercase string.
- Subnet
Ids List<string> A list of the EC2 subnet IDs for the subnet group.
- Dictionary<string, string>
A map of tags to assign to the resource.
- Replication
Subnet stringGroup Description The description for the subnet group.
- Replication
Subnet stringGroup Id The name for the replication subnet group. This value is stored as a lowercase string.
- Subnet
Ids []string A list of the EC2 subnet IDs for the subnet group.
- map[string]string
A map of tags to assign to the resource.
- replication
Subnet stringGroup Description The description for the subnet group.
- replication
Subnet stringGroup Id The name for the replication subnet group. This value is stored as a lowercase string.
- subnet
Ids string[] A list of the EC2 subnet IDs for the subnet group.
- {[key: string]: string}
A map of tags to assign to the resource.
- replication_
subnet_ strgroup_ description The description for the subnet group.
- replication_
subnet_ strgroup_ id 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.
- 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:
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): ReplicationSubnetGroupstatic 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)public static ReplicationSubnetGroup Get(string name, Input<string> id, ReplicationSubnetGroupState? state, CustomResourceOptions? opts = null)- 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:
- Replication
Subnet stringGroup Arn - Replication
Subnet stringGroup Description The description for the subnet group.
- Replication
Subnet stringGroup Id The name for the replication subnet group. This value is stored as a lowercase string.
- Subnet
Ids List<string> A list of the EC2 subnet IDs for the subnet group.
- Dictionary<string, string>
A map of tags to assign to the resource.
- Vpc
Id string The ID of the VPC the subnet group is in.
- Replication
Subnet stringGroup Arn - Replication
Subnet stringGroup Description The description for the subnet group.
- Replication
Subnet stringGroup Id The name for the replication subnet group. This value is stored as a lowercase string.
- Subnet
Ids []string A list of the EC2 subnet IDs for the subnet group.
- map[string]string
A map of tags to assign to the resource.
- Vpc
Id string The ID of the VPC the subnet group is in.
- replication
Subnet stringGroup Arn - replication
Subnet stringGroup Description The description for the subnet group.
- replication
Subnet stringGroup Id The name for the replication subnet group. This value is stored as a lowercase string.
- subnet
Ids string[] A list of the EC2 subnet IDs for the subnet group.
- {[key: string]: string}
A map of tags to assign to the resource.
- vpc
Id string The ID of the VPC the subnet group is in.
- replication_
subnet_ strgroup_ arn - replication_
subnet_ strgroup_ description The description for the subnet group.
- replication_
subnet_ strgroup_ id 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.
- 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
awsTerraform Provider.