@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
665 lines • 21.1 kB
JavaScript
"use strict";
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.AutomationBusinessCalendar = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* > **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,
* });
* ```
*/
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, id, state, opts) {
return new AutomationBusinessCalendar(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* 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) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === AutomationBusinessCalendar.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["holidays"] = state ? state.holidays : undefined;
resourceInputs["title"] = state ? state.title : undefined;
resourceInputs["validFrom"] = state ? state.validFrom : undefined;
resourceInputs["validTo"] = state ? state.validTo : undefined;
resourceInputs["weekDays"] = state ? state.weekDays : undefined;
resourceInputs["weekStart"] = state ? state.weekStart : undefined;
}
else {
const args = argsOrState;
if ((!args || args.title === undefined) && !opts.urn) {
throw new Error("Missing required property 'title'");
}
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["holidays"] = args ? args.holidays : undefined;
resourceInputs["title"] = args ? args.title : undefined;
resourceInputs["validFrom"] = args ? args.validFrom : undefined;
resourceInputs["validTo"] = args ? args.validTo : undefined;
resourceInputs["weekDays"] = args ? args.weekDays : undefined;
resourceInputs["weekStart"] = args ? args.weekStart : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(AutomationBusinessCalendar.__pulumiType, name, resourceInputs, opts);
}
}
exports.AutomationBusinessCalendar = AutomationBusinessCalendar;
/** @internal */
AutomationBusinessCalendar.__pulumiType = 'dynatrace:index/automationBusinessCalendar:AutomationBusinessCalendar';
//# sourceMappingURL=automationBusinessCalendar.js.map