1. Packages
  2. AWS Classic
  3. API Docs
  4. dms
  5. getReplicationSubnetGroup

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.dms.getReplicationSubnetGroup

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

    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:

    ReplicationSubnetGroupId string
    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.
    Tags Dictionary<string, string>
    ReplicationSubnetGroupId string
    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.
    Tags map[string]string
    replicationSubnetGroupId String
    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.
    tags Map<String,String>
    replicationSubnetGroupId string
    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.
    tags {[key: string]: string}
    replication_subnet_group_id str
    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.
    tags Mapping[str, str]
    replicationSubnetGroupId String
    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.
    tags Map<String>

    getReplicationSubnetGroup Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ReplicationSubnetGroupArn string
    ReplicationSubnetGroupDescription string
    Description for the subnet group.
    ReplicationSubnetGroupId string
    SubnetGroupStatus string
    SubnetIds List<string>
    List of at least 2 EC2 subnet IDs for the subnet group. The subnets must cover at least 2 availability zones.
    Tags Dictionary<string, string>
    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
    ReplicationSubnetGroupDescription string
    Description for the subnet group.
    ReplicationSubnetGroupId string
    SubnetGroupStatus string
    SubnetIds []string
    List of at least 2 EC2 subnet IDs for the subnet group. The subnets must cover at least 2 availability zones.
    Tags map[string]string
    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
    replicationSubnetGroupDescription String
    Description for the subnet group.
    replicationSubnetGroupId String
    subnetGroupStatus String
    subnetIds List<String>
    List of at least 2 EC2 subnet IDs for the subnet group. The subnets must cover at least 2 availability zones.
    tags Map<String,String>
    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
    replicationSubnetGroupDescription string
    Description for the subnet group.
    replicationSubnetGroupId string
    subnetGroupStatus string
    subnetIds string[]
    List of at least 2 EC2 subnet IDs for the subnet group. The subnets must cover at least 2 availability zones.
    tags {[key: string]: string}
    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
    replication_subnet_group_description str
    Description for the subnet group.
    replication_subnet_group_id str
    subnet_group_status str
    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.
    tags 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.
    replicationSubnetGroupArn String
    replicationSubnetGroupDescription String
    Description for the subnet group.
    replicationSubnetGroupId String
    subnetGroupStatus String
    subnetIds List<String>
    List of at least 2 EC2 subnet IDs for the subnet group. The subnets must cover at least 2 availability zones.
    tags Map<String>
    vpcId 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.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi