UNPKG

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.

222 lines (221 loc) 10.7 kB
import * as pulumi from "@pulumi/pulumi"; export declare class Rotating extends pulumi.CustomResource { /** * Get an existing Rotating 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?: RotatingState, opts?: pulumi.CustomResourceOptions): Rotating; /** * Returns true if the given object is an instance of Rotating. 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 Rotating; /** * Number day of timestamp. */ readonly day: pulumi.Output<number>; /** * Number hour of timestamp. */ readonly hour: pulumi.Output<number>; /** * Number minute of timestamp. */ readonly minute: pulumi.Output<number>; /** * Number month of timestamp. */ readonly month: pulumi.Output<number>; /** * Base timestamp in [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.8) format (see [RFC3339 time * string](https://tools.ietf.org/html/rfc3339#section-5.8) e.g., `YYYY-MM-DDTHH:MM:SSZ`). Defaults to the current time. */ readonly rfc3339: pulumi.Output<string>; /** * Number of days to add to the base timestamp to configure the rotation timestamp. When the current time has passed the * rotation timestamp, the resource will trigger recreation. At least one of the 'rotation_' arguments must be configured. */ readonly rotationDays: pulumi.Output<number | undefined>; /** * Number of hours to add to the base timestamp to configure the rotation timestamp. When the current time has passed the * rotation timestamp, the resource will trigger recreation. At least one of the 'rotation_' arguments must be configured. */ readonly rotationHours: pulumi.Output<number | undefined>; /** * Number of minutes to add to the base timestamp to configure the rotation timestamp. When the current time has passed the * rotation timestamp, the resource will trigger recreation. At least one of the 'rotation_' arguments must be configured. */ readonly rotationMinutes: pulumi.Output<number | undefined>; /** * Number of months to add to the base timestamp to configure the rotation timestamp. When the current time has passed the * rotation timestamp, the resource will trigger recreation. At least one of the 'rotation_' arguments must be configured. */ readonly rotationMonths: pulumi.Output<number | undefined>; /** * Configure the rotation timestamp with an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.8) format of * the offset timestamp. When the current time has passed the rotation timestamp, the resource will trigger recreation. At * least one of the 'rotation_' arguments must be configured. */ readonly rotationRfc3339: pulumi.Output<string>; /** * Number of years to add to the base timestamp to configure the rotation timestamp. When the current time has passed the * rotation timestamp, the resource will trigger recreation. At least one of the 'rotation_' arguments must be configured. */ readonly rotationYears: pulumi.Output<number | undefined>; /** * Number second of timestamp. */ readonly second: pulumi.Output<number>; /** * Arbitrary map of values that, when changed, will trigger a new base timestamp value to be saved. These conditions * recreate the resource in addition to other rotation arguments. See the main provider documentation for more information. */ readonly triggers: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Number of seconds since epoch time, e.g. `1581489373`. */ readonly unix: pulumi.Output<number>; /** * Number year of timestamp. */ readonly year: pulumi.Output<number>; /** * Create a Rotating 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?: RotatingArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Rotating resources. */ export interface RotatingState { /** * Number day of timestamp. */ day?: pulumi.Input<number>; /** * Number hour of timestamp. */ hour?: pulumi.Input<number>; /** * Number minute of timestamp. */ minute?: pulumi.Input<number>; /** * Number month of timestamp. */ month?: pulumi.Input<number>; /** * Base timestamp in [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.8) format (see [RFC3339 time * string](https://tools.ietf.org/html/rfc3339#section-5.8) e.g., `YYYY-MM-DDTHH:MM:SSZ`). Defaults to the current time. */ rfc3339?: pulumi.Input<string>; /** * Number of days to add to the base timestamp to configure the rotation timestamp. When the current time has passed the * rotation timestamp, the resource will trigger recreation. At least one of the 'rotation_' arguments must be configured. */ rotationDays?: pulumi.Input<number>; /** * Number of hours to add to the base timestamp to configure the rotation timestamp. When the current time has passed the * rotation timestamp, the resource will trigger recreation. At least one of the 'rotation_' arguments must be configured. */ rotationHours?: pulumi.Input<number>; /** * Number of minutes to add to the base timestamp to configure the rotation timestamp. When the current time has passed the * rotation timestamp, the resource will trigger recreation. At least one of the 'rotation_' arguments must be configured. */ rotationMinutes?: pulumi.Input<number>; /** * Number of months to add to the base timestamp to configure the rotation timestamp. When the current time has passed the * rotation timestamp, the resource will trigger recreation. At least one of the 'rotation_' arguments must be configured. */ rotationMonths?: pulumi.Input<number>; /** * Configure the rotation timestamp with an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.8) format of * the offset timestamp. When the current time has passed the rotation timestamp, the resource will trigger recreation. At * least one of the 'rotation_' arguments must be configured. */ rotationRfc3339?: pulumi.Input<string>; /** * Number of years to add to the base timestamp to configure the rotation timestamp. When the current time has passed the * rotation timestamp, the resource will trigger recreation. At least one of the 'rotation_' arguments must be configured. */ rotationYears?: pulumi.Input<number>; /** * Number second of timestamp. */ second?: pulumi.Input<number>; /** * Arbitrary map of values that, when changed, will trigger a new base timestamp value to be saved. These conditions * recreate the resource in addition to other rotation arguments. See the main provider documentation for more information. */ triggers?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * Number of seconds since epoch time, e.g. `1581489373`. */ unix?: pulumi.Input<number>; /** * Number year of timestamp. */ year?: pulumi.Input<number>; } /** * The set of arguments for constructing a Rotating resource. */ export interface RotatingArgs { /** * Base timestamp in [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.8) format (see [RFC3339 time * string](https://tools.ietf.org/html/rfc3339#section-5.8) e.g., `YYYY-MM-DDTHH:MM:SSZ`). Defaults to the current time. */ rfc3339?: pulumi.Input<string>; /** * Number of days to add to the base timestamp to configure the rotation timestamp. When the current time has passed the * rotation timestamp, the resource will trigger recreation. At least one of the 'rotation_' arguments must be configured. */ rotationDays?: pulumi.Input<number>; /** * Number of hours to add to the base timestamp to configure the rotation timestamp. When the current time has passed the * rotation timestamp, the resource will trigger recreation. At least one of the 'rotation_' arguments must be configured. */ rotationHours?: pulumi.Input<number>; /** * Number of minutes to add to the base timestamp to configure the rotation timestamp. When the current time has passed the * rotation timestamp, the resource will trigger recreation. At least one of the 'rotation_' arguments must be configured. */ rotationMinutes?: pulumi.Input<number>; /** * Number of months to add to the base timestamp to configure the rotation timestamp. When the current time has passed the * rotation timestamp, the resource will trigger recreation. At least one of the 'rotation_' arguments must be configured. */ rotationMonths?: pulumi.Input<number>; /** * Configure the rotation timestamp with an [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.8) format of * the offset timestamp. When the current time has passed the rotation timestamp, the resource will trigger recreation. At * least one of the 'rotation_' arguments must be configured. */ rotationRfc3339?: pulumi.Input<string>; /** * Number of years to add to the base timestamp to configure the rotation timestamp. When the current time has passed the * rotation timestamp, the resource will trigger recreation. At least one of the 'rotation_' arguments must be configured. */ rotationYears?: pulumi.Input<number>; /** * Arbitrary map of values that, when changed, will trigger a new base timestamp value to be saved. These conditions * recreate the resource in addition to other rotation arguments. See the main provider documentation for more information. */ triggers?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; }