import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Dr Plan Execution resource in Oracle Cloud Infrastructure Disaster Recovery service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/disaster-recovery/latest/DrPlanExecution * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/disaster_recovery * * Execute a DR plan for a DR protection group. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testDrPlanExecution = new oci.disasterrecovery.DrPlanExecution("test_dr_plan_execution", { * executionOptions: { * planExecutionType: drPlanExecutionExecutionOptionsPlanExecutionType, * arePrechecksEnabled: drPlanExecutionExecutionOptionsArePrechecksEnabled === "true", * areWarningsIgnored: drPlanExecutionExecutionOptionsAreWarningsIgnored === "true", * }, * planId: testPlan.id, * definedTags: { * "Operations.CostCenter": "42", * }, * displayName: drPlanExecutionDisplayName, * freeformTags: { * Department: "Finance", * }, * }); * ``` * * ## Import * * DrPlanExecutions can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:DisasterRecovery/drPlanExecution:DrPlanExecution test_dr_plan_execution "id" * ``` */ export declare class DrPlanExecution extends pulumi.CustomResource { /** * Get an existing DrPlanExecution 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?: DrPlanExecutionState, opts?: pulumi.CustomResourceOptions): DrPlanExecution; /** * Returns true if the given object is an instance of DrPlanExecution. 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 DrPlanExecution; /** * The details of the event that started the automatic DR plan execution. */ readonly automaticExecutionDetails: pulumi.Output; /** * The OCID of the compartment containing this DR plan execution. 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 execution. Example: `Execution - EBS Switchover PHX to IAD` */ readonly displayName: pulumi.Output; /** * The OCID of the DR protection group to which this DR plan execution belongs. Example: `ocid1.drprotectiongroup.oc1..uniqueID` */ readonly drProtectionGroupId: pulumi.Output; /** * The total duration in seconds taken to complete the step execution. Example: `35` */ readonly executionDurationInSec: pulumi.Output; /** * The options for a plan execution. */ readonly executionOptions: 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 list of groups executed in this DR plan execution. */ readonly groupExecutions: pulumi.Output; /** * A flag indicating whether execution was submitted automatically by Automatic DR Configuration. Example: `false` */ readonly isAutomatic: pulumi.Output; /** * A message describing the DR plan execution's current state in more detail. */ readonly lifeCycleDetails: pulumi.Output; /** * The details of an object storage log location for a DR protection group. */ readonly logLocations: pulumi.Output; /** * The OCID of 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 type of the DR plan executed. */ readonly planExecutionType: pulumi.Output; /** * The OCID of the DR plan. Example: `ocid1.drplan.oc1..uniqueID` * * ** 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 planId: pulumi.Output; /** * The current state of the DR plan execution. */ readonly state: pulumi.Output; /** * A categorized summary of step execution statuses and their corresponding counts. */ readonly stepStatusCounts: 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 at which DR plan execution was created. An RFC3339 formatted datetime string. Example: `2019-03-29T09:36:42Z` */ readonly timeCreated: pulumi.Output; /** * The date and time at which DR plan execution succeeded, failed, was paused, or was canceled. An RFC3339 formatted datetime string. Example: `2019-03-29T09:36:42Z` */ readonly timeEnded: pulumi.Output; /** * The date and time at which DR plan execution began. An RFC3339 formatted datetime string. Example: `2019-03-29T09:36:42Z` */ readonly timeStarted: pulumi.Output; /** * The time when DR plan execution was last updated. An RFC3339 formatted datetime string. Example: `2019-03-29T09:36:42Z` */ readonly timeUpdated: pulumi.Output; /** * Create a DrPlanExecution 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: DrPlanExecutionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DrPlanExecution resources. */ export interface DrPlanExecutionState { /** * The details of the event that started the automatic DR plan execution. */ automaticExecutionDetails?: pulumi.Input[] | undefined>; /** * The OCID of the compartment containing this DR plan execution. 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 execution. Example: `Execution - EBS Switchover PHX to IAD` */ displayName?: pulumi.Input; /** * The OCID of the DR protection group to which this DR plan execution belongs. Example: `ocid1.drprotectiongroup.oc1..uniqueID` */ drProtectionGroupId?: pulumi.Input; /** * The total duration in seconds taken to complete the step execution. Example: `35` */ executionDurationInSec?: pulumi.Input; /** * The options for a plan execution. */ executionOptions?: 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 list of groups executed in this DR plan execution. */ groupExecutions?: pulumi.Input[] | undefined>; /** * A flag indicating whether execution was submitted automatically by Automatic DR Configuration. Example: `false` */ isAutomatic?: pulumi.Input; /** * A message describing the DR plan execution's current state in more detail. */ lifeCycleDetails?: pulumi.Input; /** * The details of an object storage log location for a DR protection group. */ logLocations?: pulumi.Input[] | undefined>; /** * The OCID of 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 type of the DR plan executed. */ planExecutionType?: pulumi.Input; /** * The OCID of the DR plan. Example: `ocid1.drplan.oc1..uniqueID` * * ** 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 */ planId?: pulumi.Input; /** * The current state of the DR plan execution. */ state?: pulumi.Input; /** * A categorized summary of step execution statuses and their corresponding counts. */ stepStatusCounts?: pulumi.Input[] | undefined>; /** * 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 at which DR plan execution was created. An RFC3339 formatted datetime string. Example: `2019-03-29T09:36:42Z` */ timeCreated?: pulumi.Input; /** * The date and time at which DR plan execution succeeded, failed, was paused, or was canceled. An RFC3339 formatted datetime string. Example: `2019-03-29T09:36:42Z` */ timeEnded?: pulumi.Input; /** * The date and time at which DR plan execution began. An RFC3339 formatted datetime string. Example: `2019-03-29T09:36:42Z` */ timeStarted?: pulumi.Input; /** * The time when DR plan execution was last updated. An RFC3339 formatted datetime string. Example: `2019-03-29T09:36:42Z` */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a DrPlanExecution resource. */ export interface DrPlanExecutionArgs { /** * (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 execution. Example: `Execution - EBS Switchover PHX to IAD` */ displayName?: pulumi.Input; /** * The options for a plan execution. */ executionOptions: 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>; /** * The OCID of the DR plan. Example: `ocid1.drplan.oc1..uniqueID` * * ** 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 */ planId: pulumi.Input; } //# sourceMappingURL=drPlanExecution.d.ts.map