flexibleengine.SdrsDrillV1
Explore with Pulumi AI
Manages a Disaster Recovery Drill resource within FlexibleEngine.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const domain1 = flexibleengine.getSdrsDomainV1({
name: "SDRS_HypeDomain01",
});
const exampleVpc = new flexibleengine.VpcV1("exampleVpc", {cidr: "192.168.0.0/24"});
const exampleVpcDrill = new flexibleengine.VpcV1("exampleVpcDrill", {cidr: "192.168.1.0/24"});
const group1 = new flexibleengine.SdrsProtectiongroupV1("group1", {
description: "test description",
sourceAvailabilityZone: "eu-west-0a",
targetAvailabilityZone: "eu-west-0b",
domainId: domain1.then(domain1 => domain1.id),
sourceVpcId: exampleVpc.vpcV1Id,
drType: "migration",
});
const drill1 = new flexibleengine.SdrsDrillV1("drill1", {
groupId: group1.sdrsProtectiongroupV1Id,
drillVpcId: exampleVpcDrill.vpcV1Id,
});
import pulumi
import pulumi_flexibleengine as flexibleengine
domain1 = flexibleengine.get_sdrs_domain_v1(name="SDRS_HypeDomain01")
example_vpc = flexibleengine.VpcV1("exampleVpc", cidr="192.168.0.0/24")
example_vpc_drill = flexibleengine.VpcV1("exampleVpcDrill", cidr="192.168.1.0/24")
group1 = flexibleengine.SdrsProtectiongroupV1("group1",
description="test description",
source_availability_zone="eu-west-0a",
target_availability_zone="eu-west-0b",
domain_id=domain1.id,
source_vpc_id=example_vpc.vpc_v1_id,
dr_type="migration")
drill1 = flexibleengine.SdrsDrillV1("drill1",
group_id=group1.sdrs_protectiongroup_v1_id,
drill_vpc_id=example_vpc_drill.vpc_v1_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
domain1, err := flexibleengine.GetSdrsDomainV1(ctx, &flexibleengine.GetSdrsDomainV1Args{
Name: pulumi.StringRef("SDRS_HypeDomain01"),
}, nil)
if err != nil {
return err
}
exampleVpc, err := flexibleengine.NewVpcV1(ctx, "exampleVpc", &flexibleengine.VpcV1Args{
Cidr: pulumi.String("192.168.0.0/24"),
})
if err != nil {
return err
}
exampleVpcDrill, err := flexibleengine.NewVpcV1(ctx, "exampleVpcDrill", &flexibleengine.VpcV1Args{
Cidr: pulumi.String("192.168.1.0/24"),
})
if err != nil {
return err
}
group1, err := flexibleengine.NewSdrsProtectiongroupV1(ctx, "group1", &flexibleengine.SdrsProtectiongroupV1Args{
Description: pulumi.String("test description"),
SourceAvailabilityZone: pulumi.String("eu-west-0a"),
TargetAvailabilityZone: pulumi.String("eu-west-0b"),
DomainId: pulumi.String(domain1.Id),
SourceVpcId: exampleVpc.VpcV1Id,
DrType: pulumi.String("migration"),
})
if err != nil {
return err
}
_, err = flexibleengine.NewSdrsDrillV1(ctx, "drill1", &flexibleengine.SdrsDrillV1Args{
GroupId: group1.SdrsProtectiongroupV1Id,
DrillVpcId: exampleVpcDrill.VpcV1Id,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var domain1 = Flexibleengine.GetSdrsDomainV1.Invoke(new()
{
Name = "SDRS_HypeDomain01",
});
var exampleVpc = new Flexibleengine.VpcV1("exampleVpc", new()
{
Cidr = "192.168.0.0/24",
});
var exampleVpcDrill = new Flexibleengine.VpcV1("exampleVpcDrill", new()
{
Cidr = "192.168.1.0/24",
});
var group1 = new Flexibleengine.SdrsProtectiongroupV1("group1", new()
{
Description = "test description",
SourceAvailabilityZone = "eu-west-0a",
TargetAvailabilityZone = "eu-west-0b",
DomainId = domain1.Apply(getSdrsDomainV1Result => getSdrsDomainV1Result.Id),
SourceVpcId = exampleVpc.VpcV1Id,
DrType = "migration",
});
var drill1 = new Flexibleengine.SdrsDrillV1("drill1", new()
{
GroupId = group1.SdrsProtectiongroupV1Id,
DrillVpcId = exampleVpcDrill.VpcV1Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetSdrsDomainV1Args;
import com.pulumi.flexibleengine.VpcV1;
import com.pulumi.flexibleengine.VpcV1Args;
import com.pulumi.flexibleengine.SdrsProtectiongroupV1;
import com.pulumi.flexibleengine.SdrsProtectiongroupV1Args;
import com.pulumi.flexibleengine.SdrsDrillV1;
import com.pulumi.flexibleengine.SdrsDrillV1Args;
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 domain1 = FlexibleengineFunctions.getSdrsDomainV1(GetSdrsDomainV1Args.builder()
.name("SDRS_HypeDomain01")
.build());
var exampleVpc = new VpcV1("exampleVpc", VpcV1Args.builder()
.cidr("192.168.0.0/24")
.build());
var exampleVpcDrill = new VpcV1("exampleVpcDrill", VpcV1Args.builder()
.cidr("192.168.1.0/24")
.build());
var group1 = new SdrsProtectiongroupV1("group1", SdrsProtectiongroupV1Args.builder()
.description("test description")
.sourceAvailabilityZone("eu-west-0a")
.targetAvailabilityZone("eu-west-0b")
.domainId(domain1.applyValue(getSdrsDomainV1Result -> getSdrsDomainV1Result.id()))
.sourceVpcId(exampleVpc.vpcV1Id())
.drType("migration")
.build());
var drill1 = new SdrsDrillV1("drill1", SdrsDrillV1Args.builder()
.groupId(group1.sdrsProtectiongroupV1Id())
.drillVpcId(exampleVpcDrill.vpcV1Id())
.build());
}
}
resources:
exampleVpc:
type: flexibleengine:VpcV1
properties:
cidr: 192.168.0.0/24
exampleVpcDrill:
type: flexibleengine:VpcV1
properties:
cidr: 192.168.1.0/24
group1:
type: flexibleengine:SdrsProtectiongroupV1
properties:
description: test description
sourceAvailabilityZone: eu-west-0a
targetAvailabilityZone: eu-west-0b
domainId: ${domain1.id}
sourceVpcId: ${exampleVpc.vpcV1Id}
drType: migration
drill1:
type: flexibleengine:SdrsDrillV1
properties:
groupId: ${group1.sdrsProtectiongroupV1Id}
drillVpcId: ${exampleVpcDrill.vpcV1Id}
variables:
domain1:
fn::invoke:
function: flexibleengine:getSdrsDomainV1
arguments:
name: SDRS_HypeDomain01
Create SdrsDrillV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SdrsDrillV1(name: string, args: SdrsDrillV1Args, opts?: CustomResourceOptions);
@overload
def SdrsDrillV1(resource_name: str,
args: SdrsDrillV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def SdrsDrillV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
drill_vpc_id: Optional[str] = None,
group_id: Optional[str] = None,
name: Optional[str] = None,
sdrs_drill_v1_id: Optional[str] = None,
timeouts: Optional[SdrsDrillV1TimeoutsArgs] = None)
func NewSdrsDrillV1(ctx *Context, name string, args SdrsDrillV1Args, opts ...ResourceOption) (*SdrsDrillV1, error)
public SdrsDrillV1(string name, SdrsDrillV1Args args, CustomResourceOptions? opts = null)
public SdrsDrillV1(String name, SdrsDrillV1Args args)
public SdrsDrillV1(String name, SdrsDrillV1Args args, CustomResourceOptions options)
type: flexibleengine:SdrsDrillV1
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 SdrsDrillV1Args
- 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 SdrsDrillV1Args
- 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 SdrsDrillV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SdrsDrillV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SdrsDrillV1Args
- 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 sdrsDrillV1Resource = new Flexibleengine.SdrsDrillV1("sdrsDrillV1Resource", new()
{
DrillVpcId = "string",
GroupId = "string",
Name = "string",
SdrsDrillV1Id = "string",
Timeouts = new Flexibleengine.Inputs.SdrsDrillV1TimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := flexibleengine.NewSdrsDrillV1(ctx, "sdrsDrillV1Resource", &flexibleengine.SdrsDrillV1Args{
DrillVpcId: pulumi.String("string"),
GroupId: pulumi.String("string"),
Name: pulumi.String("string"),
SdrsDrillV1Id: pulumi.String("string"),
Timeouts: &flexibleengine.SdrsDrillV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var sdrsDrillV1Resource = new SdrsDrillV1("sdrsDrillV1Resource", SdrsDrillV1Args.builder()
.drillVpcId("string")
.groupId("string")
.name("string")
.sdrsDrillV1Id("string")
.timeouts(SdrsDrillV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
sdrs_drill_v1_resource = flexibleengine.SdrsDrillV1("sdrsDrillV1Resource",
drill_vpc_id="string",
group_id="string",
name="string",
sdrs_drill_v1_id="string",
timeouts={
"create": "string",
"delete": "string",
})
const sdrsDrillV1Resource = new flexibleengine.SdrsDrillV1("sdrsDrillV1Resource", {
drillVpcId: "string",
groupId: "string",
name: "string",
sdrsDrillV1Id: "string",
timeouts: {
create: "string",
"delete": "string",
},
});
type: flexibleengine:SdrsDrillV1
properties:
drillVpcId: string
groupId: string
name: string
sdrsDrillV1Id: string
timeouts:
create: string
delete: string
SdrsDrillV1 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 SdrsDrillV1 resource accepts the following input properties:
- Drill
Vpc stringId - Specifies the ID used for a DR drill. Changing this creates a new drill.
- Group
Id string - Specifies the ID of a protection group. Changing this creates a new drill.
- Name string
- The name of a DR drill. The name can contain a maximum of 64 bytes. The value can contain only letters (a to z and A to Z), digits (0 to 9), decimal points (.), underscores (_), and hyphens (-).
- Sdrs
Drill stringV1Id - ID of a DR drill.
- Timeouts
Sdrs
Drill V1Timeouts
- Drill
Vpc stringId - Specifies the ID used for a DR drill. Changing this creates a new drill.
- Group
Id string - Specifies the ID of a protection group. Changing this creates a new drill.
- Name string
- The name of a DR drill. The name can contain a maximum of 64 bytes. The value can contain only letters (a to z and A to Z), digits (0 to 9), decimal points (.), underscores (_), and hyphens (-).
- Sdrs
Drill stringV1Id - ID of a DR drill.
- Timeouts
Sdrs
Drill V1Timeouts Args
- drill
Vpc StringId - Specifies the ID used for a DR drill. Changing this creates a new drill.
- group
Id String - Specifies the ID of a protection group. Changing this creates a new drill.
- name String
- The name of a DR drill. The name can contain a maximum of 64 bytes. The value can contain only letters (a to z and A to Z), digits (0 to 9), decimal points (.), underscores (_), and hyphens (-).
- sdrs
Drill StringV1Id - ID of a DR drill.
- timeouts
Sdrs
Drill V1Timeouts
- drill
Vpc stringId - Specifies the ID used for a DR drill. Changing this creates a new drill.
- group
Id string - Specifies the ID of a protection group. Changing this creates a new drill.
- name string
- The name of a DR drill. The name can contain a maximum of 64 bytes. The value can contain only letters (a to z and A to Z), digits (0 to 9), decimal points (.), underscores (_), and hyphens (-).
- sdrs
Drill stringV1Id - ID of a DR drill.
- timeouts
Sdrs
Drill V1Timeouts
- drill_
vpc_ strid - Specifies the ID used for a DR drill. Changing this creates a new drill.
- group_
id str - Specifies the ID of a protection group. Changing this creates a new drill.
- name str
- The name of a DR drill. The name can contain a maximum of 64 bytes. The value can contain only letters (a to z and A to Z), digits (0 to 9), decimal points (.), underscores (_), and hyphens (-).
- sdrs_
drill_ strv1_ id - ID of a DR drill.
- timeouts
Sdrs
Drill V1Timeouts Args
- drill
Vpc StringId - Specifies the ID used for a DR drill. Changing this creates a new drill.
- group
Id String - Specifies the ID of a protection group. Changing this creates a new drill.
- name String
- The name of a DR drill. The name can contain a maximum of 64 bytes. The value can contain only letters (a to z and A to Z), digits (0 to 9), decimal points (.), underscores (_), and hyphens (-).
- sdrs
Drill StringV1Id - ID of a DR drill.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the SdrsDrillV1 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The status of a DR drill. For details, see DR Drill Status.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The status of a DR drill. For details, see DR Drill Status.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The status of a DR drill. For details, see DR Drill Status.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- The status of a DR drill. For details, see DR Drill Status.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- The status of a DR drill. For details, see DR Drill Status.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The status of a DR drill. For details, see DR Drill Status.
Look up Existing SdrsDrillV1 Resource
Get an existing SdrsDrillV1 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?: SdrsDrillV1State, opts?: CustomResourceOptions): SdrsDrillV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
drill_vpc_id: Optional[str] = None,
group_id: Optional[str] = None,
name: Optional[str] = None,
sdrs_drill_v1_id: Optional[str] = None,
status: Optional[str] = None,
timeouts: Optional[SdrsDrillV1TimeoutsArgs] = None) -> SdrsDrillV1
func GetSdrsDrillV1(ctx *Context, name string, id IDInput, state *SdrsDrillV1State, opts ...ResourceOption) (*SdrsDrillV1, error)
public static SdrsDrillV1 Get(string name, Input<string> id, SdrsDrillV1State? state, CustomResourceOptions? opts = null)
public static SdrsDrillV1 get(String name, Output<String> id, SdrsDrillV1State state, CustomResourceOptions options)
resources: _: type: flexibleengine:SdrsDrillV1 get: id: ${id}
- 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.
- Drill
Vpc stringId - Specifies the ID used for a DR drill. Changing this creates a new drill.
- Group
Id string - Specifies the ID of a protection group. Changing this creates a new drill.
- Name string
- The name of a DR drill. The name can contain a maximum of 64 bytes. The value can contain only letters (a to z and A to Z), digits (0 to 9), decimal points (.), underscores (_), and hyphens (-).
- Sdrs
Drill stringV1Id - ID of a DR drill.
- Status string
- The status of a DR drill. For details, see DR Drill Status.
- Timeouts
Sdrs
Drill V1Timeouts
- Drill
Vpc stringId - Specifies the ID used for a DR drill. Changing this creates a new drill.
- Group
Id string - Specifies the ID of a protection group. Changing this creates a new drill.
- Name string
- The name of a DR drill. The name can contain a maximum of 64 bytes. The value can contain only letters (a to z and A to Z), digits (0 to 9), decimal points (.), underscores (_), and hyphens (-).
- Sdrs
Drill stringV1Id - ID of a DR drill.
- Status string
- The status of a DR drill. For details, see DR Drill Status.
- Timeouts
Sdrs
Drill V1Timeouts Args
- drill
Vpc StringId - Specifies the ID used for a DR drill. Changing this creates a new drill.
- group
Id String - Specifies the ID of a protection group. Changing this creates a new drill.
- name String
- The name of a DR drill. The name can contain a maximum of 64 bytes. The value can contain only letters (a to z and A to Z), digits (0 to 9), decimal points (.), underscores (_), and hyphens (-).
- sdrs
Drill StringV1Id - ID of a DR drill.
- status String
- The status of a DR drill. For details, see DR Drill Status.
- timeouts
Sdrs
Drill V1Timeouts
- drill
Vpc stringId - Specifies the ID used for a DR drill. Changing this creates a new drill.
- group
Id string - Specifies the ID of a protection group. Changing this creates a new drill.
- name string
- The name of a DR drill. The name can contain a maximum of 64 bytes. The value can contain only letters (a to z and A to Z), digits (0 to 9), decimal points (.), underscores (_), and hyphens (-).
- sdrs
Drill stringV1Id - ID of a DR drill.
- status string
- The status of a DR drill. For details, see DR Drill Status.
- timeouts
Sdrs
Drill V1Timeouts
- drill_
vpc_ strid - Specifies the ID used for a DR drill. Changing this creates a new drill.
- group_
id str - Specifies the ID of a protection group. Changing this creates a new drill.
- name str
- The name of a DR drill. The name can contain a maximum of 64 bytes. The value can contain only letters (a to z and A to Z), digits (0 to 9), decimal points (.), underscores (_), and hyphens (-).
- sdrs_
drill_ strv1_ id - ID of a DR drill.
- status str
- The status of a DR drill. For details, see DR Drill Status.
- timeouts
Sdrs
Drill V1Timeouts Args
- drill
Vpc StringId - Specifies the ID used for a DR drill. Changing this creates a new drill.
- group
Id String - Specifies the ID of a protection group. Changing this creates a new drill.
- name String
- The name of a DR drill. The name can contain a maximum of 64 bytes. The value can contain only letters (a to z and A to Z), digits (0 to 9), decimal points (.), underscores (_), and hyphens (-).
- sdrs
Drill StringV1Id - ID of a DR drill.
- status String
- The status of a DR drill. For details, see DR Drill Status.
- timeouts Property Map
Supporting Types
SdrsDrillV1Timeouts, SdrsDrillV1TimeoutsArgs
Import
DR drill can be imported using the id
, e.g.
$ pulumi import flexibleengine:index/sdrsDrillV1:SdrsDrillV1 drill_1 22fce838-4bfb-4a92-b9aa-fc80a583eb59
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.