AWS v7.11.0 published on Wednesday, Nov 5, 2025 by Pulumi
aws.dms.getReplicationSubnetGroup
Start a Neo task
Explain and create an aws.dms.getReplicationSubnetGroup resource
Data source for managing an AWS DMS (Database Migration) Replication Subnet Group.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = aws.dms.getReplicationSubnetGroup({
replicationSubnetGroupId: testAwsDmsReplicationSubnetGroup.replicationSubnetGroupId,
});
import pulumi
import pulumi_aws as aws
test = aws.dms.get_replication_subnet_group(replication_subnet_group_id=test_aws_dms_replication_subnet_group["replicationSubnetGroupId"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/dms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dms.LookupReplicationSubnetGroup(ctx, &dms.LookupReplicationSubnetGroupArgs{
ReplicationSubnetGroupId: testAwsDmsReplicationSubnetGroup.ReplicationSubnetGroupId,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = Aws.Dms.GetReplicationSubnetGroup.Invoke(new()
{
ReplicationSubnetGroupId = testAwsDmsReplicationSubnetGroup.ReplicationSubnetGroupId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.dms.DmsFunctions;
import com.pulumi.aws.dms.inputs.GetReplicationSubnetGroupArgs;
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) {
final var test = DmsFunctions.getReplicationSubnetGroup(GetReplicationSubnetGroupArgs.builder()
.replicationSubnetGroupId(testAwsDmsReplicationSubnetGroup.replicationSubnetGroupId())
.build());
}
}
variables:
test:
fn::invoke:
function: aws:dms:getReplicationSubnetGroup
arguments:
replicationSubnetGroupId: ${testAwsDmsReplicationSubnetGroup.replicationSubnetGroupId}
Using getReplicationSubnetGroup
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getReplicationSubnetGroup(args: GetReplicationSubnetGroupArgs, opts?: InvokeOptions): Promise<GetReplicationSubnetGroupResult>
function getReplicationSubnetGroupOutput(args: GetReplicationSubnetGroupOutputArgs, opts?: InvokeOptions): Output<GetReplicationSubnetGroupResult>def get_replication_subnet_group(region: Optional[str] = None,
replication_subnet_group_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetReplicationSubnetGroupResult
def get_replication_subnet_group_output(region: Optional[pulumi.Input[str]] = None,
replication_subnet_group_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetReplicationSubnetGroupResult]func LookupReplicationSubnetGroup(ctx *Context, args *LookupReplicationSubnetGroupArgs, opts ...InvokeOption) (*LookupReplicationSubnetGroupResult, error)
func LookupReplicationSubnetGroupOutput(ctx *Context, args *LookupReplicationSubnetGroupOutputArgs, opts ...InvokeOption) LookupReplicationSubnetGroupResultOutput> Note: This function is named LookupReplicationSubnetGroup in the Go SDK.
public static class GetReplicationSubnetGroup
{
public static Task<GetReplicationSubnetGroupResult> InvokeAsync(GetReplicationSubnetGroupArgs args, InvokeOptions? opts = null)
public static Output<GetReplicationSubnetGroupResult> Invoke(GetReplicationSubnetGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetReplicationSubnetGroupResult> getReplicationSubnetGroup(GetReplicationSubnetGroupArgs args, InvokeOptions options)
public static Output<GetReplicationSubnetGroupResult> getReplicationSubnetGroup(GetReplicationSubnetGroupArgs args, InvokeOptions options)
fn::invoke:
function: aws:dms/getReplicationSubnetGroup:getReplicationSubnetGroup
arguments:
# arguments dictionaryThe following arguments are supported:
- Replication
Subnet stringGroup Id - Name for the replication subnet group. This value is stored as a lowercase string. It must contain no more than 255 alphanumeric characters, periods, spaces, underscores, or hyphens and cannot be
default. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Dictionary<string, string>
- Replication
Subnet stringGroup Id - Name for the replication subnet group. This value is stored as a lowercase string. It must contain no more than 255 alphanumeric characters, periods, spaces, underscores, or hyphens and cannot be
default. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map[string]string
- replication
Subnet StringGroup Id - Name for the replication subnet group. This value is stored as a lowercase string. It must contain no more than 255 alphanumeric characters, periods, spaces, underscores, or hyphens and cannot be
default. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String,String>
- replication
Subnet stringGroup Id - Name for the replication subnet group. This value is stored as a lowercase string. It must contain no more than 255 alphanumeric characters, periods, spaces, underscores, or hyphens and cannot be
default. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- {[key: string]: string}
- replication_
subnet_ strgroup_ id - Name for the replication subnet group. This value is stored as a lowercase string. It must contain no more than 255 alphanumeric characters, periods, spaces, underscores, or hyphens and cannot be
default. - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Mapping[str, str]
- replication
Subnet StringGroup Id - Name for the replication subnet group. This value is stored as a lowercase string. It must contain no more than 255 alphanumeric characters, periods, spaces, underscores, or hyphens and cannot be
default. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String>
getReplicationSubnetGroup Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Replication
Subnet stringGroup Arn - Replication
Subnet stringGroup Description - Description for the subnet group.
- Replication
Subnet stringGroup Id - Subnet
Group stringStatus - Subnet
Ids List<string> - List of at least 2 EC2 subnet IDs for the subnet group. The subnets must cover at least 2 availability zones.
- Dictionary<string, string>
- Vpc
Id string - The ID of the VPC the subnet group is in.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Replication
Subnet stringGroup Arn - Replication
Subnet stringGroup Description - Description for the subnet group.
- Replication
Subnet stringGroup Id - Subnet
Group stringStatus - Subnet
Ids []string - List of at least 2 EC2 subnet IDs for the subnet group. The subnets must cover at least 2 availability zones.
- map[string]string
- Vpc
Id string - The ID of the VPC the subnet group is in.
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- replication
Subnet StringGroup Arn - replication
Subnet StringGroup Description - Description for the subnet group.
- replication
Subnet StringGroup Id - subnet
Group StringStatus - subnet
Ids List<String> - List of at least 2 EC2 subnet IDs for the subnet group. The subnets must cover at least 2 availability zones.
- Map<String,String>
- vpc
Id String - The ID of the VPC the subnet group is in.
- id string
- The provider-assigned unique ID for this managed resource.
- region string
- replication
Subnet stringGroup Arn - replication
Subnet stringGroup Description - Description for the subnet group.
- replication
Subnet stringGroup Id - subnet
Group stringStatus - subnet
Ids string[] - List of at least 2 EC2 subnet IDs for the subnet group. The subnets must cover at least 2 availability zones.
- {[key: string]: string}
- vpc
Id string - The ID of the VPC the subnet group is in.
- id str
- The provider-assigned unique ID for this managed resource.
- region str
- replication_
subnet_ strgroup_ arn - replication_
subnet_ strgroup_ description - Description for the subnet group.
- replication_
subnet_ strgroup_ id - subnet_
group_ strstatus - subnet_
ids Sequence[str] - List of at least 2 EC2 subnet IDs for the subnet group. The subnets must cover at least 2 availability zones.
- Mapping[str, str]
- vpc_
id str - The ID of the VPC the subnet group is in.
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- replication
Subnet StringGroup Arn - replication
Subnet StringGroup Description - Description for the subnet group.
- replication
Subnet StringGroup Id - subnet
Group StringStatus - subnet
Ids List<String> - List of at least 2 EC2 subnet IDs for the subnet group. The subnets must cover at least 2 availability zones.
- Map<String>
- vpc
Id String - The ID of the VPC the subnet group is in.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
