AWS Classic
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:
- 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. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- 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. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- 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.
- 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.
- 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. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- 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 Sequence[str] A list of the EC2 subnet IDs for the subnet group.
- 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.
- 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.
- 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.
- Replication
Subnet stringGroup Arn - Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider .
- Vpc
Id string The ID of the VPC the subnet group is in.
- Id string
The provider-assigned unique ID for this managed resource.
- Replication
Subnet stringGroup Arn - map[string]string
A map of tags assigned to the resource, including those inherited from the provider .
- Vpc
Id string The ID of the VPC the subnet group is in.
- id String
The provider-assigned unique ID for this managed resource.
- replication
Subnet StringGroup Arn - Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider .
- vpc
Id String The ID of the VPC the subnet group is in.
- id string
The provider-assigned unique ID for this managed resource.
- replication
Subnet stringGroup Arn - {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider .
- vpc
Id string The ID of the VPC the subnet group is in.
- id str
The provider-assigned unique ID for this managed resource.
- replication_
subnet_ strgroup_ arn - 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.
- replication
Subnet StringGroup Arn - Map<String>
A map of tags assigned to the resource, including those inherited from the provider .
- vpc
Id 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.
- 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. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider .
- 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. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- map[string]string
A map of tags assigned to the resource, including those inherited from the provider .
- 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 List<String> A list of the EC2 subnet IDs for the subnet group.
- 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.- Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider .
- 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. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider .
- 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 Sequence[str] A list of the EC2 subnet IDs for the subnet group.
- 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.- 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.
- 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.
- 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.- Map<String>
A map of tags assigned to the resource, including those inherited from the provider .
- vpc
Id 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.