import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Dr Plan resource in Oracle Cloud Infrastructure Disaster Recovery service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/disaster-recovery/latest/DrPlan * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/disaster_recovery * * Create a DR plan of the specified DR plan type. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testDrPlan = new oci.disasterrecovery.DrPlan("test_dr_plan", { * displayName: drPlanDisplayName, * drProtectionGroupId: testDrProtectionGroup.id, * type: drPlanType, * definedTags: { * "Operations.CostCenter": "42", * }, * freeformTags: { * Department: "Finance", * }, * sourcePlanId: testSourcePlan.id, * }); * ``` * * ## Import * * DrPlans can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:DisasterRecovery/drPlan:DrPlan test_dr_plan "id" * ``` */ export declare class DrPlan extends pulumi.CustomResource { /** * Get an existing DrPlan resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: DrPlanState, opts?: pulumi.CustomResourceOptions): DrPlan; /** * Returns true if the given object is an instance of DrPlan. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is DrPlan; /** * The OCID of the compartment containing the DR plan. Example: `ocid1.compartment.oc1..uniqueID` */ readonly compartmentId: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"Operations.CostCenter": "42"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) The display name of the DR plan being created. Example: `EBS Switchover PHX to IAD` */ readonly displayName: pulumi.Output; /** * The OCID of the DR protection group to which this DR plan belongs. Example: `ocid1.drprotectiongroup.oc1..uniqueID` */ readonly drProtectionGroupId: pulumi.Output; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"Department": "Finance"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * A message describing the DR plan's current state in more detail. */ readonly lifeCycleDetails: pulumi.Output; /** * The current state of the DR plan. */ readonly lifecycleSubState: pulumi.Output; /** * The OCID of the peer DR protection group associated with this plan's DR protection group. Example: `ocid1.drprotectiongroup.oc1..uniqueID` */ readonly peerDrProtectionGroupId: pulumi.Output; /** * The region of the peer DR protection group associated with this plan's DR protection group. Example: `us-ashburn-1` */ readonly peerRegion: pulumi.Output; /** * The list of groups in this DR plan. */ readonly planGroups: pulumi.Output; /** * (Updatable) An optional property when incremented triggers Refresh. Could be set to any integer value. */ readonly refreshTrigger: pulumi.Output; /** * The OCID of the source DR plan that should be cloned. Example: `ocid1.drplan.oc1..uniqueID` */ readonly sourcePlanId: pulumi.Output; /** * The current state of the DR plan. */ readonly state: pulumi.Output; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The date and time the DR plan was created. An RFC3339 formatted datetime string. Example: `2019-03-29T09:36:42Z` */ readonly timeCreated: pulumi.Output; /** * The date and time the DR plan was updated. An RFC3339 formatted datetime string. Example: `2019-03-29T09:36:42Z` */ readonly timeUpdated: pulumi.Output; /** * The type of DR plan to be created. */ readonly type: pulumi.Output; /** * (Updatable) An optional property when incremented triggers Verify. Could be set to any integer value. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ readonly verifyTrigger: pulumi.Output; /** * Create a DrPlan resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: DrPlanArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DrPlan resources. */ export interface DrPlanState { /** * The OCID of the compartment containing the DR plan. Example: `ocid1.compartment.oc1..uniqueID` */ compartmentId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) The display name of the DR plan being created. Example: `EBS Switchover PHX to IAD` */ displayName?: pulumi.Input; /** * The OCID of the DR protection group to which this DR plan belongs. Example: `ocid1.drprotectiongroup.oc1..uniqueID` */ drProtectionGroupId?: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * A message describing the DR plan's current state in more detail. */ lifeCycleDetails?: pulumi.Input; /** * The current state of the DR plan. */ lifecycleSubState?: pulumi.Input; /** * The OCID of the peer DR protection group associated with this plan's DR protection group. Example: `ocid1.drprotectiongroup.oc1..uniqueID` */ peerDrProtectionGroupId?: pulumi.Input; /** * The region of the peer DR protection group associated with this plan's DR protection group. Example: `us-ashburn-1` */ peerRegion?: pulumi.Input; /** * The list of groups in this DR plan. */ planGroups?: pulumi.Input[] | undefined>; /** * (Updatable) An optional property when incremented triggers Refresh. Could be set to any integer value. */ refreshTrigger?: pulumi.Input; /** * The OCID of the source DR plan that should be cloned. Example: `ocid1.drplan.oc1..uniqueID` */ sourcePlanId?: pulumi.Input; /** * The current state of the DR plan. */ state?: pulumi.Input; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The date and time the DR plan was created. An RFC3339 formatted datetime string. Example: `2019-03-29T09:36:42Z` */ timeCreated?: pulumi.Input; /** * The date and time the DR plan was updated. An RFC3339 formatted datetime string. Example: `2019-03-29T09:36:42Z` */ timeUpdated?: pulumi.Input; /** * The type of DR plan to be created. */ type?: pulumi.Input; /** * (Updatable) An optional property when incremented triggers Verify. Could be set to any integer value. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ verifyTrigger?: pulumi.Input; } /** * The set of arguments for constructing a DrPlan resource. */ export interface DrPlanArgs { /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) The display name of the DR plan being created. Example: `EBS Switchover PHX to IAD` */ displayName: pulumi.Input; /** * The OCID of the DR protection group to which this DR plan belongs. Example: `ocid1.drprotectiongroup.oc1..uniqueID` */ drProtectionGroupId: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) An optional property when incremented triggers Refresh. Could be set to any integer value. */ refreshTrigger?: pulumi.Input; /** * The OCID of the source DR plan that should be cloned. Example: `ocid1.drplan.oc1..uniqueID` */ sourcePlanId?: pulumi.Input; /** * The type of DR plan to be created. */ type: pulumi.Input; /** * (Updatable) An optional property when incremented triggers Verify. Could be set to any integer value. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ verifyTrigger?: pulumi.Input; } //# sourceMappingURL=drPlan.d.ts.map