flexibleengine.SdrsProtectiongroupV1
Explore with Pulumi AI
Manages a SDRS protection group 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/16"});
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",
});
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/16")
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")
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/16"),
})
if err != nil {
return err
}
_, 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
}
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/16",
});
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",
});
});
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 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/16")
.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());
}
}
resources:
exampleVpc:
type: flexibleengine:VpcV1
properties:
cidr: 192.168.0.0/16
group1:
type: flexibleengine:SdrsProtectiongroupV1
properties:
description: test description
sourceAvailabilityZone: eu-west-0a
targetAvailabilityZone: eu-west-0b
domainId: ${domain1.id}
sourceVpcId: ${exampleVpc.vpcV1Id}
drType: migration
variables:
domain1:
fn::invoke:
function: flexibleengine:getSdrsDomainV1
arguments:
name: SDRS_HypeDomain01
Create SdrsProtectiongroupV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SdrsProtectiongroupV1(name: string, args: SdrsProtectiongroupV1Args, opts?: CustomResourceOptions);
@overload
def SdrsProtectiongroupV1(resource_name: str,
args: SdrsProtectiongroupV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def SdrsProtectiongroupV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain_id: Optional[str] = None,
source_availability_zone: Optional[str] = None,
source_vpc_id: Optional[str] = None,
target_availability_zone: Optional[str] = None,
description: Optional[str] = None,
dr_type: Optional[str] = None,
enable: Optional[bool] = None,
name: Optional[str] = None,
sdrs_protectiongroup_v1_id: Optional[str] = None,
timeouts: Optional[SdrsProtectiongroupV1TimeoutsArgs] = None)
func NewSdrsProtectiongroupV1(ctx *Context, name string, args SdrsProtectiongroupV1Args, opts ...ResourceOption) (*SdrsProtectiongroupV1, error)
public SdrsProtectiongroupV1(string name, SdrsProtectiongroupV1Args args, CustomResourceOptions? opts = null)
public SdrsProtectiongroupV1(String name, SdrsProtectiongroupV1Args args)
public SdrsProtectiongroupV1(String name, SdrsProtectiongroupV1Args args, CustomResourceOptions options)
type: flexibleengine:SdrsProtectiongroupV1
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 SdrsProtectiongroupV1Args
- 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 SdrsProtectiongroupV1Args
- 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 SdrsProtectiongroupV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SdrsProtectiongroupV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SdrsProtectiongroupV1Args
- 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 sdrsProtectiongroupV1Resource = new Flexibleengine.SdrsProtectiongroupV1("sdrsProtectiongroupV1Resource", new()
{
DomainId = "string",
SourceAvailabilityZone = "string",
SourceVpcId = "string",
TargetAvailabilityZone = "string",
Description = "string",
DrType = "string",
Enable = false,
Name = "string",
SdrsProtectiongroupV1Id = "string",
Timeouts = new Flexibleengine.Inputs.SdrsProtectiongroupV1TimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := flexibleengine.NewSdrsProtectiongroupV1(ctx, "sdrsProtectiongroupV1Resource", &flexibleengine.SdrsProtectiongroupV1Args{
DomainId: pulumi.String("string"),
SourceAvailabilityZone: pulumi.String("string"),
SourceVpcId: pulumi.String("string"),
TargetAvailabilityZone: pulumi.String("string"),
Description: pulumi.String("string"),
DrType: pulumi.String("string"),
Enable: pulumi.Bool(false),
Name: pulumi.String("string"),
SdrsProtectiongroupV1Id: pulumi.String("string"),
Timeouts: &flexibleengine.SdrsProtectiongroupV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var sdrsProtectiongroupV1Resource = new SdrsProtectiongroupV1("sdrsProtectiongroupV1Resource", SdrsProtectiongroupV1Args.builder()
.domainId("string")
.sourceAvailabilityZone("string")
.sourceVpcId("string")
.targetAvailabilityZone("string")
.description("string")
.drType("string")
.enable(false)
.name("string")
.sdrsProtectiongroupV1Id("string")
.timeouts(SdrsProtectiongroupV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
sdrs_protectiongroup_v1_resource = flexibleengine.SdrsProtectiongroupV1("sdrsProtectiongroupV1Resource",
domain_id="string",
source_availability_zone="string",
source_vpc_id="string",
target_availability_zone="string",
description="string",
dr_type="string",
enable=False,
name="string",
sdrs_protectiongroup_v1_id="string",
timeouts={
"create": "string",
"delete": "string",
})
const sdrsProtectiongroupV1Resource = new flexibleengine.SdrsProtectiongroupV1("sdrsProtectiongroupV1Resource", {
domainId: "string",
sourceAvailabilityZone: "string",
sourceVpcId: "string",
targetAvailabilityZone: "string",
description: "string",
drType: "string",
enable: false,
name: "string",
sdrsProtectiongroupV1Id: "string",
timeouts: {
create: "string",
"delete": "string",
},
});
type: flexibleengine:SdrsProtectiongroupV1
properties:
description: string
domainId: string
drType: string
enable: false
name: string
sdrsProtectiongroupV1Id: string
sourceAvailabilityZone: string
sourceVpcId: string
targetAvailabilityZone: string
timeouts:
create: string
delete: string
SdrsProtectiongroupV1 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 SdrsProtectiongroupV1 resource accepts the following input properties:
- Domain
Id string - Specifies the ID of an active-active domain. Changing this creates a new group.
- Source
Availability stringZone - Specifies the source AZ of a protection group. Changing this creates a new group.
- Source
Vpc stringId - Specifies the ID of the source VPC. Changing this creates a new group.
- Target
Availability stringZone - Specifies the target AZ of a protection group. Changing this creates a new group.
- Description string
- The description of a protection group. Changing this creates a new group.
- Dr
Type string - Specifies the deployment model. The default value is migration indicating migration within a VPC. Changing this creates a new group.
- Enable bool
- Enable protection or not. It can only be set to true when there's replication pairs within the protection group.
- Name string
- The name of a protection group.
- Sdrs
Protectiongroup stringV1Id - ID of the protection group.
- Timeouts
Sdrs
Protectiongroup V1Timeouts
- Domain
Id string - Specifies the ID of an active-active domain. Changing this creates a new group.
- Source
Availability stringZone - Specifies the source AZ of a protection group. Changing this creates a new group.
- Source
Vpc stringId - Specifies the ID of the source VPC. Changing this creates a new group.
- Target
Availability stringZone - Specifies the target AZ of a protection group. Changing this creates a new group.
- Description string
- The description of a protection group. Changing this creates a new group.
- Dr
Type string - Specifies the deployment model. The default value is migration indicating migration within a VPC. Changing this creates a new group.
- Enable bool
- Enable protection or not. It can only be set to true when there's replication pairs within the protection group.
- Name string
- The name of a protection group.
- Sdrs
Protectiongroup stringV1Id - ID of the protection group.
- Timeouts
Sdrs
Protectiongroup V1Timeouts Args
- domain
Id String - Specifies the ID of an active-active domain. Changing this creates a new group.
- source
Availability StringZone - Specifies the source AZ of a protection group. Changing this creates a new group.
- source
Vpc StringId - Specifies the ID of the source VPC. Changing this creates a new group.
- target
Availability StringZone - Specifies the target AZ of a protection group. Changing this creates a new group.
- description String
- The description of a protection group. Changing this creates a new group.
- dr
Type String - Specifies the deployment model. The default value is migration indicating migration within a VPC. Changing this creates a new group.
- enable Boolean
- Enable protection or not. It can only be set to true when there's replication pairs within the protection group.
- name String
- The name of a protection group.
- sdrs
Protectiongroup StringV1Id - ID of the protection group.
- timeouts
Sdrs
Protectiongroup V1Timeouts
- domain
Id string - Specifies the ID of an active-active domain. Changing this creates a new group.
- source
Availability stringZone - Specifies the source AZ of a protection group. Changing this creates a new group.
- source
Vpc stringId - Specifies the ID of the source VPC. Changing this creates a new group.
- target
Availability stringZone - Specifies the target AZ of a protection group. Changing this creates a new group.
- description string
- The description of a protection group. Changing this creates a new group.
- dr
Type string - Specifies the deployment model. The default value is migration indicating migration within a VPC. Changing this creates a new group.
- enable boolean
- Enable protection or not. It can only be set to true when there's replication pairs within the protection group.
- name string
- The name of a protection group.
- sdrs
Protectiongroup stringV1Id - ID of the protection group.
- timeouts
Sdrs
Protectiongroup V1Timeouts
- domain_
id str - Specifies the ID of an active-active domain. Changing this creates a new group.
- source_
availability_ strzone - Specifies the source AZ of a protection group. Changing this creates a new group.
- source_
vpc_ strid - Specifies the ID of the source VPC. Changing this creates a new group.
- target_
availability_ strzone - Specifies the target AZ of a protection group. Changing this creates a new group.
- description str
- The description of a protection group. Changing this creates a new group.
- dr_
type str - Specifies the deployment model. The default value is migration indicating migration within a VPC. Changing this creates a new group.
- enable bool
- Enable protection or not. It can only be set to true when there's replication pairs within the protection group.
- name str
- The name of a protection group.
- sdrs_
protectiongroup_ strv1_ id - ID of the protection group.
- timeouts
Sdrs
Protectiongroup V1Timeouts Args
- domain
Id String - Specifies the ID of an active-active domain. Changing this creates a new group.
- source
Availability StringZone - Specifies the source AZ of a protection group. Changing this creates a new group.
- source
Vpc StringId - Specifies the ID of the source VPC. Changing this creates a new group.
- target
Availability StringZone - Specifies the target AZ of a protection group. Changing this creates a new group.
- description String
- The description of a protection group. Changing this creates a new group.
- dr
Type String - Specifies the deployment model. The default value is migration indicating migration within a VPC. Changing this creates a new group.
- enable Boolean
- Enable protection or not. It can only be set to true when there's replication pairs within the protection group.
- name String
- The name of a protection group.
- sdrs
Protectiongroup StringV1Id - ID of the protection group.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the SdrsProtectiongroupV1 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SdrsProtectiongroupV1 Resource
Get an existing SdrsProtectiongroupV1 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?: SdrsProtectiongroupV1State, opts?: CustomResourceOptions): SdrsProtectiongroupV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
domain_id: Optional[str] = None,
dr_type: Optional[str] = None,
enable: Optional[bool] = None,
name: Optional[str] = None,
sdrs_protectiongroup_v1_id: Optional[str] = None,
source_availability_zone: Optional[str] = None,
source_vpc_id: Optional[str] = None,
target_availability_zone: Optional[str] = None,
timeouts: Optional[SdrsProtectiongroupV1TimeoutsArgs] = None) -> SdrsProtectiongroupV1
func GetSdrsProtectiongroupV1(ctx *Context, name string, id IDInput, state *SdrsProtectiongroupV1State, opts ...ResourceOption) (*SdrsProtectiongroupV1, error)
public static SdrsProtectiongroupV1 Get(string name, Input<string> id, SdrsProtectiongroupV1State? state, CustomResourceOptions? opts = null)
public static SdrsProtectiongroupV1 get(String name, Output<String> id, SdrsProtectiongroupV1State state, CustomResourceOptions options)
resources: _: type: flexibleengine:SdrsProtectiongroupV1 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.
- Description string
- The description of a protection group. Changing this creates a new group.
- Domain
Id string - Specifies the ID of an active-active domain. Changing this creates a new group.
- Dr
Type string - Specifies the deployment model. The default value is migration indicating migration within a VPC. Changing this creates a new group.
- Enable bool
- Enable protection or not. It can only be set to true when there's replication pairs within the protection group.
- Name string
- The name of a protection group.
- Sdrs
Protectiongroup stringV1Id - ID of the protection group.
- Source
Availability stringZone - Specifies the source AZ of a protection group. Changing this creates a new group.
- Source
Vpc stringId - Specifies the ID of the source VPC. Changing this creates a new group.
- Target
Availability stringZone - Specifies the target AZ of a protection group. Changing this creates a new group.
- Timeouts
Sdrs
Protectiongroup V1Timeouts
- Description string
- The description of a protection group. Changing this creates a new group.
- Domain
Id string - Specifies the ID of an active-active domain. Changing this creates a new group.
- Dr
Type string - Specifies the deployment model. The default value is migration indicating migration within a VPC. Changing this creates a new group.
- Enable bool
- Enable protection or not. It can only be set to true when there's replication pairs within the protection group.
- Name string
- The name of a protection group.
- Sdrs
Protectiongroup stringV1Id - ID of the protection group.
- Source
Availability stringZone - Specifies the source AZ of a protection group. Changing this creates a new group.
- Source
Vpc stringId - Specifies the ID of the source VPC. Changing this creates a new group.
- Target
Availability stringZone - Specifies the target AZ of a protection group. Changing this creates a new group.
- Timeouts
Sdrs
Protectiongroup V1Timeouts Args
- description String
- The description of a protection group. Changing this creates a new group.
- domain
Id String - Specifies the ID of an active-active domain. Changing this creates a new group.
- dr
Type String - Specifies the deployment model. The default value is migration indicating migration within a VPC. Changing this creates a new group.
- enable Boolean
- Enable protection or not. It can only be set to true when there's replication pairs within the protection group.
- name String
- The name of a protection group.
- sdrs
Protectiongroup StringV1Id - ID of the protection group.
- source
Availability StringZone - Specifies the source AZ of a protection group. Changing this creates a new group.
- source
Vpc StringId - Specifies the ID of the source VPC. Changing this creates a new group.
- target
Availability StringZone - Specifies the target AZ of a protection group. Changing this creates a new group.
- timeouts
Sdrs
Protectiongroup V1Timeouts
- description string
- The description of a protection group. Changing this creates a new group.
- domain
Id string - Specifies the ID of an active-active domain. Changing this creates a new group.
- dr
Type string - Specifies the deployment model. The default value is migration indicating migration within a VPC. Changing this creates a new group.
- enable boolean
- Enable protection or not. It can only be set to true when there's replication pairs within the protection group.
- name string
- The name of a protection group.
- sdrs
Protectiongroup stringV1Id - ID of the protection group.
- source
Availability stringZone - Specifies the source AZ of a protection group. Changing this creates a new group.
- source
Vpc stringId - Specifies the ID of the source VPC. Changing this creates a new group.
- target
Availability stringZone - Specifies the target AZ of a protection group. Changing this creates a new group.
- timeouts
Sdrs
Protectiongroup V1Timeouts
- description str
- The description of a protection group. Changing this creates a new group.
- domain_
id str - Specifies the ID of an active-active domain. Changing this creates a new group.
- dr_
type str - Specifies the deployment model. The default value is migration indicating migration within a VPC. Changing this creates a new group.
- enable bool
- Enable protection or not. It can only be set to true when there's replication pairs within the protection group.
- name str
- The name of a protection group.
- sdrs_
protectiongroup_ strv1_ id - ID of the protection group.
- source_
availability_ strzone - Specifies the source AZ of a protection group. Changing this creates a new group.
- source_
vpc_ strid - Specifies the ID of the source VPC. Changing this creates a new group.
- target_
availability_ strzone - Specifies the target AZ of a protection group. Changing this creates a new group.
- timeouts
Sdrs
Protectiongroup V1Timeouts Args
- description String
- The description of a protection group. Changing this creates a new group.
- domain
Id String - Specifies the ID of an active-active domain. Changing this creates a new group.
- dr
Type String - Specifies the deployment model. The default value is migration indicating migration within a VPC. Changing this creates a new group.
- enable Boolean
- Enable protection or not. It can only be set to true when there's replication pairs within the protection group.
- name String
- The name of a protection group.
- sdrs
Protectiongroup StringV1Id - ID of the protection group.
- source
Availability StringZone - Specifies the source AZ of a protection group. Changing this creates a new group.
- source
Vpc StringId - Specifies the ID of the source VPC. Changing this creates a new group.
- target
Availability StringZone - Specifies the target AZ of a protection group. Changing this creates a new group.
- timeouts Property Map
Supporting Types
SdrsProtectiongroupV1Timeouts, SdrsProtectiongroupV1TimeoutsArgs
Import
Protection groups can be imported using the id
, e.g.
$ pulumi import flexibleengine:index/sdrsProtectiongroupV1:SdrsProtectiongroupV1 group_1 7117d38e-4c8f-4624-a505-bd96b97d024c
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.