@pulumi/datadog 4.29.0-alpha.1720762446 → 4.29.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.
Files changed (37) hide show
  1. package/authnMapping.d.ts +6 -6
  2. package/cloudWorkloadSecurityAgentRule.d.ts +0 -2
  3. package/cloudWorkloadSecurityAgentRule.js +0 -2
  4. package/cloudWorkloadSecurityAgentRule.js.map +1 -1
  5. package/fastly/integrationService.d.ts +1 -1
  6. package/fastly/integrationService.js +1 -1
  7. package/getCloudWorkloadSecurityAgentRules.d.ts +0 -4
  8. package/getCloudWorkloadSecurityAgentRules.js +0 -4
  9. package/getCloudWorkloadSecurityAgentRules.js.map +1 -1
  10. package/logsIndex.d.ts +3 -3
  11. package/organizationSettings.d.ts +12 -0
  12. package/organizationSettings.js +2 -0
  13. package/organizationSettings.js.map +1 -1
  14. package/package.json +2 -2
  15. package/powerpack.d.ts +0 -1
  16. package/powerpack.js +0 -1
  17. package/powerpack.js.map +1 -1
  18. package/securityMonitoringDefaultRule.d.ts +12 -0
  19. package/securityMonitoringDefaultRule.js +2 -0
  20. package/securityMonitoringDefaultRule.js.map +1 -1
  21. package/securityMonitoringRule.d.ts +12 -0
  22. package/securityMonitoringRule.js +2 -0
  23. package/securityMonitoringRule.js.map +1 -1
  24. package/securityMonitoringSuppression.d.ts +3 -2
  25. package/securityMonitoringSuppression.js +3 -2
  26. package/securityMonitoringSuppression.js.map +1 -1
  27. package/sensitiveDataScannerRule.d.ts +12 -0
  28. package/sensitiveDataScannerRule.js +2 -0
  29. package/sensitiveDataScannerRule.js.map +1 -1
  30. package/syntheticsTest.d.ts +39 -356
  31. package/syntheticsTest.js +6 -353
  32. package/syntheticsTest.js.map +1 -1
  33. package/teamLink.d.ts +1 -1
  34. package/teamLink.js +1 -1
  35. package/teamPermissionSetting.d.ts +3 -3
  36. package/types/input.d.ts +103 -7
  37. package/types/output.d.ts +103 -7
@@ -15,359 +15,6 @@ import * as outputs from "./types/output";
15
15
  *
16
16
  * which you can now use in your request definition:
17
17
  *
