1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. ebs
  5. ReplicaGroupDrill
Alibaba Cloud v3.55.0 published on Tuesday, Apr 30, 2024 by Pulumi

alicloud.ebs.ReplicaGroupDrill

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.55.0 published on Tuesday, Apr 30, 2024 by Pulumi

    Provides a EBS Replica Group Drill resource.

    For information about EBS Replica Group Drill and how to use it, see What is Replica Group 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.ReplicaGroupDrill("default", {groupId: "pg-m1H9aaOUIGsDUwgZ"});
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.ebs.ReplicaGroupDrill("default", group_id="pg-m1H9aaOUIGsDUwgZ")
    
    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.NewReplicaGroupDrill(ctx, "default", &ebs.ReplicaGroupDrillArgs{
    			GroupId: pulumi.String("pg-m1H9aaOUIGsDUwgZ"),
    		})
    		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.ReplicaGroupDrill("default", new()
        {
            GroupId = "pg-m1H9aaOUIGsDUwgZ",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.ebs.ReplicaGroupDrill;
    import com.pulumi.alicloud.ebs.ReplicaGroupDrillArgs;
    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 ReplicaGroupDrill("default", ReplicaGroupDrillArgs.builder()        
                .groupId("pg-m1H9aaOUIGsDUwgZ")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      default:
        type: alicloud:ebs:ReplicaGroupDrill
        properties:
          groupId: pg-m1H9aaOUIGsDUwgZ
    

    Create ReplicaGroupDrill Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ReplicaGroupDrill(name: string, args: ReplicaGroupDrillArgs, opts?: CustomResourceOptions);
    @overload
    def ReplicaGroupDrill(resource_name: str,
                          args: ReplicaGroupDrillArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def ReplicaGroupDrill(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          group_id: Optional[str] = None)
    func NewReplicaGroupDrill(ctx *Context, name string, args ReplicaGroupDrillArgs, opts ...ResourceOption) (*ReplicaGroupDrill, error)
    public ReplicaGroupDrill(string name, ReplicaGroupDrillArgs args, CustomResourceOptions? opts = null)
    public ReplicaGroupDrill(String name, ReplicaGroupDrillArgs args)
    public ReplicaGroupDrill(String name, ReplicaGroupDrillArgs args, CustomResourceOptions options)
    
    type: alicloud:ebs:ReplicaGroupDrill
    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 ReplicaGroupDrillArgs
    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 ReplicaGroupDrillArgs
    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 ReplicaGroupDrillArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ReplicaGroupDrillArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ReplicaGroupDrillArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var replicaGroupDrillResource = new AliCloud.Ebs.ReplicaGroupDrill("replicaGroupDrillResource", new()
    {
        GroupId = "string",
    });
    
    example, err := ebs.NewReplicaGroupDrill(ctx, "replicaGroupDrillResource", &ebs.ReplicaGroupDrillArgs{
    	GroupId: pulumi.String("string"),
    })
    
    var replicaGroupDrillResource = new ReplicaGroupDrill("replicaGroupDrillResource", ReplicaGroupDrillArgs.builder()        
        .groupId("string")
        .build());
    
    replica_group_drill_resource = alicloud.ebs.ReplicaGroupDrill("replicaGroupDrillResource", group_id="string")
    
    const replicaGroupDrillResource = new alicloud.ebs.ReplicaGroupDrill("replicaGroupDrillResource", {groupId: "string"});
    
    type: alicloud:ebs:ReplicaGroupDrill
    properties:
        groupId: string
    

    ReplicaGroupDrill Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ReplicaGroupDrill resource accepts the following input properties:

    GroupId string
    The ID of the replication group. You can use the describediskreplicaggroups interface to query the asynchronous replication group list to obtain the value of the replication group ID input parameter.
    GroupId string
    The ID of the replication group. You can use the describediskreplicaggroups interface to query the asynchronous replication group list to obtain the value of the replication group ID input parameter.
    groupId String
    The ID of the replication group. You can use the describediskreplicaggroups interface to query the asynchronous replication group list to obtain the value of the replication group ID input parameter.
    groupId string
    The ID of the replication group. You can use the describediskreplicaggroups interface to query the asynchronous replication group list to obtain the value of the replication group ID input parameter.
    group_id str
    The ID of the replication group. You can use the describediskreplicaggroups interface to query the asynchronous replication group list to obtain the value of the replication group ID input parameter.
    groupId String
    The ID of the replication group. You can use the describediskreplicaggroups interface to query the asynchronous replication group list to obtain the value of the replication group ID input parameter.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ReplicaGroupDrill resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    ReplicaGroupDrillId string
    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.
    ReplicaGroupDrillId string
    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.
    replicaGroupDrillId String
    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.
    replicaGroupDrillId string
    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_group_drill_id str
    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.
    replicaGroupDrillId String
    The first ID of the resource.
    status String
    Walkthrough status. _failed: Execution failed._failed: Cleanup failed.

    Look up Existing ReplicaGroupDrill Resource

    Get an existing ReplicaGroupDrill 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?: ReplicaGroupDrillState, opts?: CustomResourceOptions): ReplicaGroupDrill
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            group_id: Optional[str] = None,
            replica_group_drill_id: Optional[str] = None,
            status: Optional[str] = None) -> ReplicaGroupDrill
    func GetReplicaGroupDrill(ctx *Context, name string, id IDInput, state *ReplicaGroupDrillState, opts ...ResourceOption) (*ReplicaGroupDrill, error)
    public static ReplicaGroupDrill Get(string name, Input<string> id, ReplicaGroupDrillState? state, CustomResourceOptions? opts = null)
    public static ReplicaGroupDrill get(String name, Output<String> id, ReplicaGroupDrillState 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.
    The following state arguments are supported:
    GroupId string
    The ID of the replication group. You can use the describediskreplicaggroups interface to query the asynchronous replication group list to obtain the value of the replication group ID input parameter.
    ReplicaGroupDrillId string
    The first ID of the resource.
    Status string
    Walkthrough status. _failed: Execution failed._failed: Cleanup failed.
    GroupId string
    The ID of the replication group. You can use the describediskreplicaggroups interface to query the asynchronous replication group list to obtain the value of the replication group ID input parameter.
    ReplicaGroupDrillId string
    The first ID of the resource.
    Status string
    Walkthrough status. _failed: Execution failed._failed: Cleanup failed.
    groupId String
    The ID of the replication group. You can use the describediskreplicaggroups interface to query the asynchronous replication group list to obtain the value of the replication group ID input parameter.
    replicaGroupDrillId String
    The first ID of the resource.
    status String
    Walkthrough status. _failed: Execution failed._failed: Cleanup failed.
    groupId string
    The ID of the replication group. You can use the describediskreplicaggroups interface to query the asynchronous replication group list to obtain the value of the replication group ID input parameter.
    replicaGroupDrillId string
    The first ID of the resource.
    status string
    Walkthrough status. _failed: Execution failed._failed: Cleanup failed.
    group_id str
    The ID of the replication group. You can use the describediskreplicaggroups interface to query the asynchronous replication group list to obtain the value of the replication group ID input parameter.
    replica_group_drill_id str
    The first ID of the resource.
    status str
    Walkthrough status. _failed: Execution failed._failed: Cleanup failed.
    groupId String
    The ID of the replication group. You can use the describediskreplicaggroups interface to query the asynchronous replication group list to obtain the value of the replication group ID input parameter.
    replicaGroupDrillId String
    The first ID of the resource.
    status String
    Walkthrough status. _failed: Execution failed._failed: Cleanup failed.

    Import

    EBS Replica Group Drill can be imported using the id, e.g.

    $ pulumi import alicloud:ebs/replicaGroupDrill:ReplicaGroupDrill example <group_id>:<replica_group_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.
    alicloud logo
    Alibaba Cloud v3.55.0 published on Tuesday, Apr 30, 2024 by Pulumi