import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Scheduled Action resource in Oracle Cloud Infrastructure Database service. * * Creates a Scheduled Action resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testScheduledAction = new oci.database.ScheduledAction("test_scheduled_action", { * actionType: scheduledActionActionType, * compartmentId: compartmentId, * schedulingPlanId: testSchedulingPlan.id, * schedulingWindowId: testSchedulingWindow.id, * actionMembers: [{ * memberId: testMember.id, * memberOrder: Number(scheduledActionActionMembersMemberOrder), * estimatedTimeInMins: Number(scheduledActionActionMembersEstimatedTimeInMins), * }], * actionParams: scheduledActionActionParams, * definedTags: scheduledActionDefinedTags, * freeformTags: { * Department: "Finance", * }, * }); * ``` * * ## Import * * ScheduledActions can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Database/scheduledAction:ScheduledAction test_scheduled_action "id" * ``` */ export declare class ScheduledAction extends pulumi.CustomResource { /** * Get an existing ScheduledAction 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?: ScheduledActionState, opts?: pulumi.CustomResourceOptions): ScheduledAction; /** * Returns true if the given object is an instance of ScheduledAction. 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 ScheduledAction; /** * (Updatable) The list of action members in a scheduled action. */ readonly actionMembers: pulumi.Output; /** * The order of the scheduled action. */ readonly actionOrder: pulumi.Output; /** * (Updatable) Map where a key value pair describes the specific action parameter. Example: `{"count": "3"}` */ readonly actionParams: pulumi.Output<{ [key: string]: string; }>; /** * The type of the scheduled action being performed */ readonly actionType: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ readonly compartmentId: pulumi.Output; /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * The display name of the Scheduled Action. */ readonly displayName: pulumi.Output; /** * The estimated patching time for the scheduled action. */ readonly estimatedTimeInMins: pulumi.Output; /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Scheduling Plan. */ readonly schedulingPlanId: pulumi.Output; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Scheduling Window. * * ** 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 schedulingWindowId: pulumi.Output; /** * The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED. */ readonly state: pulumi.Output; /** * System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The date and time the Scheduled Action Resource was created. */ readonly timeCreated: pulumi.Output; /** * The date and time the Scheduled Action Resource was updated. */ readonly timeUpdated: pulumi.Output; /** * Create a ScheduledAction 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: ScheduledActionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ScheduledAction resources. */ export interface ScheduledActionState { /** * (Updatable) The list of action members in a scheduled action. */ actionMembers?: pulumi.Input[] | undefined>; /** * The order of the scheduled action. */ actionOrder?: pulumi.Input; /** * (Updatable) Map where a key value pair describes the specific action parameter. Example: `{"count": "3"}` */ actionParams?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The type of the scheduled action being performed */ actionType?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId?: pulumi.Input; /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The display name of the Scheduled Action. */ displayName?: pulumi.Input; /** * The estimated patching time for the scheduled action. */ estimatedTimeInMins?: pulumi.Input; /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Scheduling Plan. */ schedulingPlanId?: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Scheduling Window. * * ** 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 */ schedulingWindowId?: pulumi.Input; /** * The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED. */ state?: pulumi.Input; /** * System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The date and time the Scheduled Action Resource was created. */ timeCreated?: pulumi.Input; /** * The date and time the Scheduled Action Resource was updated. */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a ScheduledAction resource. */ export interface ScheduledActionArgs { /** * (Updatable) The list of action members in a scheduled action. */ actionMembers?: pulumi.Input[] | undefined>; /** * (Updatable) Map where a key value pair describes the specific action parameter. Example: `{"count": "3"}` */ actionParams?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The type of the scheduled action being performed */ actionType: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId: pulumi.Input; /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Scheduling Plan. */ schedulingPlanId: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Scheduling Window. * * ** 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 */ schedulingWindowId: pulumi.Input; } //# sourceMappingURL=scheduledAction.d.ts.map