@pulumi/opsgenie
Version:
A Pulumi package for creating and managing opsgenie cloud resources.
108 lines (107 loc) • 3.63 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages a Schedule within Opsgenie.
*
* ## Import
*
* Schedule can be imported using the `schedule_id`, e.g.
*
* ```sh
* $ pulumi import opsgenie:index/schedule:Schedule test schedule_id`
* ```
*/
export declare class Schedule extends pulumi.CustomResource {
/**
* Get an existing Schedule 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?: ScheduleState, opts?: pulumi.CustomResourceOptions): Schedule;
/**
* Returns true if the given object is an instance of Schedule. 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 Schedule;
/**
* The description of schedule.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* Enable/disable state of schedule
*/
readonly enabled: pulumi.Output<boolean | undefined>;
/**
* Name of the schedule.
*/
readonly name: pulumi.Output<string>;
/**
* Owner team id of the schedule.
*/
readonly ownerTeamId: pulumi.Output<string | undefined>;
/**
* Timezone of schedule. Please look at [Supported Timezone Ids](https://docs.opsgenie.com/docs/supported-timezone-ids) for available timezones - Default: `America/New_York`.
*/
readonly timezone: pulumi.Output<string | undefined>;
/**
* Create a Schedule 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?: ScheduleArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Schedule resources.
*/
export interface ScheduleState {
/**
* The description of schedule.
*/
description?: pulumi.Input<string>;
/**
* Enable/disable state of schedule
*/
enabled?: pulumi.Input<boolean>;
/**
* Name of the schedule.
*/
name?: pulumi.Input<string>;
/**
* Owner team id of the schedule.
*/
ownerTeamId?: pulumi.Input<string>;
/**
* Timezone of schedule. Please look at [Supported Timezone Ids](https://docs.opsgenie.com/docs/supported-timezone-ids) for available timezones - Default: `America/New_York`.
*/
timezone?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Schedule resource.
*/
export interface ScheduleArgs {
/**
* The description of schedule.
*/
description?: pulumi.Input<string>;
/**
* Enable/disable state of schedule
*/
enabled?: pulumi.Input<boolean>;
/**
* Name of the schedule.
*/
name?: pulumi.Input<string>;
/**
* Owner team id of the schedule.
*/
ownerTeamId?: pulumi.Input<string>;
/**
* Timezone of schedule. Please look at [Supported Timezone Ids](https://docs.opsgenie.com/docs/supported-timezone-ids) for available timezones - Default: `America/New_York`.
*/
timezone?: pulumi.Input<string>;
}