pulumi-time
Version:
A Pulumi provider for managing time-based resources and operations, dynamically bridged from the Terraform Time provider with support for delays, offsets, rotations, and time-based scheduling.
76 lines (75 loc) • 3.34 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
export declare class Sleep extends pulumi.CustomResource {
/**
* Get an existing Sleep 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?: SleepState, opts?: pulumi.CustomResourceOptions): Sleep;
/**
* Returns true if the given object is an instance of Sleep. 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 Sleep;
/**
* [Time duration](https://golang.org/pkg/time/#ParseDuration) to delay resource creation. For example, `30s` for 30
* seconds or `5m` for 5 minutes. Updating this value by itself will not trigger a delay.
*/
readonly createDuration: pulumi.Output<string | undefined>;
readonly destroyDuration: pulumi.Output<string | undefined>;
/**
* (Optional) Arbitrary map of values that, when changed, will run any creation or destroy delays again. See the main
* provider documentation for more information.
*/
readonly triggers: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* Create a Sleep 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?: SleepArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Sleep resources.
*/
export interface SleepState {
/**
* [Time duration](https://golang.org/pkg/time/#ParseDuration) to delay resource creation. For example, `30s` for 30
* seconds or `5m` for 5 minutes. Updating this value by itself will not trigger a delay.
*/
createDuration?: pulumi.Input<string>;
destroyDuration?: pulumi.Input<string>;
/**
* (Optional) Arbitrary map of values that, when changed, will run any creation or destroy delays again. See the main
* provider documentation for more information.
*/
triggers?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
}
/**
* The set of arguments for constructing a Sleep resource.
*/
export interface SleepArgs {
/**
* [Time duration](https://golang.org/pkg/time/#ParseDuration) to delay resource creation. For example, `30s` for 30
* seconds or `5m` for 5 minutes. Updating this value by itself will not trigger a delay.
*/
createDuration?: pulumi.Input<string>;
destroyDuration?: pulumi.Input<string>;
/**
* (Optional) Arbitrary map of values that, when changed, will run any creation or destroy delays again. See the main
* provider documentation for more information.
*/
triggers?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
}