18
- * ## Example Usage
19
- *
20
- * ```typescript
21
- * import * as pulumi from "@pulumi/pulumi";
22
- * import * as datadog from "@pulumi/datadog";
23
- *
24
- * // Example Usage (Synthetics API test)
25
- * // Create a new Datadog Synthetics API/HTTP test on https://www.example.org
26
- * const testUptime = new datadog.SyntheticsTest("test_uptime", {
27
- * name: "An Uptime test on example.org",
28
- * type: "api",
29
- * subtype: "http",
30
- * status: "live",
31
- * message: "Notify @pagerduty",
32
- * locations: ["aws:eu-central-1"],
33
- * tags: [
34
- * "foo:bar",
35
- * "foo",
36
- * "env:test",
37
- * ],
38
- * requestDefinition: {
39
- * method: "GET",
40
- * url: "https://www.example.org",
41
- * },
42
- * requestHeaders: {
43
- * "Content-Type": "application/json",
44
- * },
45
- * assertions: [{
46
- * type: "statusCode",
47
- * operator: "is",
48
- * target: "200",
49
- * }],
50
- * optionsList: {
51
- * tickEvery: 900,
52
- * retry: {
53
- * count: 2,
54
- * interval: 300,
55
- * },
56
- * monitorOptions: {
57
- * renotifyInterval: 120,
58
- * },
59
- * },
60
- * });
61
- * // Example Usage (Authenticated API test)
62
- * // Create a new Datadog Synthetics API/HTTP test on https://www.example.org
63
- * const testApi = new datadog.SyntheticsTest("test_api", {
64
- * name: "An API test on example.org",
65
- * type: "api",
66
- * subtype: "http",
67
- * status: "live",
68
- * message: "Notify @pagerduty",
69
- * locations: ["aws:eu-central-1"],
70
- * tags: [
71
- * "foo:bar",
72
- * "foo",
73
- * "env:test",
74
- * ],
75
- * requestDefinition: {
76
- * method: "GET",
77
- * url: "https://www.example.org",
78
- * },
79
- * requestHeaders: {
80
- * "Content-Type": "application/json",
81
- * Authentication: "Token: 1234566789",
82
- * },
83
- * assertions: [{
84
- * type: "statusCode",
85
- * operator: "is",
86
- * target: "200",
87
- * }],
88
- * optionsList: {
89
- * tickEvery: 900,
90
- * retry: {
91
- * count: 2,
92
- * interval: 300,
93
- * },
94
- * monitorOptions: {
95
- * renotifyInterval: 120,
96
- * },
97
- * },
98
- * });
99
- * // Example Usage (Synthetics SSL test)
100
- * // Create a new Datadog Synthetics API/SSL test on example.org
101
- * const testSsl = new datadog.SyntheticsTest("test_ssl", {
102
- * name: "An API test on example.org",
103
- * type: "api",
104
- * subtype: "ssl",
105
- * status: "live",
106
- * message: "Notify @pagerduty",
107
- * locations: ["aws:eu-central-1"],
108
- * tags: [
109
- * "foo:bar",
110
- * "foo",
111
- * "env:test",
112
- * ],
113
- * requestDefinition: {
114
- * host: "example.org",
115
- * port: 443,
116
- * },
117
- * assertions: [{
118
- * type: "certificate",
119
- * operator: "isInMoreThan",
120
- * target: "30",
121
- * }],
122
- * optionsList: {
123
- * tickEvery: 900,
124
- * acceptSelfSigned: true,
125
- * },
126
- * });
127
- * // Example Usage (Synthetics TCP test)
128
- * // Create a new Datadog Synthetics API/TCP test on example.org
129
- * const testTcp = new datadog.SyntheticsTest("test_tcp", {
130
- * name: "An API test on example.org",
131
- * type: "api",
132
- * subtype: "tcp",
133
- * status: "live",
134
- * message: "Notify @pagerduty",
135
- * locations: ["aws:eu-central-1"],
136
- * tags: [
137
- * "foo:bar",
138
- * "foo",
139
- * "env:test",
140
- * ],
141
- * requestDefinition: {
142
- * host: "example.org",
143
- * port: 443,
144
- * },
145
- * assertions: [{
146
- * type: "responseTime",
147
- * operator: "lessThan",
148
- * target: "2000",
149
- * }],
150
- * configVariables: [{
151
- * type: "global",
152
- * name: "MY_GLOBAL_VAR",
153
- * id: "76636cd1-82e2-4aeb-9cfe-51366a8198a2",
154
- * }],
155
- * optionsList: {
156
- * tickEvery: 900,
157
- * },
158
- * });
159
- * // Example Usage (Synthetics DNS test)
160
- * // Create a new Datadog Synthetics API/DNS test on example.org
161
- * const testDns = new datadog.SyntheticsTest("test_dns", {
162
- * name: "An API test on example.org",
163
- * type: "api",
164
- * subtype: "dns",
165
- * status: "live",
166
- * message: "Notify @pagerduty",
167
- * locations: ["aws:eu-central-1"],
168
- * tags: [
169
- * "foo:bar",
170
- * "foo",
171
- * "env:test",
172
- * ],
173
- * requestDefinition: {
174
- * host: "example.org",
175
- * },
176
- * assertions: [{
177
- * type: "recordSome",
178
- * operator: "is",
179
- * property: "A",
180
- * target: "0.0.0.0",
181
- * }],
182
- * optionsList: {
183
- * tickEvery: 900,
184
- * },
185
- * });
186
- * // Example Usage (Synthetics Multistep API test)
187
- * // Create a new Datadog Synthetics Multistep API test
188
- * const testMultiStep = new datadog.SyntheticsTest("test_multi_step", {
189
- * name: "Multistep API test",
190
- * type: "api",
191
- * subtype: "multi",
192
- * status: "live",
193
- * locations: ["aws:eu-central-1"],
194
- * tags: [
195
- * "foo:bar",
196
- * "foo",
197
- * "env:test",
198
- * ],
199
- * apiSteps: [
200
- * {
201
- * name: "An API test on example.org",
202
- * subtype: "http",
203
- * assertions: [{
204
- * type: "statusCode",
205
- * operator: "is",
206
- * target: "200",
207
- * }],
208
- * requestDefinition: {
209
- * method: "GET",
210
- * url: "https://example.org",
211
- * },
212
- * requestHeaders: {
213
- * "Content-Type": "application/json",
214
- * Authentication: "Token: 1234566789",
215
- * },
216
- * },
217
- * {
218
- * name: "An API test on example.org",
219
- * subtype: "http",
220
- * assertions: [{
221
- * type: "statusCode",
222
- * operator: "is",
223
- * target: "200",
224
- * }],
225
- * requestDefinition: {
226
- * method: "GET",
227
- * url: "http://example.org",
228
- * },
229
- * },
230
- * ],
231
- * optionsList: {
232
- * tickEvery: 900,
233
- * acceptSelfSigned: true,
234
- * },
235
- * });
236
- * // Example Usage (Synthetics Browser test)
237
- * // Create a new Datadog Synthetics Browser test starting on https://www.example.org
238
- * const testBrowser = new datadog.SyntheticsTest("test_browser", {
239
- * name: "A Browser test on example.org",
240
- * type: "browser",
241
- * status: "paused",
242
- * message: "Notify @qa",
243
- * deviceIds: ["laptop_large"],
244
- * locations: ["aws:eu-central-1"],
245
- * tags: [],
246
- * requestDefinition: {
247
- * method: "GET",
248
- * url: "https://app.datadoghq.com",
249
- * },
250
- * browserSteps: [
251
- * {
252
- * name: "Check current url",
253
- * type: "assertCurrentUrl",
254
- * params: {
255
- * check: "contains",
256
- * value: "datadoghq",
257
- * },
258
- * },
259
- * {
260
- * name: "Test a downloaded file",
261
- * type: "assertFileDownload",
262
- * params: {
263
- * file: JSON.stringify({
264
- * md5: "abcdef1234567890",
265
- * sizeCheck: {
266
- * type: "equals",
267
- * value: 1,
268
- * },
269
- * nameCheck: {
270
- * type: "contains",
271
- * value: ".xls",
272
- * },
273
- * }),
274
- * },
275
- * },
276
- * ],
277
- * browserVariables: [
278
- * {
279
- * type: "text",
280
- * name: "MY_PATTERN_VAR",
281
- * pattern: "{{numeric(3)}}",
282
- * example: "597",
283
- * },
284
- * {
285
- * type: "email",
286
- * name: "MY_EMAIL_VAR",
287
- * pattern: "jd8-afe-ydv.{{ numeric(10) }}@synthetics.dtdg.co",
288
- * example: "jd8-afe-ydv.4546132139@synthetics.dtdg.co",
289
- * },
290
- * {
291
- * type: "global",
292
- * name: "MY_GLOBAL_VAR",
293
- * id: "76636cd1-82e2-4aeb-9cfe-51366a8198a2",
294
- * },
295
- * ],
296
- * optionsList: {
297
- * tickEvery: 3600,
298
- * },
299
- * });
300
- * // Example Usage (GRPC API test)
301
- * // Create a new Datadog GRPC API test starting on google.org:50050
302
- * const grpc = new datadog.SyntheticsTest("grpc", {
303
- * type: "api",
304
- * subtype: "grpc",
305
- * requestDefinition: {
306
- * method: "GET",
307
- * host: "google.com",
308
- * port: 50050,
309
- * service: "Hello",
310
- * plainProtoFile: `syntax = "proto3";
311
- * option java_multiple_files = true;
312
- * option java_package = "io.grpc.examples.helloworld";
313
- * option java_outer_classname = "HelloWorldProto";
314
- * option objc_class_prefix = "HLW";
315
- * package helloworld;
316
- * // The greeting service definition.
317
- * service Greeter {
318
- * \x09// Sends a greeting
319
- * \x09rpc SayHello (HelloRequest) returns (HelloReply) {}
320
- * }
321
- * // The request message containing the user's name.
322
- * message HelloRequest {
323
- * \x09string name = 1;
324
- * }
325
- * // The response message containing the greetings
326
- * message HelloReply {
327
- * \x09string message = 1;
328
- * }
329
- * `,
330
- * },
331
- * requestMetadata: {
332
- * header: "value",
333
- * },
334
- * assertions: [
335
- * {
336
- * type: "responseTime",
337
- * operator: "lessThan",
338
- * target: "2000",
339
- * },
340
- * {
341
- * operator: "is",
342
- * type: "grpcHealthcheckStatus",
343
- * target: "1",
344
- * },
345
- * {
346
- * operator: "is",
347
- * target: "proto target",
348
- * type: "grpcProto",
349
- * },
350
- * {
351
- * operator: "is",
352
- * target: "123",
353
- * property: "property",
354
- * type: "grpcMetadata",
355
- * },
356
- * ],
357
- * locations: ["aws:eu-central-1"],
358
- * optionsList: {
359
- * tickEvery: 60,
360
- * },
361
- * name: "GRPC API test",
362
- * message: "Notify @datadog.user",
363
- * tags: [
364
- * "foo:bar",
365
- * "baz",
366
- * ],
367
- * status: "paused",
368
- * });
369
- * ```
370
- *
371
18
  * ## Import
