@pulumi/datadog 4.2.0 → 4.3.0-alpha.1635517906
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/dashboard.d.ts +6 -6
- package/dashboard.js +4 -7
- package/dashboard.js.map +1 -1
- package/dashboardJson.d.ts +2 -2
- package/dashboardJson.js +2 -2
- package/getMonitor.d.ts +8 -0
- package/getRoles.d.ts +43 -0
- package/getRoles.js +34 -0
- package/getRoles.js.map +1 -0
- package/index.d.ts +4 -0
- package/index.js +16 -0
- package/index.js.map +1 -1
- package/logsCustomPipeline.d.ts +1 -1
- package/logsCustomPipeline.js +1 -1
- package/logsIntegrationPipeline.d.ts +2 -0
- package/logsIntegrationPipeline.js +2 -0
- package/logsIntegrationPipeline.js.map +1 -1
- package/monitor.d.ts +24 -0
- package/monitor.js +4 -0
- package/monitor.js.map +1 -1
- package/monitorJson.d.ts +101 -0
- package/monitorJson.js +96 -0
- package/monitorJson.js.map +1 -0
- package/package.json +2 -2
- package/package.json.dev +1 -1
- package/securityMonitoringDefaultRule.d.ts +1 -2
- package/securityMonitoringDefaultRule.js +1 -2
- package/securityMonitoringDefaultRule.js.map +1 -1
- package/securityMonitoringRule.d.ts +12 -2
- package/securityMonitoringRule.js +2 -2
- package/securityMonitoringRule.js.map +1 -1
- package/syntheticsTest.d.ts +6 -6
- package/types/input.d.ts +279 -56
- package/types/output.d.ts +293 -77
- package/webhook.d.ts +125 -0
- package/webhook.js +93 -0
- package/webhook.js.map +1 -0
- package/webhookCustomVariable.d.ts +94 -0
- package/webhookCustomVariable.js +85 -0
- package/webhookCustomVariable.js.map +1 -0
package/webhook.d.ts
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a Datadog webhook resource. This can be used to create and manage Datadog webhooks.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as datadog from "@pulumi/datadog";
|
|
10
|
+
*
|
|
11
|
+
* // Create a new Datadog webhook
|
|
12
|
+
* const foo = new datadog.Webhook("foo", {
|
|
13
|
+
* name: "test-webhook",
|
|
14
|
+
* url: "example.com",
|
|
15
|
+
* encodeAs: "json",
|
|
16
|
+
* customHeaders: JSON.stringify({
|
|
17
|
+
* custom: "header",
|
|
18
|
+
* }),
|
|
19
|
+
* payload: JSON.stringify({
|
|
20
|
+
* custom: "payload",
|
|
21
|
+
* }),
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ## Import
|
|
26
|
+
*
|
|
27
|
+
* ```sh
|
|
28
|
+
* $ pulumi import datadog:index/webhook:Webhook foo example-webhook
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare class Webhook extends pulumi.CustomResource {
|
|
32
|
+
/**
|
|
33
|
+
* Get an existing Webhook resource's state with the given name, ID, and optional extra
|
|
34
|
+
* properties used to qualify the lookup.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resulting resource.
|
|
37
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
38
|
+
* @param state Any extra arguments used during the lookup.
|
|
39
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
40
|
+
*/
|
|
41
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WebhookState, opts?: pulumi.CustomResourceOptions): Webhook;
|
|
42
|
+
/**
|
|
43
|
+
* Returns true if the given object is an instance of Webhook. This is designed to work even
|
|
44
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
45
|
+
*/
|
|
46
|
+
static isInstance(obj: any): obj is Webhook;
|
|
47
|
+
/**
|
|
48
|
+
* The headers attached to the webhook.
|
|
49
|
+
*/
|
|
50
|
+
readonly customHeaders: pulumi.Output<string | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* Encoding type. Valid values are `json`, `form`.
|
|
53
|
+
*/
|
|
54
|
+
readonly encodeAs: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* The name of the webhook. It corresponds with `<WEBHOOK_NAME>`.
|
|
57
|
+
*/
|
|
58
|
+
readonly name: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* The payload of the webhook.
|
|
61
|
+
*/
|
|
62
|
+
readonly payload: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* The URL of the webhook.
|
|
65
|
+
*/
|
|
66
|
+
readonly url: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Create a Webhook resource with the given unique name, arguments, and options.
|
|
69
|
+
*
|
|
70
|
+
* @param name The _unique_ name of the resource.
|
|
71
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
72
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
73
|
+
*/
|
|
74
|
+
constructor(name: string, args: WebhookArgs, opts?: pulumi.CustomResourceOptions);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Input properties used for looking up and filtering Webhook resources.
|
|
78
|
+
*/
|
|
79
|
+
export interface WebhookState {
|
|
80
|
+
/**
|
|
81
|
+
* The headers attached to the webhook.
|
|
82
|
+
*/
|
|
83
|
+
customHeaders?: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* Encoding type. Valid values are `json`, `form`.
|
|
86
|
+
*/
|
|
87
|
+
encodeAs?: pulumi.Input<string>;
|
|
88
|
+
/**
|
|
89
|
+
* The name of the webhook. It corresponds with `<WEBHOOK_NAME>`.
|
|
90
|
+
*/
|
|
91
|
+
name?: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* The payload of the webhook.
|
|
94
|
+
*/
|
|
95
|
+
payload?: pulumi.Input<string>;
|
|
96
|
+
/**
|
|
97
|
+
* The URL of the webhook.
|
|
98
|
+
*/
|
|
99
|
+
url?: pulumi.Input<string>;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* The set of arguments for constructing a Webhook resource.
|
|
103
|
+
*/
|
|
104
|
+
export interface WebhookArgs {
|
|
105
|
+
/**
|
|
106
|
+
* The headers attached to the webhook.
|
|
107
|
+
*/
|
|
108
|
+
customHeaders?: pulumi.Input<string>;
|
|
109
|
+
/**
|
|
110
|
+
* Encoding type. Valid values are `json`, `form`.
|
|
111
|
+
*/
|
|
112
|
+
encodeAs?: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* The name of the webhook. It corresponds with `<WEBHOOK_NAME>`.
|
|
115
|
+
*/
|
|
116
|
+
name: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* The payload of the webhook.
|
|
119
|
+
*/
|
|
120
|
+
payload?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* The URL of the webhook.
|
|
123
|
+
*/
|
|
124
|
+
url: pulumi.Input<string>;
|
|
125
|
+
}
|
package/webhook.js
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
const utilities = require("./utilities");
|
|
7
|
+
/**
|
|
8
|
+
* Provides a Datadog webhook resource. This can be used to create and manage Datadog webhooks.
|
|
9
|
+
*
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as datadog from "@pulumi/datadog";
|
|
15
|
+
*
|
|
16
|
+
* // Create a new Datadog webhook
|
|
17
|
+
* const foo = new datadog.Webhook("foo", {
|
|
18
|
+
* name: "test-webhook",
|
|
19
|
+
* url: "example.com",
|
|
20
|
+
* encodeAs: "json",
|
|
21
|
+
* customHeaders: JSON.stringify({
|
|
22
|
+
* custom: "header",
|
|
23
|
+
* }),
|
|
24
|
+
* payload: JSON.stringify({
|
|
25
|
+
* custom: "payload",
|
|
26
|
+
* }),
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* ## Import
|
|
31
|
+
*
|
|
32
|
+
* ```sh
|
|
33
|
+
* $ pulumi import datadog:index/webhook:Webhook foo example-webhook
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
class Webhook extends pulumi.CustomResource {
|
|
37
|
+
constructor(name, argsOrState, opts) {
|
|
38
|
+
let inputs = {};
|
|
39
|
+
opts = opts || {};
|
|
40
|
+
if (opts.id) {
|
|
41
|
+
const state = argsOrState;
|
|
42
|
+
inputs["customHeaders"] = state ? state.customHeaders : undefined;
|
|
43
|
+
inputs["encodeAs"] = state ? state.encodeAs : undefined;
|
|
44
|
+
inputs["name"] = state ? state.name : undefined;
|
|
45
|
+
inputs["payload"] = state ? state.payload : undefined;
|
|
46
|
+
inputs["url"] = state ? state.url : undefined;
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
const args = argsOrState;
|
|
50
|
+
if ((!args || args.name === undefined) && !opts.urn) {
|
|
51
|
+
throw new Error("Missing required property 'name'");
|
|
52
|
+
}
|
|
53
|
+
if ((!args || args.url === undefined) && !opts.urn) {
|
|
54
|
+
throw new Error("Missing required property 'url'");
|
|
55
|
+
}
|
|
56
|
+
inputs["customHeaders"] = args ? args.customHeaders : undefined;
|
|
57
|
+
inputs["encodeAs"] = args ? args.encodeAs : undefined;
|
|
58
|
+
inputs["name"] = args ? args.name : undefined;
|
|
59
|
+
inputs["payload"] = args ? args.payload : undefined;
|
|
60
|
+
inputs["url"] = args ? args.url : undefined;
|
|
61
|
+
}
|
|
62
|
+
if (!opts.version) {
|
|
63
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
64
|
+
}
|
|
65
|
+
super(Webhook.__pulumiType, name, inputs, opts);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Get an existing Webhook resource's state with the given name, ID, and optional extra
|
|
69
|
+
* properties used to qualify the lookup.
|
|
70
|
+
*
|
|
71
|
+
* @param name The _unique_ name of the resulting resource.
|
|
72
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
73
|
+
* @param state Any extra arguments used during the lookup.
|
|
74
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
75
|
+
*/
|
|
76
|
+
static get(name, id, state, opts) {
|
|
77
|
+
return new Webhook(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Returns true if the given object is an instance of Webhook. This is designed to work even
|
|
81
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
82
|
+
*/
|
|
83
|
+
static isInstance(obj) {
|
|
84
|
+
if (obj === undefined || obj === null) {
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
return obj['__pulumiType'] === Webhook.__pulumiType;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
exports.Webhook = Webhook;
|
|
91
|
+
/** @internal */
|
|
92
|
+
Webhook.__pulumiType = 'datadog:index/webhook:Webhook';
|
|
93
|
+
//# sourceMappingURL=webhook.js.map
|
package/webhook.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../webhook.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAyD9C,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,I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,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9C,MAAM,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/C;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACpD,CAAC;IApFD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;;AA1BL,0BAsFC;AAxEG,gBAAgB;AACO,oBAAY,GAAG,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a Datadog webhooks custom variable resource. This can be used to create and manage Datadog webhooks custom variables.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as datadog from "@pulumi/datadog";
|
|
10
|
+
*
|
|
11
|
+
* const foo = new datadog.WebhookCustomVariable("foo", {
|
|
12
|
+
* isSecret: true,
|
|
13
|
+
* name: "EXAMPLE_VARIABLE",
|
|
14
|
+
* value: "EXAMPLE-VALUE",
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* ## Import
|
|
19
|
+
*
|
|
20
|
+
* ```sh
|
|
21
|
+
* $ pulumi import datadog:index/webhookCustomVariable:WebhookCustomVariable foo EXAMPLE_VARIABLE
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare class WebhookCustomVariable extends pulumi.CustomResource {
|
|
25
|
+
/**
|
|
26
|
+
* Get an existing WebhookCustomVariable resource's state with the given name, ID, and optional extra
|
|
27
|
+
* properties used to qualify the lookup.
|
|
28
|
+
*
|
|
29
|
+
* @param name The _unique_ name of the resulting resource.
|
|
30
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
31
|
+
* @param state Any extra arguments used during the lookup.
|
|
32
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
33
|
+
*/
|
|
34
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WebhookCustomVariableState, opts?: pulumi.CustomResourceOptions): WebhookCustomVariable;
|
|
35
|
+
/**
|
|
36
|
+
* Returns true if the given object is an instance of WebhookCustomVariable. This is designed to work even
|
|
37
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
38
|
+
*/
|
|
39
|
+
static isInstance(obj: any): obj is WebhookCustomVariable;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the custom variable is secret or not.
|
|
42
|
+
*/
|
|
43
|
+
readonly isSecret: pulumi.Output<boolean>;
|
|
44
|
+
/**
|
|
45
|
+
* The name of the variable. It corresponds with `<CUSTOM_VARIABLE_NAME>`.
|
|
46
|
+
*/
|
|
47
|
+
readonly name: pulumi.Output<string>;
|
|
48
|
+
/**
|
|
49
|
+
* The value of the custom variable.
|
|
50
|
+
*/
|
|
51
|
+
readonly value: pulumi.Output<string>;
|
|
52
|
+
/**
|
|
53
|
+
* Create a WebhookCustomVariable resource with the given unique name, arguments, and options.
|
|
54
|
+
*
|
|
55
|
+
* @param name The _unique_ name of the resource.
|
|
56
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
57
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
58
|
+
*/
|
|
59
|
+
constructor(name: string, args: WebhookCustomVariableArgs, opts?: pulumi.CustomResourceOptions);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Input properties used for looking up and filtering WebhookCustomVariable resources.
|
|
63
|
+
*/
|
|
64
|
+
export interface WebhookCustomVariableState {
|
|
65
|
+
/**
|
|
66
|
+
* Whether the custom variable is secret or not.
|
|
67
|
+
*/
|
|
68
|
+
isSecret?: pulumi.Input<boolean>;
|
|
69
|
+
/**
|
|
70
|
+
* The name of the variable. It corresponds with `<CUSTOM_VARIABLE_NAME>`.
|
|
71
|
+
*/
|
|
72
|
+
name?: pulumi.Input<string>;
|
|
73
|
+
/**
|
|
74
|
+
* The value of the custom variable.
|
|
75
|
+
*/
|
|
76
|
+
value?: pulumi.Input<string>;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* The set of arguments for constructing a WebhookCustomVariable resource.
|
|
80
|
+
*/
|
|
81
|
+
export interface WebhookCustomVariableArgs {
|
|
82
|
+
/**
|
|
83
|
+
* Whether the custom variable is secret or not.
|
|
84
|
+
*/
|
|
85
|
+
isSecret: pulumi.Input<boolean>;
|
|
86
|
+
/**
|
|
87
|
+
* The name of the variable. It corresponds with `<CUSTOM_VARIABLE_NAME>`.
|
|
88
|
+
*/
|
|
89
|
+
name: pulumi.Input<string>;
|
|
90
|
+
/**
|
|
91
|
+
* The value of the custom variable.
|
|
92
|
+
*/
|
|
93
|
+
value: pulumi.Input<string>;
|
|
94
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
const utilities = require("./utilities");
|
|
7
|
+
/**
|
|
8
|
+
* Provides a Datadog webhooks custom variable resource. This can be used to create and manage Datadog webhooks custom variables.
|
|
9
|
+
*
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as datadog from "@pulumi/datadog";
|
|
15
|
+
*
|
|
16
|
+
* const foo = new datadog.WebhookCustomVariable("foo", {
|
|
17
|
+
* isSecret: true,
|
|
18
|
+
* name: "EXAMPLE_VARIABLE",
|
|
19
|
+
* value: "EXAMPLE-VALUE",
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* ## Import
|
|
24
|
+
*
|
|
25
|
+
* ```sh
|
|
26
|
+
* $ pulumi import datadog:index/webhookCustomVariable:WebhookCustomVariable foo EXAMPLE_VARIABLE
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
class WebhookCustomVariable extends pulumi.CustomResource {
|
|
30
|
+
constructor(name, argsOrState, opts) {
|
|
31
|
+
let inputs = {};
|
|
32
|
+
opts = opts || {};
|
|
33
|
+
if (opts.id) {
|
|
34
|
+
const state = argsOrState;
|
|
35
|
+
inputs["isSecret"] = state ? state.isSecret : undefined;
|
|
36
|
+
inputs["name"] = state ? state.name : undefined;
|
|
37
|
+
inputs["value"] = state ? state.value : undefined;
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
const args = argsOrState;
|
|
41
|
+
if ((!args || args.isSecret === undefined) && !opts.urn) {
|
|
42
|
+
throw new Error("Missing required property 'isSecret'");
|
|
43
|
+
}
|
|
44
|
+
if ((!args || args.name === undefined) && !opts.urn) {
|
|
45
|
+
throw new Error("Missing required property 'name'");
|
|
46
|
+
}
|
|
47
|
+
if ((!args || args.value === undefined) && !opts.urn) {
|
|
48
|
+
throw new Error("Missing required property 'value'");
|
|
49
|
+
}
|
|
50
|
+
inputs["isSecret"] = args ? args.isSecret : undefined;
|
|
51
|
+
inputs["name"] = args ? args.name : undefined;
|
|
52
|
+
inputs["value"] = args ? args.value : undefined;
|
|
53
|
+
}
|
|
54
|
+
if (!opts.version) {
|
|
55
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
56
|
+
}
|
|
57
|
+
super(WebhookCustomVariable.__pulumiType, name, inputs, opts);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Get an existing WebhookCustomVariable resource's state with the given name, ID, and optional extra
|
|
61
|
+
* properties used to qualify the lookup.
|
|
62
|
+
*
|
|
63
|
+
* @param name The _unique_ name of the resulting resource.
|
|
64
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
65
|
+
* @param state Any extra arguments used during the lookup.
|
|
66
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
67
|
+
*/
|
|
68
|
+
static get(name, id, state, opts) {
|
|
69
|
+
return new WebhookCustomVariable(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Returns true if the given object is an instance of WebhookCustomVariable. This is designed to work even
|
|
73
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
74
|
+
*/
|
|
75
|
+
static isInstance(obj) {
|
|
76
|
+
if (obj === undefined || obj === null) {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
return obj['__pulumiType'] === WebhookCustomVariable.__pulumiType;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.WebhookCustomVariable = WebhookCustomVariable;
|
|
83
|
+
/** @internal */
|
|
84
|
+
WebhookCustomVariable.__pulumiType = 'datadog:index/webhookCustomVariable:WebhookCustomVariable';
|
|
85
|
+
//# sourceMappingURL=webhookCustomVariable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhookCustomVariable.js","sourceRoot":"","sources":["../webhookCustomVariable.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAiD5D,YAAY,IAAY,EAAE,WAAoE,EAAE,IAAmC;QAC/H,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqD,CAAC;YACpE,MAAM,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YAChD,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SACrD;aAAM;YACH,MAAM,IAAI,GAAG,WAAoD,CAAC;YAClE,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACrD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAA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