import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a resource to associate a maintenance window with database server VM based on the input parameters. * * ## Example Usage * * ### resource to associated maintenance window with OS_PATCHING * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * const name = new nutanix.NdbMaintenanceTask("name", { * dbserverIds: ["{{ dbserver_vm_id }}"], * maintenanceWindowId: "{{ maintenance_window_id }}", * tasks: [{ * taskType: "OS_PATCHING", * }], * }); * ``` * * * ### resource to associated maintenance window with DB_PATCHING * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * const name = new nutanix.NdbMaintenanceTask("name", { * dbserverIds: ["{{ dbserver_vm_id }}"], * maintenanceWindowId: "{{ maintenance_window_id }}", * tasks: [{ * taskType: "DB_PATCHING", * }], * }); * ``` * * * ### resource to associated maintenance window with pre and post command on each task * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * const name = new nutanix.NdbMaintenanceTask("name", { * dbserverIds: ["{{ dbserver_vm_id }}"], * maintenanceWindowId: "{{ maintenance_window_id }}", * tasks: [ * { * taskType: "DB_PATCHING", * preCommand: "{{ pre_command for db patching }}", * postCommand: "{{ post_command for db patching }}", * }, * { * taskType: "OS_PATCHING", * preCommand: "{{ pre_command for os patching}}", * postCommand: "{{ post_command for os patching }}", * }, * ], * }); * ``` * */ export declare class NdbMaintenanceTask extends pulumi.CustomResource { /** * Get an existing NdbMaintenanceTask 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?: NdbMaintenanceTaskState, opts?: pulumi.CustomResourceOptions): NdbMaintenanceTask; /** * Returns true if the given object is an instance of NdbMaintenanceTask. 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 NdbMaintenanceTask; /** * dbserver cluster ids. Conflicts with "dbserverId" */ readonly dbserverClusters: pulumi.Output; /** * dbserver vm id. Conflicts with "dbserverCluster" */ readonly dbserverIds: pulumi.Output; /** * Entity Task Association List. */ readonly entityTaskAssociations: pulumi.Output; /** * maintenance window id which has to be associated */ readonly maintenanceWindowId: pulumi.Output; /** * task input for Operating System Patching or Database Patching or both */ readonly tasks: pulumi.Output; /** * Create a NdbMaintenanceTask 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: NdbMaintenanceTaskArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NdbMaintenanceTask resources. */ export interface NdbMaintenanceTaskState { /** * dbserver cluster ids. Conflicts with "dbserverId" */ dbserverClusters?: pulumi.Input[] | undefined>; /** * dbserver vm id. Conflicts with "dbserverCluster" */ dbserverIds?: pulumi.Input[] | undefined>; /** * Entity Task Association List. */ entityTaskAssociations?: pulumi.Input[] | undefined>; /** * maintenance window id which has to be associated */ maintenanceWindowId?: pulumi.Input; /** * task input for Operating System Patching or Database Patching or both */ tasks?: pulumi.Input[] | undefined>; } /** * The set of arguments for constructing a NdbMaintenanceTask resource. */ export interface NdbMaintenanceTaskArgs { /** * dbserver cluster ids. Conflicts with "dbserverId" */ dbserverClusters?: pulumi.Input[] | undefined>; /** * dbserver vm id. Conflicts with "dbserverCluster" */ dbserverIds?: pulumi.Input[] | undefined>; /** * maintenance window id which has to be associated */ maintenanceWindowId: pulumi.Input; /** * task input for Operating System Patching or Database Patching or both */ tasks?: pulumi.Input[] | undefined>; } //# sourceMappingURL=ndbMaintenanceTask.d.ts.map