UNPKG

@lbrlabs/pulumi-cockroach

Version:

A Pulumi package to create and managed cockroach db resources in Pulumi programs.

76 lines (75 loc) 2.94 kB
import * as pulumi from "@pulumi/pulumi"; /** * Maintenance window configuration for a cluster. */ export declare class MaintenanceWindow extends pulumi.CustomResource { /** * Get an existing MaintenanceWindow 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<pulumi.ID>, state?: MaintenanceWindowState, opts?: pulumi.CustomResourceOptions): MaintenanceWindow; /** * Returns true if the given object is an instance of MaintenanceWindow. 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 MaintenanceWindow; /** * Cluster ID. */ readonly clusterId: pulumi.Output<string>; /** * Duration in seconds from the beginning of each Monday (UTC) after which the maintenance window starts. */ readonly offsetDuration: pulumi.Output<number>; /** * Duration in seconds that the maintenance window will remain active for after it starts. */ readonly windowDuration: pulumi.Output<number>; /** * Create a MaintenanceWindow 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: MaintenanceWindowArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MaintenanceWindow resources. */ export interface MaintenanceWindowState { /** * Cluster ID. */ clusterId?: pulumi.Input<string>; /** * Duration in seconds from the beginning of each Monday (UTC) after which the maintenance window starts. */ offsetDuration?: pulumi.Input<number>; /** * Duration in seconds that the maintenance window will remain active for after it starts. */ windowDuration?: pulumi.Input<number>; } /** * The set of arguments for constructing a MaintenanceWindow resource. */ export interface MaintenanceWindowArgs { /** * Cluster ID. */ clusterId: pulumi.Input<string>; /** * Duration in seconds from the beginning of each Monday (UTC) after which the maintenance window starts. */ offsetDuration: pulumi.Input<number>; /** * Duration in seconds that the maintenance window will remain active for after it starts. */ windowDuration: pulumi.Input<number>; }