372
19
  *
373
20
  * Synthetics tests can be imported using their public string ID, e.g.
@@ -393,7 +40,7 @@ export declare class SyntheticsTest extends pulumi.CustomResource {
393
40
  */
394
41
  static isInstance(obj: any): obj is SyntheticsTest;
395
42
  /**
396
- * Steps for multistep api tests
43
+ * Steps for multi-step api tests
397
44
  */
398
45
  readonly apiSteps: pulumi.Output<outputs.SyntheticsTestApiStep[] | undefined>;
399
46
  /**
@@ -416,6 +63,10 @@ export declare class SyntheticsTest extends pulumi.CustomResource {
416
63
  * Required if `type = "browser"`. Array with the different device IDs used to run the test. Valid values are `laptopLarge`, `tablet`, `mobileSmall`, `chrome.laptop_large`, `chrome.tablet`, `chrome.mobile_small`, `firefox.laptop_large`, `firefox.tablet`, `firefox.mobile_small`, `edge.laptop_large`, `edge.tablet`, `edge.mobile_small`.
417
64
  */
418
65
  readonly deviceIds: pulumi.Output<string[] | undefined>;
66
+ /**
67
+ * A boolean indicating whether this synthetics test can be deleted even if it's referenced by other resources (for example, SLOs and composite monitors).
68
+ */
69
+ readonly forceDeleteDependencies: pulumi.Output<boolean | undefined>;
419
70
  /**
420
71
  * Array of locations used to run the test. Refer to the Datadog Synthetics location data source to retrieve the list of locations.
421
72
  */
@@ -445,6 +96,10 @@ export declare class SyntheticsTest extends pulumi.CustomResource {
445
96
  * Required if `type = "api"`. The synthetics test request.
446
97
  */
447
98
  readonly requestDefinition: pulumi.Output<outputs.SyntheticsTestRequestDefinition | undefined>;
99
+ /**
100
+ * Files to be used as part of the request in the test.
101
+ */
102
+ readonly requestFiles: pulumi.Output<outputs.SyntheticsTestRequestFile[] | undefined>;
448
103
  /**
449
104
  * Header name and value map.
450
105
  */
@@ -487,6 +142,10 @@ export declare class SyntheticsTest extends pulumi.CustomResource {
487
142
  * Synthetics test type. Valid values are `api`, `browser`.
488
143
  */
489
144
  readonly type: pulumi.Output<string>;
145
+ /**
146
+ * Variables defined from JavaScript code for API HTTP tests.
147
+ */
148
+ readonly variablesFromScript: pulumi.Output<string | undefined>;
490
149
  /**
491
150
  * Create a SyntheticsTest resource with the given unique name, arguments, and options.
492
151
  *
@@ -501,7 +160,7 @@ export declare class SyntheticsTest extends pulumi.CustomResource {
501
160
  */
502
161
  export interface SyntheticsTestState {
503
162
  /**
504
- * Steps for multistep api tests
163
+ * Steps for multi-step api tests
505
164
  */
506
165
  apiSteps?: pulumi.Input<pulumi.Input<inputs.SyntheticsTestApiStep>[]>;
507
166
  /**
@@ -524,6 +183,10 @@ export interface SyntheticsTestState {
524
183
  * Required if `type = "browser"`. Array with the different device IDs used to run the test. Valid values are `laptopLarge`, `tablet`, `mobileSmall`, `chrome.laptop_large`, `chrome.tablet`, `chrome.mobile_small`, `firefox.laptop_large`, `firefox.tablet`, `firefox.mobile_small`, `edge.laptop_large`, `edge.tablet`, `edge.mobile_small`.
525
184
  */
526
185
  deviceIds?: pulumi.Input<pulumi.Input<string>[]>;
186
+ /**
187
+ * A boolean indicating whether this synthetics test can be deleted even if it's referenced by other resources (for example, SLOs and composite monitors).
188
+ */
189
+ forceDeleteDependencies?: pulumi.Input<boolean>;
527
190
  /**
528
191
  * Array of locations used to run the test. Refer to the Datadog Synthetics location data source to retrieve the list of locations.
529
192
  */
@@ -553,6 +216,10 @@ export interface SyntheticsTestState {
553
216
  * Required if `type = "api"`. The synthetics test request.
554
217
  */
555
218
  requestDefinition?: pulumi.Input<inputs.SyntheticsTestRequestDefinition>;
219
+ /**
220
+ * Files to be used as part of the request in the test.
221
+ */
222
+ requestFiles?: pulumi.Input<pulumi.Input<inputs.SyntheticsTestRequestFile>[]>;
556
223
  /**
557
224
  * Header name and value map.
558
225
  */
@@ -595,13 +262,17 @@ export interface SyntheticsTestState {
595
262
  * Synthetics test type. Valid values are `api`, `browser`.
596
263
  */
597
264
  type?: pulumi.Input<string>;
265
+ /**
266
+ * Variables defined from JavaScript code for API HTTP tests.
267
+ */
268
+ variablesFromScript?: pulumi.Input<string>;
598
269
  }
599
270
  /**
600
271
  * The set of arguments for constructing a SyntheticsTest resource.
601
272
  */
602
273
  export interface SyntheticsTestArgs {
603
274
  /**
604
- * Steps for multistep api tests
275
+ * Steps for multi-step api tests
605
276
  */
606
277
  apiSteps?: pulumi.Input<pulumi.Input<inputs.SyntheticsTestApiStep>[]>;
607
278
  /**
@@ -624,6 +295,10 @@ export interface SyntheticsTestArgs {
624
295
  * Required if `type = "browser"`. Array with the different device IDs used to run the test. Valid values are `laptopLarge`, `tablet`, `mobileSmall`, `chrome.laptop_large`, `chrome.tablet`, `chrome.mobile_small`, `firefox.laptop_large`, `firefox.tablet`, `firefox.mobile_small`, `edge.laptop_large`, `edge.tablet`, `edge.mobile_small`.
625
296
  */
626
297
  deviceIds?: pulumi.Input<pulumi.Input<string>[]>;
298
+ /**
299
+ * A boolean indicating whether this synthetics test can be deleted even if it's referenced by other resources (for example, SLOs and composite monitors).
300
+ */
301
+ forceDeleteDependencies?: pulumi.Input<boolean>;
627
302
  /**
628
303
  * Array of locations used to run the test. Refer to the Datadog Synthetics location data source to retrieve the list of locations.
629
304
  */
@@ -649,6 +324,10 @@ export interface SyntheticsTestArgs {
649
324
  * Required if `type = "api"`. The synthetics test request.
650
325
  */
651
326
  requestDefinition?: pulumi.Input<inputs.SyntheticsTestRequestDefinition>;
327
+ /**
328
+ * Files to be used as part of the request in the test.
329
+ */
330
+ requestFiles?: pulumi.Input<pulumi.Input<inputs.SyntheticsTestRequestFile>[]>;
652
331
  /**
653
332
  * Header name and value map.
654
333
  */
@@ -691,4 +370,8 @@ export interface SyntheticsTestArgs {
691
370
  * Synthetics test type. Valid values are `api`, `browser`.
692
371
  */
693
372
  type: pulumi.Input<string>;
373
+ /**
374
+ * Variables defined from JavaScript code for API HTTP tests.
375
+ */
376
+ variablesFromScript?: pulumi.Input<string>;
694
377
  }