alicloud.ebs.ReplicaPairDrill
Explore with Pulumi AI
Provides a EBS Replica Pair Drill resource.
For information about EBS Replica Pair Drill and how to use it, see What is Replica Pair Drill.
NOTE: Available since v1.215.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = new alicloud.ebs.ReplicaPairDrill("default", {pairId: "pair-cn-wwo3kjfq5001"});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.ebs.ReplicaPairDrill("default", pair_id="pair-cn-wwo3kjfq5001")
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ebs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := ebs.NewReplicaPairDrill(ctx, "default", &ebs.ReplicaPairDrillArgs{
PairId: pulumi.String("pair-cn-wwo3kjfq5001"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = new AliCloud.Ebs.ReplicaPairDrill("default", new()
{
PairId = "pair-cn-wwo3kjfq5001",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ebs.ReplicaPairDrill;
import com.pulumi.alicloud.ebs.ReplicaPairDrillArgs;
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 config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
var default_ = new ReplicaPairDrill("default", ReplicaPairDrillArgs.builder()
.pairId("pair-cn-wwo3kjfq5001")
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
default:
type: alicloud:ebs:ReplicaPairDrill
properties:
pairId: pair-cn-wwo3kjfq5001
Create ReplicaPairDrill Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ReplicaPairDrill(name: string, args: ReplicaPairDrillArgs, opts?: CustomResourceOptions);
@overload
def ReplicaPairDrill(resource_name: str,
args: ReplicaPairDrillArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ReplicaPairDrill(resource_name: str,
opts: Optional[ResourceOptions] = None,
pair_id: Optional[str] = None)
func NewReplicaPairDrill(ctx *Context, name string, args ReplicaPairDrillArgs, opts ...ResourceOption) (*ReplicaPairDrill, error)
public ReplicaPairDrill(string name, ReplicaPairDrillArgs args, CustomResourceOptions? opts = null)
public ReplicaPairDrill(String name, ReplicaPairDrillArgs args)
public ReplicaPairDrill(String name, ReplicaPairDrillArgs args, CustomResourceOptions options)
type: alicloud:ebs:ReplicaPairDrill
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ReplicaPairDrillArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ReplicaPairDrillArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ReplicaPairDrillArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ReplicaPairDrillArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ReplicaPairDrillArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var replicaPairDrillResource = new AliCloud.Ebs.ReplicaPairDrill("replicaPairDrillResource", new()
{
PairId = "string",
});
example, err := ebs.NewReplicaPairDrill(ctx, "replicaPairDrillResource", &ebs.ReplicaPairDrillArgs{
PairId: pulumi.String("string"),
})
var replicaPairDrillResource = new ReplicaPairDrill("replicaPairDrillResource", ReplicaPairDrillArgs.builder()
.pairId("string")
.build());
replica_pair_drill_resource = alicloud.ebs.ReplicaPairDrill("replicaPairDrillResource", pair_id="string")
const replicaPairDrillResource = new alicloud.ebs.ReplicaPairDrill("replicaPairDrillResource", {pairId: "string"});
type: alicloud:ebs:ReplicaPairDrill
properties:
pairId: string
ReplicaPairDrill Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ReplicaPairDrill resource accepts the following input properties:
- Pair
Id string - Copy the ID of the pair. You can call DescribeDiskReplicaPairs to query the list of asynchronous replication pairs to obtain the replication pair ID.
- Pair
Id string - Copy the ID of the pair. You can call DescribeDiskReplicaPairs to query the list of asynchronous replication pairs to obtain the replication pair ID.
- pair
Id String - Copy the ID of the pair. You can call DescribeDiskReplicaPairs to query the list of asynchronous replication pairs to obtain the replication pair ID.
- pair
Id string - Copy the ID of the pair. You can call DescribeDiskReplicaPairs to query the list of asynchronous replication pairs to obtain the replication pair ID.
- pair_
id str - Copy the ID of the pair. You can call DescribeDiskReplicaPairs to query the list of asynchronous replication pairs to obtain the replication pair ID.
- pair
Id String - Copy the ID of the pair. You can call DescribeDiskReplicaPairs to query the list of asynchronous replication pairs to obtain the replication pair ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the ReplicaPairDrill resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Replica
Pair stringDrill Id - The first ID of the resource.
- Status string
- Walkthrough status. _failed: Execution failed._failed: Cleanup failed.
- Id string
- The provider-assigned unique ID for this managed resource.
- Replica
Pair stringDrill Id - The first ID of the resource.
- Status string
- Walkthrough status. _failed: Execution failed._failed: Cleanup failed.
- id String
- The provider-assigned unique ID for this managed resource.
- replica
Pair StringDrill Id - The first ID of the resource.
- status String
- Walkthrough status. _failed: Execution failed._failed: Cleanup failed.
- id string
- The provider-assigned unique ID for this managed resource.
- replica
Pair stringDrill Id - The first ID of the resource.
- status string
- Walkthrough status. _failed: Execution failed._failed: Cleanup failed.
- id str
- The provider-assigned unique ID for this managed resource.
- replica_
pair_ strdrill_ id - The first ID of the resource.
- status str
- Walkthrough status. _failed: Execution failed._failed: Cleanup failed.
- id String
- The provider-assigned unique ID for this managed resource.
- replica
Pair StringDrill Id - The first ID of the resource.
- status String
- Walkthrough status. _failed: Execution failed._failed: Cleanup failed.
Look up Existing ReplicaPairDrill Resource
Get an existing ReplicaPairDrill resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ReplicaPairDrillState, opts?: CustomResourceOptions): ReplicaPairDrill
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
pair_id: Optional[str] = None,
replica_pair_drill_id: Optional[str] = None,
status: Optional[str] = None) -> ReplicaPairDrill
func GetReplicaPairDrill(ctx *Context, name string, id IDInput, state *ReplicaPairDrillState, opts ...ResourceOption) (*ReplicaPairDrill, error)
public static ReplicaPairDrill Get(string name, Input<string> id, ReplicaPairDrillState? state, CustomResourceOptions? opts = null)
public static ReplicaPairDrill get(String name, Output<String> id, ReplicaPairDrillState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Pair
Id string - Copy the ID of the pair. You can call DescribeDiskReplicaPairs to query the list of asynchronous replication pairs to obtain the replication pair ID.
- Replica
Pair stringDrill Id - The first ID of the resource.
- Status string
- Walkthrough status. _failed: Execution failed._failed: Cleanup failed.
- Pair
Id string - Copy the ID of the pair. You can call DescribeDiskReplicaPairs to query the list of asynchronous replication pairs to obtain the replication pair ID.
- Replica
Pair stringDrill Id - The first ID of the resource.
- Status string
- Walkthrough status. _failed: Execution failed._failed: Cleanup failed.
- pair
Id String - Copy the ID of the pair. You can call DescribeDiskReplicaPairs to query the list of asynchronous replication pairs to obtain the replication pair ID.
- replica
Pair StringDrill Id - The first ID of the resource.
- status String
- Walkthrough status. _failed: Execution failed._failed: Cleanup failed.
- pair
Id string - Copy the ID of the pair. You can call DescribeDiskReplicaPairs to query the list of asynchronous replication pairs to obtain the replication pair ID.
- replica
Pair stringDrill Id - The first ID of the resource.
- status string
- Walkthrough status. _failed: Execution failed._failed: Cleanup failed.
- pair_
id str - Copy the ID of the pair. You can call DescribeDiskReplicaPairs to query the list of asynchronous replication pairs to obtain the replication pair ID.
- replica_
pair_ strdrill_ id - The first ID of the resource.
- status str
- Walkthrough status. _failed: Execution failed._failed: Cleanup failed.
- pair
Id String - Copy the ID of the pair. You can call DescribeDiskReplicaPairs to query the list of asynchronous replication pairs to obtain the replication pair ID.
- replica
Pair StringDrill Id - The first ID of the resource.
- status String
- Walkthrough status. _failed: Execution failed._failed: Cleanup failed.
Import
EBS Replica Pair Drill can be imported using the id, e.g.
$ pulumi import alicloud:ebs/replicaPairDrill:ReplicaPairDrill example <pair_id>:<replica_pair_drill_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.