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.getReplicationInstance
Explore with Pulumi AI
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 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:dms/getReplicationInstance:getReplicationInstance
arguments:
# arguments dictionary
The following arguments are supported:
- Replication
Instance stringId - The replication instance identifier.
- Dictionary<string, string>
- Replication
Instance stringId - The replication instance identifier.
- map[string]string
- replication
Instance StringId - The replication instance identifier.
- Map<String,String>
- replication
Instance stringId - The replication instance identifier.
- {[key: string]: string}
- replication_
instance_ strid - The replication instance identifier.
- Mapping[str, str]
- replication
Instance StringId - The replication instance identifier.
- Map<String>
getReplicationInstance Result
The following output properties are available:
- 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 string - The EC2 Availability Zone that the replication instance will be created in.
- Engine
Version string - The engine version number of the replication instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringArn - 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 string - The type of IP address protocol used by the replication instance.
- Preferred
Maintenance stringWindow - 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 stringArn - The Amazon Resource Name (ARN) of the replication instance.
- Replication
Instance 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.
- Replication
Instance stringId - Replication
Instance List<string>Private Ips - A list of the private IP addresses of the replication instance.
- Replication
Instance List<string>Public Ips - A list of the public IP addresses of the replication instance.
- Replication
Subnet stringGroup Id - A subnet group to associate with the replication instance.
- Dictionary<string, string>
- Vpc
Security List<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 string - The EC2 Availability Zone that the replication instance will be created in.
- Engine
Version string - The engine version number of the replication instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringArn - 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 string - The type of IP address protocol used by the replication instance.
- Preferred
Maintenance stringWindow - 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 stringArn - The Amazon Resource Name (ARN) of the replication instance.
- Replication
Instance 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.
- Replication
Instance stringId - Replication
Instance []stringPrivate Ips - A list of the private IP addresses of the replication instance.
- Replication
Instance []stringPublic Ips - A list of the public IP addresses of the replication instance.
- Replication
Subnet stringGroup Id - A subnet group to associate with the replication instance.
- map[string]string
- Vpc
Security []stringGroup Ids - A set of VPC security group IDs that are used with the replication instance.
- allocated
Storage Integer - The amount of storage (in gigabytes) to be initially allocated for the replication instance.
- auto
Minor BooleanVersion Upgrade - Indicates that minor engine upgrades will be applied automatically to the replication instance during the maintenance window.
- availability
Zone String - The EC2 Availability Zone that the replication instance will be created in.
- engine
Version String - The engine version number of the replication instance.
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringArn - The Amazon Resource Name (ARN) for the KMS key used to encrypt the connection parameters.
- multi
Az Boolean - Specifies if the replication instance is a multi-az deployment.
- network
Type String - The type of IP address protocol used by the replication instance.
- preferred
Maintenance StringWindow - The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
- publicly
Accessible 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.
- replication
Instance StringArn - The Amazon Resource Name (ARN) of the replication instance.
- replication
Instance 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.
- replication
Instance StringId - replication
Instance List<String>Private Ips - A list of the private IP addresses of the replication instance.
- replication
Instance List<String>Public Ips - A list of the public IP addresses of the replication instance.
- replication
Subnet StringGroup Id - A subnet group to associate with the replication instance.
- Map<String,String>
- vpc
Security List<String>Group Ids - A set of VPC security group IDs that are used with the replication instance.
- allocated
Storage number - The amount of storage (in gigabytes) to be initially allocated for the replication instance.
- auto
Minor booleanVersion Upgrade - Indicates that minor engine upgrades will be applied automatically to the replication instance during the maintenance window.
- availability
Zone string - The EC2 Availability Zone that the replication instance will be created in.
- engine
Version string - The engine version number of the replication instance.
- id string
- The provider-assigned unique ID for this managed resource.
- kms
Key stringArn - The Amazon Resource Name (ARN) for the KMS key used to encrypt the connection parameters.
- multi
Az boolean - Specifies if the replication instance is a multi-az deployment.
- network
Type string - The type of IP address protocol used by the replication instance.
- preferred
Maintenance stringWindow - The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
- publicly
Accessible 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.
- replication
Instance stringArn - The Amazon Resource Name (ARN) of the replication instance.
- replication
Instance 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.
- replication
Instance stringId - replication
Instance string[]Private Ips - A list of the private IP addresses of the replication instance.
- replication
Instance string[]Public Ips - A list of the public IP addresses of the replication instance.
- replication
Subnet stringGroup Id - A subnet group to associate with the replication instance.
- {[key: string]: string}
- vpc
Security 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.
- allocated
Storage Number - The amount of storage (in gigabytes) to be initially allocated for the replication instance.
- auto
Minor BooleanVersion Upgrade - Indicates that minor engine upgrades will be applied automatically to the replication instance during the maintenance window.
- availability
Zone String - The EC2 Availability Zone that the replication instance will be created in.
- engine
Version String - The engine version number of the replication instance.
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringArn - The Amazon Resource Name (ARN) for the KMS key used to encrypt the connection parameters.
- multi
Az Boolean - Specifies if the replication instance is a multi-az deployment.
- network
Type String - The type of IP address protocol used by the replication instance.
- preferred
Maintenance StringWindow - The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
- publicly
Accessible 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.
- replication
Instance StringArn - The Amazon Resource Name (ARN) of the replication instance.
- replication
Instance 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.
- replication
Instance StringId - replication
Instance List<String>Private Ips - A list of the private IP addresses of the replication instance.
- replication
Instance List<String>Public Ips - A list of the public IP addresses of the replication instance.
- replication
Subnet StringGroup Id - A subnet group to associate with the replication instance.
- Map<String>
- vpc
Security 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
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi