AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi
aws.dms.getReplicationInstance
Explore with Pulumi AI
Data source for managing an AWS DMS (Database Migration) Replication Instance.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = aws.dms.getReplicationInstance({
    replicationInstanceId: testAwsDmsReplicationInstance.replicationInstanceId,
});
import pulumi
import pulumi_aws as aws
test = aws.dms.get_replication_instance(replication_instance_id=test_aws_dms_replication_instance["replicationInstanceId"])
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.LookupReplicationInstance(ctx, &dms.LookupReplicationInstanceArgs{
			ReplicationInstanceId: testAwsDmsReplicationInstance.ReplicationInstanceId,
		}, 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.GetReplicationInstance.Invoke(new()
    {
        ReplicationInstanceId = testAwsDmsReplicationInstance.ReplicationInstanceId,
    });
});
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.GetReplicationInstanceArgs;
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.getReplicationInstance(GetReplicationInstanceArgs.builder()
            .replicationInstanceId(testAwsDmsReplicationInstance.replicationInstanceId())
            .build());
    }
}
variables:
  test:
    fn::invoke:
      function: aws:dms:getReplicationInstance
      arguments:
        replicationInstanceId: ${testAwsDmsReplicationInstance.replicationInstanceId}
Using getReplicationInstance
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 getReplicationInstance(args: GetReplicationInstanceArgs, opts?: InvokeOptions): Promise<GetReplicationInstanceResult>
function getReplicationInstanceOutput(args: GetReplicationInstanceOutputArgs, opts?: InvokeOptions): Output<GetReplicationInstanceResult>def get_replication_instance(replication_instance_id: Optional[str] = None,
                             tags: Optional[Mapping[str, str]] = None,
                             opts: Optional[InvokeOptions] = None) -> GetReplicationInstanceResult
def get_replication_instance_output(replication_instance_id: Optional[pulumi.Input[str]] = None,
                             tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetReplicationInstanceResult]func LookupReplicationInstance(ctx *Context, args *LookupReplicationInstanceArgs, opts ...InvokeOption) (*LookupReplicationInstanceResult, error)
