@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
724 lines (723 loc) • 22.9 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* > **Dynatrace SaaS only**
*
* > To utilize this resource, please define the environment variables `DT_CLIENT_ID`, `DT_CLIENT_SECRET`, `DT_ACCOUNT_ID` with an OAuth client including the following permissions: **View calendars** (`automation:calendars:read`) and **Create and edit calendars** (`automation:calendars:write`).
*
* > This resource is excluded by default in the export utility, please explicitly specify the resource to retrieve existing configuration.
*
* ## Dynatrace Documentation
*
* - Dynatrace Workflows - https://www.dynatrace.com/support/help/platform-modules/cloud-automation/workflows
*
* ## Resource Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dynatrace from "@pulumiverse/dynatrace";
*
* const _name_ = new dynatrace.AutomationBusinessCalendar("#name#", {
* description: "#name#",
* holidays: {
* holidays: [
* {
* date: "2023-08-15",
* title: "Mariä Himmelfahrt",
* },
* {
* date: "2023-10-26",
* title: "Nationalfeiertag",
* },
* {
* date: "2023-11-01",
* title: "Allerheiligen",
* },
* {
* date: "2023-12-08",
* title: "Mariä Empfängnis",
* },
* {
* date: "2023-12-25",
* title: "Christtag",
* },
* {
* date: "2023-12-26",
* title: "Stefanitag",
* },
* {
* date: "2024-01-01",
* title: "Neujahr",
* },
* {
* date: "2024-01-06",
* title: "Heilige Drei Könige",
* },
* {
* date: "2024-04-01",
* title: "Ostermontag",
* },
* {
* date: "2024-05-01",
* title: "Staatsfeiertag",
* },
* {
* date: "2024-05-09",
* title: "Christi Himmelfahrt",
* },
* {
* date: "2024-05-20",
* title: "Pfingstmontag",
* },
* {
* date: "2024-05-30",
* title: "Fronleichnam",
* },
* {
* date: "2024-08-15",
* title: "Mariä Himmelfahrt",
* },
* {
* date: "2024-10-26",
* title: "Nationalfeiertag",
* },
* {
* date: "2024-11-01",
* title: "Allerheiligen",
* },
* {
* date: "2024-12-08",
* title: "Mariä Empfängnis",
* },
* {
* date: "2024-12-25",
* title: "Christtag",
* },
* {
* date: "2024-12-26",
* title: "Stefanitag",
* },
* {
* date: "2025-01-01",
* title: "Neujahr",
* },
* {
* date: "2025-01-06",
* title: "Heilige Drei Könige",
* },
* {
* date: "2025-04-21",
* title: "Ostermontag",
* },
* {
* date: "2025-05-01",
* title: "Staatsfeiertag",
* },
* {
* date: "2025-05-29",
* title: "Christi Himmelfahrt",
* },
* {
* date: "2025-06-09",
* title: "Pfingstmontag",
* },
* {
* date: "2025-06-19",
* title: "Fronleichnam",
* },
* {
* date: "2025-08-15",
* title: "Mariä Himmelfahrt",
* },
* {
* date: "2025-10-26",
* title: "Nationalfeiertag",
* },
* {
* date: "2025-11-01",
* title: "Allerheiligen",
* },
* {
* date: "2025-12-08",
* title: "Mariä Empfängnis",
* },
* {
* date: "2025-12-25",
* title: "Christtag",
* },
* {
* date: "2025-12-26",
* title: "Stefanitag",
* },
* {
* date: "2026-01-01",
* title: "Neujahr",
* },
* {
* date: "2026-01-06",
* title: "Heilige Drei Könige",
* },
* {
* date: "2026-04-06",
* title: "Ostermontag",
* },
* {
* date: "2026-05-01",
* title: "Staatsfeiertag",
* },
* {
* date: "2026-05-14",
* title: "Christi Himmelfahrt",
* },
* {
* date: "2026-05-25",
* title: "Pfingstmontag",
* },
* {
* date: "2026-06-04",
* title: "Fronleichnam",
* },
* {
* date: "2026-08-15",
* title: "Mariä Himmelfahrt",
* },
* {
* date: "2026-10-26",
* title: "Nationalfeiertag",
* },
* {
* date: "2026-11-01",
* title: "Allerheiligen",
* },
* {
* date: "2026-12-08",
* title: "Mariä Empfängnis",
* },
* {
* date: "2026-12-25",
* title: "Christtag",
* },
* {
* date: "2026-12-26",
* title: "Stefanitag",
* },
* {
* date: "2027-01-01",
* title: "Neujahr",
* },
* {
* date: "2027-01-06",
* title: "Heilige Drei Könige",
* },
* {
* date: "2027-03-29",
* title: "Ostermontag",
* },
* {
* date: "2027-05-01",
* title: "Staatsfeiertag",
* },
* {
* date: "2027-05-06",
* title: "Christi Himmelfahrt",
* },
* {
* date: "2027-05-17",
* title: "Pfingstmontag",
* },
* {
* date: "2027-05-27",
* title: "Fronleichnam",
* },
* {
* date: "2027-08-15",
* title: "Mariä Himmelfahrt",
* },
* {
* date: "2027-10-26",
* title: "Nationalfeiertag",
* },
* {
* date: "2027-11-01",
* title: "Allerheiligen",
* },
* {
* date: "2027-12-08",
* title: "Mariä Empfängnis",
* },
* {
* date: "2027-12-25",
* title: "Christtag",
* },
* {
* date: "2027-12-26",
* title: "Stefanitag",
* },
* {
* date: "2028-01-01",
* title: "Neujahr",
* },
* {
* date: "2028-01-06",
* title: "Heilige Drei Könige",
* },
* {
* date: "2028-04-17",
* title: "Ostermontag",
* },
* {
* date: "2028-05-01",
* title: "Staatsfeiertag",
* },
* {
* date: "2028-05-25",
* title: "Christi Himmelfahrt",
* },
* {
* date: "2028-06-05",
* title: "Pfingstmontag",
* },
* {
* date: "2028-06-15",
* title: "Fronleichnam",
* },
* {
* date: "2028-08-15",
* title: "Mariä Himmelfahrt",
* },
* {
* date: "2028-10-26",
* title: "Nationalfeiertag",
* },
* {
* date: "2028-11-01",
* title: "Allerheiligen",
* },
* {
* date: "2028-12-08",
* title: "Mariä Empfängnis",
* },
* {
* date: "2028-12-25",
* title: "Christtag",
* },
* {
* date: "2028-12-26",
* title: "Stefanitag",
* },
* {
* date: "2029-01-01",
* title: "Neujahr",
* },
* {
* date: "2029-01-06",
* title: "Heilige Drei Könige",
* },
* {
* date: "2029-04-02",
* title: "Ostermontag",
* },
* {
* date: "2029-05-01",
* title: "Staatsfeiertag",
* },
* {
* date: "2029-05-10",
* title: "Christi Himmelfahrt",
* },
* {
* date: "2029-05-21",
* title: "Pfingstmontag",
* },
* {
* date: "2029-05-31",
* title: "Fronleichnam",
* },
* {
* date: "2029-08-15",
* title: "Mariä Himmelfahrt",
* },
* {
* date: "2029-10-26",
* title: "Nationalfeiertag",
* },
* {
* date: "2029-11-01",
* title: "Allerheiligen",
* },
* {
* date: "2029-12-08",
* title: "Mariä Empfängnis",
* },
* {
* date: "2029-12-25",
* title: "Christtag",
* },
* {
* date: "2029-12-26",
* title: "Stefanitag",
* },
* {
* date: "2030-01-01",
* title: "Neujahr",
* },
* {
* date: "2030-01-06",
* title: "Heilige Drei Könige",
* },
* {
* date: "2030-04-22",
* title: "Ostermontag",
* },
* {
* date: "2030-05-01",
* title: "Staatsfeiertag",
* },
* {
* date: "2030-05-30",
* title: "Christi Himmelfahrt",
* },
* {
* date: "2030-06-10",
* title: "Pfingstmontag",
* },
* {
* date: "2030-06-20",
* title: "Fronleichnam",
* },
* {
* date: "2030-08-15",
* title: "Mariä Himmelfahrt",
* },
* {
* date: "2030-10-26",
* title: "Nationalfeiertag",
* },
* {
* date: "2030-11-01",
* title: "Allerheiligen",
* },
* {
* date: "2030-12-08",
* title: "Mariä Empfängnis",
* },
* {
* date: "2030-12-25",
* title: "Christtag",
* },
* {
* date: "2030-12-26",
* title: "Stefanitag",
* },
* {
* date: "2031-01-01",
* title: "Neujahr",
* },
* {
* date: "2031-01-06",
* title: "Heilige Drei Könige",
* },
* {
* date: "2031-04-14",
* title: "Ostermontag",
* },
* {
* date: "2031-05-01",
* title: "Staatsfeiertag",
* },
* {
* date: "2031-05-22",
* title: "Christi Himmelfahrt",
* },
* {
* date: "2031-06-02",
* title: "Pfingstmontag",
* },
* {
* date: "2031-06-12",
* title: "Fronleichnam",
* },
* {
* date: "2031-08-15",
* title: "Mariä Himmelfahrt",
* },
* {
* date: "2031-10-26",
* title: "Nationalfeiertag",
* },
* {
* date: "2031-11-01",
* title: "Allerheiligen",
* },
* {
* date: "2031-12-08",
* title: "Mariä Empfängnis",
* },
* {
* date: "2031-12-25",
* title: "Christtag",
* },
* {
* date: "2031-12-26",
* title: "Stefanitag",
* },
* {
* date: "2032-01-01",
* title: "Neujahr",
* },
* {
* date: "2032-01-06",
* title: "Heilige Drei Könige",
* },
* {
* date: "2032-03-29",
* title: "Ostermontag",
* },
* {
* date: "2032-05-01",
* title: "Staatsfeiertag",
* },
* {
* date: "2032-05-06",
* title: "Christi Himmelfahrt",
* },
* {
* date: "2032-05-17",
* title: "Pfingstmontag",
* },
* {
* date: "2032-05-27",
* title: "Fronleichnam",
* },
* {
* date: "2032-08-15",
* title: "Mariä Himmelfahrt",
* },
* {
* date: "2032-10-26",
* title: "Nationalfeiertag",
* },
* {
* date: "2032-11-01",
* title: "Allerheiligen",
* },
* {
* date: "2032-12-08",
* title: "Mariä Empfängnis",
* },
* {
* date: "2032-12-25",
* title: "Christtag",
* },
* {
* date: "2032-12-26",
* title: "Stefanitag",
* },
* {
* date: "2033-01-01",
* title: "Neujahr",
* },
* {
* date: "2033-01-06",
* title: "Heilige Drei Könige",
* },
* {
* date: "2033-04-18",
* title: "Ostermontag",
* },
* {
* date: "2033-05-01",
* title: "Staatsfeiertag",
* },
* {
* date: "2033-05-26",
* title: "Christi Himmelfahrt",
* },
* {
* date: "2033-06-06",
* title: "Pfingstmontag",
* },
* {
* date: "2033-06-16",
* title: "Fronleichnam",
* },
* {
* date: "2023-07-31",
* title: "Reini Day",
* },
* {
* date: "2024-07-31",
* title: "Reini Day",
* },
* {
* date: "2025-07-31",
* title: "Reini Day",
* },
* {
* date: "2026-07-31",
* title: "Reini Day",
* },
* {
* date: "2027-07-31",
* title: "Reini Day",
* },
* {
* date: "2028-07-31",
* title: "Reini Day",
* },
* {
* date: "2029-07-31",
* title: "Reini Day",
* },
* {
* date: "2030-07-31",
* title: "Reini Day",
* },
* {
* date: "2031-07-31",
* title: "Reini Day",
* },
* {
* date: "2032-07-31",
* title: "Reini Day",
* },
* {
* date: "2033-07-31",
* title: "Reini Day",
* },
* ],
* },
* title: "#name#",
* validFrom: "2023-07-31",
* validTo: "2033-07-31",
* weekDays: [
* 1,
* 2,
* 3,
* 4,
* 5,
* ],
* weekStart: 1,
* });
* ```
*/
export declare class AutomationBusinessCalendar extends pulumi.CustomResource {
/**
* Get an existing AutomationBusinessCalendar 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?: AutomationBusinessCalendarState, opts?: pulumi.CustomResourceOptions): AutomationBusinessCalendar;
/**
* Returns true if the given object is an instance of AutomationBusinessCalendar. 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 AutomationBusinessCalendar;
/**
* An optional description for the Business Calendar
*/
readonly description: pulumi.Output<string | undefined>;
/**
* A list of holidays valid in this calendar
*/
readonly holidays: pulumi.Output<outputs.AutomationBusinessCalendarHolidays | undefined>;
/**
* The title / name of the Business Calendar
*/
readonly title: pulumi.Output<string>;
/**
* The date from when on this calendar is valid from. Example: `2023-07-04` for July 4th 2023
*/
readonly validFrom: pulumi.Output<string | undefined>;
/**
* The date until when on this calendar is valid to. Example: `2023-07-04` for July 4th 2023
*/
readonly validTo: pulumi.Output<string | undefined>;
/**
* The days to be considered week days in this calendar. `1' =`Monday`,`2`=`Tuesday`,`3`=`Wednesday`,`4`=`Thursday`,`5`=`Friday`,`6`=`Saturday`,`7`=`Sunday`
*/
readonly weekDays: pulumi.Output<number[] | undefined>;
/**
* Specifies the day of the week that's considered to be the first day in the week. `1` for Monday, `7` for Sunday
*/
readonly weekStart: pulumi.Output<number | undefined>;
/**
* Create a AutomationBusinessCalendar 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: AutomationBusinessCalendarArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering AutomationBusinessCalendar resources.
*/
export interface AutomationBusinessCalendarState {
/**
* An optional description for the Business Calendar
*/
description?: pulumi.Input<string>;
/**
* A list of holidays valid in this calendar
*/
holidays?: pulumi.Input<inputs.AutomationBusinessCalendarHolidays>;
/**
* The title / name of the Business Calendar
*/
title?: pulumi.Input<string>;
/**
* The date from when on this calendar is valid from. Example: `2023-07-04` for July 4th 2023
*/
validFrom?: pulumi.Input<string>;
/**
* The date until when on this calendar is valid to. Example: `2023-07-04` for July 4th 2023
*/
validTo?: pulumi.Input<string>;
/**
* The days to be considered week days in this calendar. `1' =`Monday`,`2`=`Tuesday`,`3`=`Wednesday`,`4`=`Thursday`,`5`=`Friday`,`6`=`Saturday`,`7`=`Sunday`
*/
weekDays?: pulumi.Input<pulumi.Input<number>[]>;
/**
* Specifies the day of the week that's considered to be the first day in the week. `1` for Monday, `7` for Sunday
*/
weekStart?: pulumi.Input<number>;
}
/**
* The set of arguments for constructing a AutomationBusinessCalendar resource.
*/
export interface AutomationBusinessCalendarArgs {
/**
* An optional description for the Business Calendar
*/
description?: pulumi.Input<string>;
/**
* A list of holidays valid in this calendar
*/
holidays?: pulumi.Input<inputs.AutomationBusinessCalendarHolidays>;
/**
* The title / name of the Business Calendar
*/
title: pulumi.Input<string>;
/**
* The date from when on this calendar is valid from. Example: `2023-07-04` for July 4th 2023
*/
validFrom?: pulumi.Input<string>;
/**
* The date until when on this calendar is valid to. Example: `2023-07-04` for July 4th 2023
*/
validTo?: pulumi.Input<string>;
/**
* The days to be considered week days in this calendar. `1' =`Monday`,`2`=`Tuesday`,`3`=`Wednesday`,`4`=`Thursday`,`5`=`Friday`,`6`=`Saturday`,`7`=`Sunday`
*/
weekDays?: pulumi.Input<pulumi.Input<number>[]>;
/**
* Specifies the day of the week that's considered to be the first day in the week. `1` for Monday, `7` for Sunday
*/
weekStart?: pulumi.Input<number>;
}