@pulumi/datadog 4.63.0-alpha.1768973818 → 4.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cloudInventorySyncConfig.d.ts +139 -0
- package/cloudInventorySyncConfig.js +111 -0
- package/cloudInventorySyncConfig.js.map +1 -0
- package/gcp/integrationSts.d.ts +24 -0
- package/gcp/integrationSts.js +4 -0
- package/gcp/integrationSts.js.map +1 -1
- package/getOrganizationSettings.d.ts +54 -0
- package/getOrganizationSettings.js +30 -0
- package/getOrganizationSettings.js.map +1 -0
- package/getServiceLevelObjective.d.ts +4 -0
- package/getServiceLevelObjective.js.map +1 -1
- package/getTeamNotificationRule.d.ts +128 -0
- package/getTeamNotificationRule.js +64 -0
- package/getTeamNotificationRule.js.map +1 -0
- package/getTeamNotificationRules.d.ts +78 -0
- package/getTeamNotificationRules.js +54 -0
- package/getTeamNotificationRules.js.map +1 -0
- package/index.d.ts +21 -0
- package/index.js +34 -5
- package/index.js.map +1 -1
- package/metricTagConfiguration.d.ts +9 -13
- package/metricTagConfiguration.js +0 -10
- package/metricTagConfiguration.js.map +1 -1
- package/onCallUserNotificationChannel.d.ts +59 -0
- package/onCallUserNotificationChannel.js +59 -0
- package/onCallUserNotificationChannel.js.map +1 -0
- package/onCallUserNotificationRule.d.ts +92 -0
- package/onCallUserNotificationRule.js +72 -0
- package/onCallUserNotificationRule.js.map +1 -0
- package/package.json +2 -2
- package/powerpack.d.ts +3 -3
- package/syntheticsGlobalVariable.d.ts +30 -21
- package/syntheticsGlobalVariable.js +5 -19
- package/syntheticsGlobalVariable.js.map +1 -1
- package/teamNotificationRule.d.ts +141 -0
- package/teamNotificationRule.js +103 -0
- package/teamNotificationRule.js.map +1 -0
- package/types/input.d.ts +865 -7
- package/types/output.d.ts +717 -7
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.TeamNotificationRule = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a Datadog team notification rule resource. This can be used to create and manage notification rules for Datadog teams.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as datadog from "@pulumi/datadog";
|
|
16
|
+
*
|
|
17
|
+
* // Create new team-notification-rule resource
|
|
18
|
+
* const foo = new datadog.Team("foo", {
|
|
19
|
+
* description: "Example team",
|
|
20
|
+
* handle: "example-team",
|
|
21
|
+
* name: "Example Team",
|
|
22
|
+
* });
|
|
23
|
+
* const fooTeamNotificationRule = new datadog.TeamNotificationRule("foo", {
|
|
24
|
+
* teamId: foo.id,
|
|
25
|
+
* email: [{
|
|
26
|
+
* enabled: true,
|
|
27
|
+
* }],
|
|
28
|
+
* msTeams: [{
|
|
29
|
+
* connectorName: "test-teams-handle",
|
|
30
|
+
* }],
|
|
31
|
+
* pagerduty: [{
|
|
32
|
+
* serviceName: "my-service",
|
|
33
|
+
* }],
|
|
34
|
+
* slack: [{
|
|
35
|
+
* channel: "#test-channel",
|
|
36
|
+
* workspace: "Datadog",
|
|
37
|
+
* }],
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* ## Import
|
|
42
|
+
*
|
|
43
|
+
* The `pulumi import` command can be used, for example:
|
|
44
|
+
*
|
|
45
|
+
* This resource is imported using team_id and rule_id separated by `:`.
|
|
46
|
+
*
|
|
47
|
+
* ```sh
|
|
48
|
+
* $ pulumi import datadog:index/teamNotificationRule:TeamNotificationRule foo "${team_id}:${rule_id}"
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
class TeamNotificationRule extends pulumi.CustomResource {
|
|
52
|
+
/**
|
|
53
|
+
* Get an existing TeamNotificationRule resource's state with the given name, ID, and optional extra
|
|
54
|
+
* properties used to qualify the lookup.
|
|
55
|
+
*
|
|
56
|
+
* @param name The _unique_ name of the resulting resource.
|
|
57
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
58
|
+
* @param state Any extra arguments used during the lookup.
|
|
59
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
60
|
+
*/
|
|
61
|
+
static get(name, id, state, opts) {
|
|
62
|
+
return new TeamNotificationRule(name, state, { ...opts, id: id });
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Returns true if the given object is an instance of TeamNotificationRule. This is designed to work even
|
|
66
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
67
|
+
*/
|
|
68
|
+
static isInstance(obj) {
|
|
69
|
+
if (obj === undefined || obj === null) {
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
return obj['__pulumiType'] === TeamNotificationRule.__pulumiType;
|
|
73
|
+
}
|
|
74
|
+
constructor(name, argsOrState, opts) {
|
|
75
|
+
let resourceInputs = {};
|
|
76
|
+
opts = opts || {};
|
|
77
|
+
if (opts.id) {
|
|
78
|
+
const state = argsOrState;
|
|
79
|
+
resourceInputs["email"] = state?.email;
|
|
80
|
+
resourceInputs["msTeams"] = state?.msTeams;
|
|
81
|
+
resourceInputs["pagerduty"] = state?.pagerduty;
|
|
82
|
+
resourceInputs["slack"] = state?.slack;
|
|
83
|
+
resourceInputs["teamId"] = state?.teamId;
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
const args = argsOrState;
|
|
87
|
+
if (args?.teamId === undefined && !opts.urn) {
|
|
88
|
+
throw new Error("Missing required property 'teamId'");
|
|
89
|
+
}
|
|
90
|
+
resourceInputs["email"] = args?.email;
|
|
91
|
+
resourceInputs["msTeams"] = args?.msTeams;
|
|
92
|
+
resourceInputs["pagerduty"] = args?.pagerduty;
|
|
93
|
+
resourceInputs["slack"] = args?.slack;
|
|
94
|
+
resourceInputs["teamId"] = args?.teamId;
|
|
95
|
+
}
|
|
96
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
97
|
+
super(TeamNotificationRule.__pulumiType, name, resourceInputs, opts);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.TeamNotificationRule = TeamNotificationRule;
|
|
101
|
+
/** @internal */
|
|
102
|
+
TeamNotificationRule.__pulumiType = 'datadog:index/teamNotificationRule:TeamNotificationRule';
|
|
103
|
+
//# sourceMappingURL=teamNotificationRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teamNotificationRule.js","sourceRoot":"","sources":["../teamNotificationRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,oBAAoB,CAAC,YAAY,CAAC;IACrE,CAAC;IA+BD,YAAY,IAAY,EAAE,WAAkE,EAAE,IAAmC;QAC7H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,I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