import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Resource Action resource in Oracle Cloud Infrastructure Optimizer service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/advisor/latest/ResourceAction * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/optimizer * * Updates the resource action that corresponds to the specified OCID. * Use this operation to implement the following actions: * * * Postpone resource action * * Ignore resource action * * Reactivate resource action * * ## Import * * ResourceActions can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Optimizer/resourceAction:ResourceAction test_resource_action "id" * ``` */ export declare class ResourceAction extends pulumi.CustomResource { /** * Get an existing ResourceAction 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?: ResourceActionState, opts?: pulumi.CustomResourceOptions): ResourceAction; /** * Returns true if the given object is an instance of ResourceAction. 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 ResourceAction; /** * Details about the recommended action. */ readonly actions: pulumi.Output; /** * The unique OCID associated with the category. */ readonly categoryId: pulumi.Output; /** * The OCID of the compartment. */ readonly compartmentId: pulumi.Output; /** * The name associated with the compartment. */ readonly compartmentName: pulumi.Output; /** * The estimated cost savings, in dollars, for the resource action. */ readonly estimatedCostSaving: pulumi.Output; /** * Additional metadata key/value pairs that you provide. They serve the same purpose and functionality as fields in the `metadata` object. */ readonly extendedMetadata: pulumi.Output<{ [key: string]: string; }>; /** * Custom metadata key/value pairs for the resource action. */ readonly metadata: pulumi.Output<{ [key: string]: string; }>; /** * The name assigned to the resource. */ readonly name: pulumi.Output; /** * The unique OCID associated with the recommendation. */ readonly recommendationId: pulumi.Output; /** * The unique OCID associated with the resource action. */ readonly resourceActionId: pulumi.Output; /** * The unique OCID associated with the resource. */ readonly resourceId: pulumi.Output; /** * The kind of resource. */ readonly resourceType: pulumi.Output; /** * The resource action's current state. */ readonly state: pulumi.Output; /** * (Updatable) The status of the resource action. */ readonly status: pulumi.Output; /** * The date and time the resource action details were created, in the format defined by RFC3339. */ readonly timeCreated: pulumi.Output; /** * The date and time that the resource action entered its current status. The format is defined by RFC3339. */ readonly timeStatusBegin: pulumi.Output; /** * (Updatable) The date and time the current status will change. The format is defined by RFC3339. * * For example, "The current `postponed` status of the resource action will end and change to `pending` on this date and time." * * ** 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 timeStatusEnd: pulumi.Output; /** * The date and time the resource action details were last updated, in the format defined by RFC3339. */ readonly timeUpdated: pulumi.Output; /** * Create a ResourceAction 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: ResourceActionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ResourceAction resources. */ export interface ResourceActionState { /** * Details about the recommended action. */ actions?: pulumi.Input[] | undefined>; /** * The unique OCID associated with the category. */ categoryId?: pulumi.Input; /** * The OCID of the compartment. */ compartmentId?: pulumi.Input; /** * The name associated with the compartment. */ compartmentName?: pulumi.Input; /** * The estimated cost savings, in dollars, for the resource action. */ estimatedCostSaving?: pulumi.Input; /** * Additional metadata key/value pairs that you provide. They serve the same purpose and functionality as fields in the `metadata` object. */ extendedMetadata?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Custom metadata key/value pairs for the resource action. */ metadata?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The name assigned to the resource. */ name?: pulumi.Input; /** * The unique OCID associated with the recommendation. */ recommendationId?: pulumi.Input; /** * The unique OCID associated with the resource action. */ resourceActionId?: pulumi.Input; /** * The unique OCID associated with the resource. */ resourceId?: pulumi.Input; /** * The kind of resource. */ resourceType?: pulumi.Input; /** * The resource action's current state. */ state?: pulumi.Input; /** * (Updatable) The status of the resource action. */ status?: pulumi.Input; /** * The date and time the resource action details were created, in the format defined by RFC3339. */ timeCreated?: pulumi.Input; /** * The date and time that the resource action entered its current status. The format is defined by RFC3339. */ timeStatusBegin?: pulumi.Input; /** * (Updatable) The date and time the current status will change. The format is defined by RFC3339. * * For example, "The current `postponed` status of the resource action will end and change to `pending` on this date and time." * * ** 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 */ timeStatusEnd?: pulumi.Input; /** * The date and time the resource action details were last updated, in the format defined by RFC3339. */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a ResourceAction resource. */ export interface ResourceActionArgs { /** * The unique OCID associated with the resource action. */ resourceActionId: pulumi.Input; /** * (Updatable) The status of the resource action. */ status: pulumi.Input; /** * (Updatable) The date and time the current status will change. The format is defined by RFC3339. * * For example, "The current `postponed` status of the resource action will end and change to `pending` on this date and time." * * ** 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 */ timeStatusEnd?: pulumi.Input; } //# sourceMappingURL=resourceAction.d.ts.map