AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.dms.getReplicationSubnetGroup
Explore with Pulumi AI
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/v6/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(replication_subnet_group_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetReplicationSubnetGroupResult
def get_replication_subnet_group_output(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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:dms/getReplicationSubnetGroup:getReplicationSubnetGroup
arguments:
# arguments dictionary
The 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
. - 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
. - 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
. - 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
. - {[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
. - 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
. - Map<String>
getReplicationSubnetGroup Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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
aws
Terraform Provider.