func LookupReplicationInstanceOutput(ctx *Context, args *LookupReplicationInstanceOutputArgs, opts ...InvokeOption) LookupReplicationInstanceResultOutput> Note: This function is named LookupReplicationInstance in the Go SDK.
public static class GetReplicationInstance 
{
    public static Task<GetReplicationInstanceResult> InvokeAsync(GetReplicationInstanceArgs args, InvokeOptions? opts = null)
    public static Output<GetReplicationInstanceResult> Invoke(GetReplicationInstanceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetReplicationInstanceResult> getReplicationInstance(GetReplicationInstanceArgs args, InvokeOptions options)
public static Output<GetReplicationInstanceResult> getReplicationInstance(GetReplicationInstanceArgs args, InvokeOptions options)
fn::invoke:
  function: aws:dms/getReplicationInstance:getReplicationInstance
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ReplicationInstance stringId 
- The replication instance identifier.
- Dictionary<string, string>
- ReplicationInstance stringId 
- The replication instance identifier.
- map[string]string
- replicationInstance StringId 
- The replication instance identifier.
- Map<String,String>
- replicationInstance stringId 
- The replication instance identifier.
- {[key: string]: string}
- replication_instance_ strid 
- The replication instance identifier.
- Mapping[str, str]
- replicationInstance StringId 
- The replication instance identifier.
- Map<String>
getReplicationInstance Result
The following output properties are available:
- AllocatedStorage int
- The amount of storage (in gigabytes) to be initially allocated for the replication instance.
- AutoMinor boolVersion Upgrade 
- Indicates that minor engine upgrades will be applied automatically to the replication instance during the maintenance window.
- AvailabilityZone string
- The EC2 Availability Zone that the replication instance will be created in.
- EngineVersion string
- The engine version number of the replication instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- KmsKey stringArn 
- The Amazon Resource Name (ARN) for the KMS key used to encrypt the connection parameters.
- MultiAz bool
- Specifies if the replication instance is a multi-az deployment.
- NetworkType string
- The type of IP address protocol used by the replication instance.
- PreferredMaintenance stringWindow 
- The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
- PubliclyAccessible bool
- Specifies the accessibility options for the replication instance. A value of true represents an instance with a public IP address. A value of false represents an instance with a private IP address.
- ReplicationInstance stringArn 
- The Amazon Resource Name (ARN) of the replication instance.
- ReplicationInstance stringClass 
- The compute and memory capacity of the replication instance as specified by the replication instance class. See AWS DMS User Guide for information on instance classes.
- ReplicationInstance stringId 
- ReplicationInstance List<string>Private Ips 
- A list of the private IP addresses of the replication instance.
- ReplicationInstance List<string>Public Ips 
- A list of the public IP addresses of the replication instance.
- ReplicationSubnet stringGroup Id 
- A subnet group to associate with the replication instance.
- Dictionary<string, string>
- VpcSecurity List<string>Group Ids 
- A set of VPC security group IDs that are used with the replication instance.
- AllocatedStorage int
- The amount of storage (in gigabytes) to be initially allocated for the replication instance.
- AutoMinor boolVersion Upgrade 
- Indicates that minor engine upgrades will be applied automatically to the replication instance during the maintenance window.
- AvailabilityZone string
- The EC2 Availability Zone that the replication instance will be created in.
- EngineVersion string
- The engine version number of the replication instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- KmsKey stringArn 
- The Amazon Resource Name (ARN) for the KMS key used to encrypt the connection parameters.
- MultiAz bool
- Specifies if the replication instance is a multi-az deployment.
- NetworkType string
- The type of IP address protocol used by the replication instance.
- PreferredMaintenance stringWindow 
- The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
- PubliclyAccessible bool
- Specifies the accessibility options for the replication instance. A value of true represents an instance with a public IP address. A value of false represents an instance with a private IP address.
- ReplicationInstance stringArn 
- The Amazon Resource Name (ARN) of the replication instance.
- ReplicationInstance stringClass 
- The compute and memory capacity of the replication instance as specified by the replication instance class. See AWS DMS User Guide for information on instance classes.
- ReplicationInstance stringId 
- ReplicationInstance []stringPrivate Ips 
- A list of the private IP addresses of the replication instance.
- ReplicationInstance []stringPublic Ips 
- A list of the public IP addresses of the replication instance.
- ReplicationSubnet stringGroup Id 
- A subnet group to associate with the replication instance.
- map[string]string
- VpcSecurity []stringGroup Ids 
- A set of VPC security group IDs that are used with the replication instance.
- allocatedStorage Integer
- The amount of storage (in gigabytes) to be initially allocated for the replication instance.
- autoMinor BooleanVersion Upgrade 
- Indicates that minor engine upgrades will be applied automatically to the replication instance during the maintenance window.
- availabilityZone String
- The EC2 Availability Zone that the replication instance will be created in.
- engineVersion String
- The engine version number of the replication instance.
- id String
- The provider-assigned unique ID for this managed resource.
- kmsKey StringArn 
- The Amazon Resource Name (ARN) for the KMS key used to encrypt the connection parameters.
- multiAz Boolean
- Specifies if the replication instance is a multi-az deployment.
- networkType String
- The type of IP address protocol used by the replication instance.
- preferredMaintenance StringWindow 
- The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
- publiclyAccessible Boolean
- Specifies the accessibility options for the replication instance. A value of true represents an instance with a public IP address. A value of false represents an instance with a private IP address.
- replicationInstance StringArn 
- The Amazon Resource Name (ARN) of the replication instance.
- replicationInstance StringClass 
- The compute and memory capacity of the replication instance as specified by the replication instance class. See AWS DMS User Guide for information on instance classes.
- replicationInstance StringId 
- replicationInstance List<String>Private Ips 
- A list of the private IP addresses of the replication instance.
- replicationInstance List<String>Public Ips 
- A list of the public IP addresses of the replication instance.
- replicationSubnet StringGroup Id 
- A subnet group to associate with the replication instance.
- Map<String,String>
- vpcSecurity List<String>Group Ids 
- A set of VPC security group IDs that are used with the replication instance.
- allocatedStorage number
- The amount of storage (in gigabytes) to be initially allocated for the replication instance.
- autoMinor booleanVersion Upgrade 
- Indicates that minor engine upgrades will be applied automatically to the replication instance during the maintenance window.
- availabilityZone string
- The EC2 Availability Zone that the replication instance will be created in.
- engineVersion string
- The engine version number of the replication instance.
- id string
- The provider-assigned unique ID for this managed resource.
- kmsKey stringArn 
- The Amazon Resource Name (ARN) for the KMS key used to encrypt the connection parameters.
- multiAz boolean
- Specifies if the replication instance is a multi-az deployment.
- networkType string
- The type of IP address protocol used by the replication instance.
- preferredMaintenance stringWindow 
- The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
- publiclyAccessible boolean
- Specifies the accessibility options for the replication instance. A value of true represents an instance with a public IP address. A value of false represents an instance with a private IP address.
- replicationInstance stringArn 
- The Amazon Resource Name (ARN) of the replication instance.
- replicationInstance stringClass 
- The compute and memory capacity of the replication instance as specified by the replication instance class. See AWS DMS User Guide for information on instance classes.
- replicationInstance stringId 
- replicationInstance string[]Private Ips 
- A list of the private IP addresses of the replication instance.
- replicationInstance string[]Public Ips 
- A list of the public IP addresses of the replication instance.
- replicationSubnet stringGroup Id 
- A subnet group to associate with the replication instance.
- {[key: string]: string}
- vpcSecurity string[]Group Ids 
- A set of VPC security group IDs that are used with the replication instance.
- allocated_storage int
- The amount of storage (in gigabytes) to be initially allocated for the replication instance.
- auto_minor_ boolversion_ upgrade 
- Indicates that minor engine upgrades will be applied automatically to the replication instance during the maintenance window.
- availability_zone str
- The EC2 Availability Zone that the replication instance will be created in.
- engine_version str
- The engine version number of the replication instance.
- id str
- The provider-assigned unique ID for this managed resource.
- kms_key_ strarn 
- The Amazon Resource Name (ARN) for the KMS key used to encrypt the connection parameters.
- multi_az bool
- Specifies if the replication instance is a multi-az deployment.
- network_type str
- The type of IP address protocol used by the replication instance.
- preferred_maintenance_ strwindow 
- The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
- publicly_accessible bool
- Specifies the accessibility options for the replication instance. A value of true represents an instance with a public IP address. A value of false represents an instance with a private IP address.
- replication_instance_ strarn 
- The Amazon Resource Name (ARN) of the replication instance.
- replication_instance_ strclass 
- The compute and memory capacity of the replication instance as specified by the replication instance class. See AWS DMS User Guide for information on instance classes.
- replication_instance_ strid 
- replication_instance_ Sequence[str]private_ ips 
- A list of the private IP addresses of the replication instance.
- replication_instance_ Sequence[str]public_ ips 
- A list of the public IP addresses of the replication instance.
- replication_subnet_ strgroup_ id 
- A subnet group to associate with the replication instance.
- Mapping[str, str]
- vpc_security_ Sequence[str]group_ ids 
- A set of VPC security group IDs that are used with the replication instance.
- allocatedStorage Number
- The amount of storage (in gigabytes) to be initially allocated for the replication instance.
- autoMinor BooleanVersion Upgrade 
- Indicates that minor engine upgrades will be applied automatically to the replication instance during the maintenance window.
- availabilityZone String
- The EC2 Availability Zone that the replication instance will be created in.
- engineVersion String
- The engine version number of the replication instance.
- id String
- The provider-assigned unique ID for this managed resource.
- kmsKey StringArn 
- The Amazon Resource Name (ARN) for the KMS key used to encrypt the connection parameters.
- multiAz Boolean
- Specifies if the replication instance is a multi-az deployment.
- networkType String
- The type of IP address protocol used by the replication instance.
- preferredMaintenance StringWindow 
- The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
- publiclyAccessible Boolean
- Specifies the accessibility options for the replication instance. A value of true represents an instance with a public IP address. A value of false represents an instance with a private IP address.
- replicationInstance StringArn 
- The Amazon Resource Name (ARN) of the replication instance.
- replicationInstance StringClass 
- The compute and memory capacity of the replication instance as specified by the replication instance class. See AWS DMS User Guide for information on instance classes.
- replicationInstance StringId 
- replicationInstance List<String>Private Ips 
- A list of the private IP addresses of the replication instance.
- replicationInstance List<String>Public Ips 
- A list of the public IP addresses of the replication instance.
- replicationSubnet StringGroup Id 
- A subnet group to associate with the replication instance.
- Map<String>
- vpcSecurity List<String>Group Ids 
- A set of VPC security group IDs that are used with the replication instance.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.