@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
192 lines (191 loc) • 6.75 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* !> This resource API endpoint has been deprecated, please use dynatrace.Maintenance instead.
*
* > This resource requires the API token scopes **Read configuration** (`ReadConfig`) and **Write configuration** (`WriteConfig`)
*
* ## Dynatrace Documentation
*
* - Maintenance windows - https://www.dynatrace.com/support/help/how-to-use-dynatrace/problem-detection-and-analysis/notifications-and-alerting/maintenance-windows
*
* - Maintenance windows API - https://www.dynatrace.com/support/help/dynatrace-api/configuration-api/maintenance-windows-api
*
* ## Resource Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dynatrace from "@pulumiverse/dynatrace";
*
* const _name_ = new dynatrace.MaintenanceWindow("#name#", {
* schedule: {
* end: "2021-05-11 14:41",
* recurrenceType: "ONCE",
* start: "2021-05-11 13:41",
* zoneId: "Europe/Vienna",
* },
* scope: {
* matches: [{
* tagCombination: "AND",
* tags: [
* {
* context: "CONTEXTLESS",
* key: "bggtedgxen",
* },
* {
* context: "CONTEXTLESS",
* key: "deldel1",
* },
* ],
* }],
* },
* suppressSynthMonExec: true,
* suppression: "DONT_DETECT_PROBLEMS",
* type: "PLANNED",
* });
* ```
*/
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;
/**
* A short description of the maintenance purpose
*/
readonly description: pulumi.Output<string | undefined>;
/**
* The Maintenance Window is enabled or disabled
*/
readonly enabled: pulumi.Output<boolean | undefined>;
/**
* The name of the maintenance window, displayed in the UI
*/
readonly name: pulumi.Output<string>;
/**
* The schedule of the maintenance window
*/
readonly schedule: pulumi.Output<outputs.MaintenanceWindowSchedule | undefined>;
/**
* the tiles this Dashboard consist of
*/
readonly scope: pulumi.Output<outputs.MaintenanceWindowScope | undefined>;
/**
* Suppress execution of synthetic monitors during the maintenance
*/
readonly suppressSynthMonExec: pulumi.Output<boolean | undefined>;
/**
* The type of suppression of alerting and problem detection during the maintenance
*/
readonly suppression: pulumi.Output<string>;
/**
* The type of the maintenance: planned or unplanned
*/
readonly type: pulumi.Output<string>;
/**
* allows for configuring properties that are not explicitly supported by the current version of this provider
*/
readonly unknowns: pulumi.Output<string | undefined>;
/**
* 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 {
/**
* A short description of the maintenance purpose
*/
description?: pulumi.Input<string>;
/**
* The Maintenance Window is enabled or disabled
*/
enabled?: pulumi.Input<boolean>;
/**
* The name of the maintenance window, displayed in the UI
*/
name?: pulumi.Input<string>;
/**
* The schedule of the maintenance window
*/
schedule?: pulumi.Input<inputs.MaintenanceWindowSchedule>;
/**
* the tiles this Dashboard consist of
*/
scope?: pulumi.Input<inputs.MaintenanceWindowScope>;
/**
* Suppress execution of synthetic monitors during the maintenance
*/
suppressSynthMonExec?: pulumi.Input<boolean>;
/**
* The type of suppression of alerting and problem detection during the maintenance
*/
suppression?: pulumi.Input<string>;
/**
* The type of the maintenance: planned or unplanned
*/
type?: pulumi.Input<string>;
/**
* allows for configuring properties that are not explicitly supported by the current version of this provider
*/
unknowns?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a MaintenanceWindow resource.
*/
export interface MaintenanceWindowArgs {
/**
* A short description of the maintenance purpose
*/
description?: pulumi.Input<string>;
/**
* The Maintenance Window is enabled or disabled
*/
enabled?: pulumi.Input<boolean>;
/**
* The name of the maintenance window, displayed in the UI
*/
name?: pulumi.Input<string>;
/**
* The schedule of the maintenance window
*/
schedule?: pulumi.Input<inputs.MaintenanceWindowSchedule>;
/**
* the tiles this Dashboard consist of
*/
scope?: pulumi.Input<inputs.MaintenanceWindowScope>;
/**
* Suppress execution of synthetic monitors during the maintenance
*/
suppressSynthMonExec?: pulumi.Input<boolean>;
/**
* The type of suppression of alerting and problem detection during the maintenance
*/
suppression: pulumi.Input<string>;
/**
* The type of the maintenance: planned or unplanned
*/
type: pulumi.Input<string>;
/**
* allows for configuring properties that are not explicitly supported by the current version of this provider
*/
unknowns?: pulumi.Input<string>;
}