@pulumi/datadog 4.61.0-alpha.1766036506 → 4.61.0-alpha.1766430889

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 (45) hide show
  1. package/aws/getIntegrationIamPermissionsResourceCollection.d.ts +22 -0
  2. package/aws/getIntegrationIamPermissionsResourceCollection.js +24 -0
  3. package/aws/getIntegrationIamPermissionsResourceCollection.js.map +1 -0
  4. package/aws/index.d.ts +3 -0
  5. package/aws/index.js +4 -1
  6. package/aws/index.js.map +1 -1
  7. package/costBudget.d.ts +147 -6
  8. package/costBudget.js +141 -0
  9. package/costBudget.js.map +1 -1
  10. package/customAllocationRules.d.ts +16 -2
  11. package/customAllocationRules.js +15 -2
  12. package/customAllocationRules.js.map +1 -1
  13. package/getReferenceTable.d.ts +106 -0
  14. package/getReferenceTable.js +36 -0
  15. package/getReferenceTable.js.map +1 -0
  16. package/getReferenceTableRows.d.ts +66 -0
  17. package/getReferenceTableRows.js +32 -0
  18. package/getReferenceTableRows.js.map +1 -0
  19. package/getTeamHierarchyLinks.d.ts +72 -0
  20. package/getTeamHierarchyLinks.js +34 -0
  21. package/getTeamHierarchyLinks.js.map +1 -0
  22. package/index.d.ts +18 -0
  23. package/index.js +27 -3
  24. package/index.js.map +1 -1
  25. package/logsRestrictionQuery.d.ts +103 -0
  26. package/logsRestrictionQuery.js +85 -0
  27. package/logsRestrictionQuery.js.map +1 -0
  28. package/monitor.d.ts +12 -0
  29. package/monitor.js +2 -0
  30. package/monitor.js.map +1 -1
  31. package/monitorNotificationRule.d.ts +17 -5
  32. package/monitorNotificationRule.js +2 -3
  33. package/monitorNotificationRule.js.map +1 -1
  34. package/onCallSchedule.d.ts +29 -17
  35. package/onCallSchedule.js +29 -17
  36. package/onCallSchedule.js.map +1 -1
  37. package/package.json +2 -2
  38. package/referenceTable.d.ts +271 -0
  39. package/referenceTable.js +196 -0
  40. package/referenceTable.js.map +1 -0
  41. package/teamHierarchyLinks.d.ts +79 -0
  42. package/teamHierarchyLinks.js +64 -0
  43. package/teamHierarchyLinks.js.map +1 -0
  44. package/types/input.d.ts +412 -1
  45. package/types/output.d.ts +290 -1
package/onCallSchedule.js CHANGED
@@ -18,23 +18,35 @@ const utilities = require("./utilities");
18
18
  * name: "Team A On-Call",
19
19
  * timeZone: "America/New_York",
20
20
  * teams: ["00000000-aba2-0000-0000-000000000000"],
21
- * layers: [{
22
- * name: "Primary On-Call Layer",
23
- * effectiveDate: "2025-01-01T00:00:00Z",
24
- * endDate: "2026-01-01T00:00:00Z",
25
- * rotationStart: "2025-01-01T00:00:00Z",
26
- * interval: [{
27
- * days: 1,
28
- * seconds: 300,
29
- * }],
30
- * users: ["00000000-aba1-0000-0000-000000000000"],
31
- * restrictions: [{
32
- * endDay: "monday",
33
- * endTime: "17:00:00",
34
- * startDay: "monday",
35
- * startTime: "09:00:00",
36
- * }],
37
- * }],
21
+ * layers: [
22
+ * {
23
+ * name: "Primary On-Call Layer",
24
+ * effectiveDate: "2025-01-01T00:00:00Z",
25
+ * endDate: "2026-01-01T00:00:00Z",
26
+ * rotationStart: "2025-01-01T00:00:00Z",
27
+ * interval: [{
28
+ * days: 1,
29
+ * seconds: 300,
30
+ * }],
31
+ * users: ["00000000-aba1-0000-0000-000000000000"],
32
+ * restrictions: [{
33
+ * endDay: "monday",
34
+ * endTime: "17:00:00",
35
+ * startDay: "monday",
36
+ * startTime: "09:00:00",
37
+ * }],
38
+ * },
39
+ * {
40
+ * name: "Asia-Pacific On-Call Layer",
41
+ * effectiveDate: "2025-01-01T00:00:00Z",
42
+ * rotationStart: "2025-01-01T00:00:00Z",
43
+ * timeZone: "Asia/Tokyo",
44
+ * interval: [{
45
+ * days: 7,
46
+ * }],
47
+ * users: ["00000000-aba1-0000-0000-000000000001"],
48
+ * },
49
+ * ],
38
50
  * });
39
51
  * ```
40
52
  *
@@ -1 +1 @@
1
- {"version":3,"file":"onCallSchedule.js","sourceRoot":"","sources":["../onCallSchedule.ts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C;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AA7EL,wCA8EC;AAhEG,gBAAgB;AACO,2BAAY,GAAG,6CAA6C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/datadog",
3
- "version": "4.61.0-alpha.1766036506",
3
+ "version": "4.61.0-alpha.1766430889",
4
4
  "description": "A Pulumi package for creating and managing Datadog resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -22,6 +22,6 @@
22
22
  "pulumi": {
23
23
  "resource": true,
24
24
  "name": "datadog",
25
- "version": "4.61.0-alpha.1766036506"
25
+ "version": "4.61.0-alpha.1766430889"
26
26
  }
27
27
  }
@@ -0,0 +1,271 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Provides a Datadog Reference Table resource for cloud storage sources (S3, GCS, Azure). This can be used to create and manage Datadog reference tables that sync data from cloud storage. For setup instructions including granting Datadog read access to your cloud storage bucket, see the [Reference Tables documentation](https://docs.datadoghq.com/reference_tables/?tab=cloudstorage#create-a-reference-table).
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as datadog from "@pulumi/datadog";
12
+ *
13
+ * // Create a reference table from an S3 bucket
14
+ * const s3Table = new datadog.ReferenceTable("s3_table", {
15
+ * tableName: "products_catalog",
16
+ * description: "Product catalog synced from S3",
17
+ * source: "S3",
18
+ * fileMetadata: [{
19
+ * syncEnabled: true,
20
+ * accessDetails: [{
21
+ * awsDetail: [{
22
+ * awsAccountId: "123456789000",
23
+ * awsBucketName: "my-data-bucket",
24
+ * filePath: "reference-tables/products.csv",
25
+ * }],
26
+ * }],
27
+ * }],
28
+ * schema: [{
29
+ * primaryKeys: ["product_id"],
30
+ * fields: [
31
+ * {
32
+ * name: "product_id",
33
+ * type: "STRING",
34
+ * },
35
+ * {
36
+ * name: "product_name",
37
+ * type: "STRING",
38
+ * },
39
+ * {
40
+ * name: "category",
41
+ * type: "STRING",
42
+ * },
43
+ * {
44
+ * name: "price_cents",
45
+ * type: "INT32",
46
+ * },
47
+ * ],
48
+ * }],
49
+ * tags: [
50
+ * "source:s3",
51
+ * "team:catalog",
52
+ * "env:production",
53
+ * ],
54
+ * });
55
+ * ```
56
+ *
57
+ * ## Import
58
+ *
59
+ * The `pulumi import` command can be used, for example:
60
+ *
61
+ * #!/bin/bash
62
+ *
63
+ * Import an existing reference table by its UUID
64
+ *
65
+ * ```sh
66
+ * $ pulumi import datadog:index/referenceTable:ReferenceTable imported_table "00000000-0000-0000-0000-000000000000"
67
+ * ```
68
+ *
69
+ * After importing, add the resource configuration to your .tf file:
70
+ *
71
+ * resource "datadog_reference_table" "imported_table" {
72
+ *
73
+ * table_name = "existing_table"
74
+ *
75
+ * description = "Previously created table"
76
+ *
77
+ * source = "S3" # or "GCS" or "AZURE"
78
+ *
79
+ * file_metadata {
80
+ *
81
+ * sync_enabled = true
82
+ *
83
+ * access_details {
84
+ *
85
+ * aws_detail {
86
+ *
87
+ * aws_account_id = "123456789000"
88
+ *
89
+ * aws_bucket_name = "existing-bucket"
90
+ *
91
+ * file_path = "data/existing.csv"
92
+ *
93
+ * }
94
+ *
95
+ * }
96
+ *
97
+ * }
98
+ *
99
+ * schema {
100
+ *
101
+ * primary_keys = ["id"]
102
+ *
103
+ * fields {
104
+ *
105
+ * name = "id"
106
+ *
107
+ * type = "STRING"
108
+ *
109
+ * }
110
+ *
111
+ * fields {
112
+ *
113
+ * name = "value"
114
+ *
115
+ * type = "STRING"
116
+ *
117
+ * }
118
+ *
119
+ * }
120
+ *
121
+ * tags = ["imported:true"]
122
+ *
123
+ * }
124
+ */
125
+ export declare class ReferenceTable extends pulumi.CustomResource {
126
+ /**
127
+ * Get an existing ReferenceTable resource's state with the given name, ID, and optional extra
128
+ * properties used to qualify the lookup.
129
+ *
130
+ * @param name The _unique_ name of the resulting resource.
131
+ * @param id The _unique_ provider ID of the resource to lookup.
132
+ * @param state Any extra arguments used during the lookup.
133
+ * @param opts Optional settings to control the behavior of the CustomResource.
134
+ */
135
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ReferenceTableState, opts?: pulumi.CustomResourceOptions): ReferenceTable;
136
+ /**
137
+ * Returns true if the given object is an instance of ReferenceTable. This is designed to work even
138
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
139
+ */
140
+ static isInstance(obj: any): obj is ReferenceTable;
141
+ /**
142
+ * UUID of the user who created the reference table.
143
+ */
144
+ readonly createdBy: pulumi.Output<string>;
145
+ /**
146
+ * The description of the reference table.
147
+ */
148
+ readonly description: pulumi.Output<string | undefined>;
149
+ /**
150
+ * Configuration for cloud storage file access and sync settings.
151
+ */
152
+ readonly fileMetadata: pulumi.Output<outputs.ReferenceTableFileMetadata | undefined>;
153
+ /**
154
+ * UUID of the user who last updated the reference table.
155
+ */
156
+ readonly lastUpdatedBy: pulumi.Output<string>;
157
+ /**
158
+ * The number of successfully processed rows in the reference table.
159
+ */
160
+ readonly rowCount: pulumi.Output<number>;
161
+ /**
162
+ * The schema definition for the reference table, including field definitions and primary keys. Schema is only set on create; updates are derived from the file asynchronously.
163
+ */
164
+ readonly schema: pulumi.Output<outputs.ReferenceTableSchema | undefined>;
165
+ /**
166
+ * The source type for the reference table. Valid values are `S3`, `GCS`, `AZURE`.
167
+ */
168
+ readonly source: pulumi.Output<string>;
169
+ /**
170
+ * The status of the reference table (e.g., DONE, PROCESSING, ERROR).
171
+ */
172
+ readonly status: pulumi.Output<string>;
173
+ /**
174
+ * The name of the reference table. This must be unique within your organization.
175
+ */
176
+ readonly tableName: pulumi.Output<string>;
177
+ /**
178
+ * A list of tags to associate with the reference table.
179
+ */
180
+ readonly tags: pulumi.Output<string[] | undefined>;
181
+ /**
182
+ * The timestamp of the last update to the reference table in ISO 8601 format.
183
+ */
184
+ readonly updatedAt: pulumi.Output<string>;
185
+ /**
186
+ * Create a ReferenceTable resource with the given unique name, arguments, and options.
187
+ *
188
+ * @param name The _unique_ name of the resource.
189
+ * @param args The arguments to use to populate this resource's properties.
190
+ * @param opts A bag of options that control this resource's behavior.
191
+ */
192
+ constructor(name: string, args: ReferenceTableArgs, opts?: pulumi.CustomResourceOptions);
193
+ }
194
+ /**
195
+ * Input properties used for looking up and filtering ReferenceTable resources.
196
+ */
197
+ export interface ReferenceTableState {
198
+ /**
199
+ * UUID of the user who created the reference table.
200
+ */
201
+ createdBy?: pulumi.Input<string>;
202
+ /**
203
+ * The description of the reference table.
204
+ */
205
+ description?: pulumi.Input<string>;
206
+ /**
207
+ * Configuration for cloud storage file access and sync settings.
208
+ */
209
+ fileMetadata?: pulumi.Input<inputs.ReferenceTableFileMetadata>;
210
+ /**
211
+ * UUID of the user who last updated the reference table.
212
+ */
213
+ lastUpdatedBy?: pulumi.Input<string>;
214
+ /**
215
+ * The number of successfully processed rows in the reference table.
216
+ */
217
+ rowCount?: pulumi.Input<number>;
218
+ /**
219
+ * The schema definition for the reference table, including field definitions and primary keys. Schema is only set on create; updates are derived from the file asynchronously.
220
+ */
221
+ schema?: pulumi.Input<inputs.ReferenceTableSchema>;
222
+ /**
223
+ * The source type for the reference table. Valid values are `S3`, `GCS`, `AZURE`.
224
+ */
225
+ source?: pulumi.Input<string>;
226
+ /**
227
+ * The status of the reference table (e.g., DONE, PROCESSING, ERROR).
228
+ */
229
+ status?: pulumi.Input<string>;
230
+ /**
231
+ * The name of the reference table. This must be unique within your organization.
232
+ */
233
+ tableName?: pulumi.Input<string>;
234
+ /**
235
+ * A list of tags to associate with the reference table.
236
+ */
237
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
238
+ /**
239
+ * The timestamp of the last update to the reference table in ISO 8601 format.
240
+ */
241
+ updatedAt?: pulumi.Input<string>;
242
+ }
243
+ /**
244
+ * The set of arguments for constructing a ReferenceTable resource.
245
+ */
246
+ export interface ReferenceTableArgs {
247
+ /**
248
+ * The description of the reference table.
249
+ */
250
+ description?: pulumi.Input<string>;
251
+ /**
252
+ * Configuration for cloud storage file access and sync settings.
253
+ */
254
+ fileMetadata?: pulumi.Input<inputs.ReferenceTableFileMetadata>;
255
+ /**
256
+ * The schema definition for the reference table, including field definitions and primary keys. Schema is only set on create; updates are derived from the file asynchronously.
257
+ */
258
+ schema?: pulumi.Input<inputs.ReferenceTableSchema>;
259
+ /**
260
+ * The source type for the reference table. Valid values are `S3`, `GCS`, `AZURE`.
261
+ */
262
+ source: pulumi.Input<string>;
263
+ /**
264
+ * The name of the reference table. This must be unique within your organization.
265
+ */
266
+ tableName: pulumi.Input<string>;
267
+ /**
268
+ * A list of tags to associate with the reference table.
269
+ */
270
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
271
+ }
@@ -0,0 +1,196 @@
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.ReferenceTable = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provides a Datadog Reference Table resource for cloud storage sources (S3, GCS, Azure). This can be used to create and manage Datadog reference tables that sync data from cloud storage. For setup instructions including granting Datadog read access to your cloud storage bucket, see the [Reference Tables documentation](https://docs.datadoghq.com/reference_tables/?tab=cloudstorage#create-a-reference-table).
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as datadog from "@pulumi/datadog";
16
+ *
17
+ * // Create a reference table from an S3 bucket
18
+ * const s3Table = new datadog.ReferenceTable("s3_table", {
19
+ * tableName: "products_catalog",
20
+ * description: "Product catalog synced from S3",
21
+ * source: "S3",
22
+ * fileMetadata: [{
23
+ * syncEnabled: true,
24
+ * accessDetails: [{
25
+ * awsDetail: [{
26
+ * awsAccountId: "123456789000",
27
+ * awsBucketName: "my-data-bucket",
28
+ * filePath: "reference-tables/products.csv",
29
+ * }],
30
+ * }],
31
+ * }],
32
+ * schema: [{
33
+ * primaryKeys: ["product_id"],
34
+ * fields: [
35
+ * {
36
+ * name: "product_id",
37
+ * type: "STRING",
38
+ * },
39
+ * {
40
+ * name: "product_name",
41
+ * type: "STRING",
42
+ * },
43
+ * {
44
+ * name: "category",
45
+ * type: "STRING",
46
+ * },
47
+ * {
48
+ * name: "price_cents",
49
+ * type: "INT32",
50
+ * },
51
+ * ],
52
+ * }],
53
+ * tags: [
54
+ * "source:s3",
55
+ * "team:catalog",
56
+ * "env:production",
57
+ * ],
58
+ * });
59
+ * ```
60
+ *
61
+ * ## Import
62
+ *
63
+ * The `pulumi import` command can be used, for example:
64
+ *
65
+ * #!/bin/bash
66
+ *
67
+ * Import an existing reference table by its UUID
68
+ *
69
+ * ```sh
70
+ * $ pulumi import datadog:index/referenceTable:ReferenceTable imported_table "00000000-0000-0000-0000-000000000000"
71
+ * ```
72
+ *
73
+ * After importing, add the resource configuration to your .tf file:
74
+ *
75
+ * resource "datadog_reference_table" "imported_table" {
76
+ *
77
+ * table_name = "existing_table"
78
+ *
79
+ * description = "Previously created table"
80
+ *
81
+ * source = "S3" # or "GCS" or "AZURE"
82
+ *
83
+ * file_metadata {
84
+ *
85
+ * sync_enabled = true
86
+ *
87
+ * access_details {
88
+ *
89
+ * aws_detail {
90
+ *
91
+ * aws_account_id = "123456789000"
92
+ *
93
+ * aws_bucket_name = "existing-bucket"
94
+ *
95
+ * file_path = "data/existing.csv"
96
+ *
97
+ * }
98
+ *
99
+ * }
100
+ *
101
+ * }
102
+ *
103
+ * schema {
104
+ *
105
+ * primary_keys = ["id"]
106
+ *
107
+ * fields {
108
+ *
109
+ * name = "id"
110
+ *
111
+ * type = "STRING"
112
+ *
113
+ * }
114
+ *
115
+ * fields {
116
+ *
117
+ * name = "value"
118
+ *
119
+ * type = "STRING"
120
+ *
121
+ * }
122
+ *
123
+ * }
124
+ *
125
+ * tags = ["imported:true"]
126
+ *
127
+ * }
128
+ */
129
+ class ReferenceTable extends pulumi.CustomResource {
130
+ /**
131
+ * Get an existing ReferenceTable resource's state with the given name, ID, and optional extra
132
+ * properties used to qualify the lookup.
133
+ *
134
+ * @param name The _unique_ name of the resulting resource.
135
+ * @param id The _unique_ provider ID of the resource to lookup.
136
+ * @param state Any extra arguments used during the lookup.
137
+ * @param opts Optional settings to control the behavior of the CustomResource.
138
+ */
139
+ static get(name, id, state, opts) {
140
+ return new ReferenceTable(name, state, { ...opts, id: id });
141
+ }
142
+ /**
143
+ * Returns true if the given object is an instance of ReferenceTable. This is designed to work even
144
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
145
+ */
146
+ static isInstance(obj) {
147
+ if (obj === undefined || obj === null) {
148
+ return false;
149
+ }
150
+ return obj['__pulumiType'] === ReferenceTable.__pulumiType;
151
+ }
152
+ constructor(name, argsOrState, opts) {
153
+ let resourceInputs = {};
154
+ opts = opts || {};
155
+ if (opts.id) {
156
+ const state = argsOrState;
157
+ resourceInputs["createdBy"] = state?.createdBy;
158
+ resourceInputs["description"] = state?.description;
159
+ resourceInputs["fileMetadata"] = state?.fileMetadata;
160
+ resourceInputs["lastUpdatedBy"] = state?.lastUpdatedBy;
161
+ resourceInputs["rowCount"] = state?.rowCount;
162
+ resourceInputs["schema"] = state?.schema;
163
+ resourceInputs["source"] = state?.source;
164
+ resourceInputs["status"] = state?.status;
165
+ resourceInputs["tableName"] = state?.tableName;
166
+ resourceInputs["tags"] = state?.tags;
167
+ resourceInputs["updatedAt"] = state?.updatedAt;
168
+ }
169
+ else {
170
+ const args = argsOrState;
171
+ if (args?.source === undefined && !opts.urn) {
172
+ throw new Error("Missing required property 'source'");
173
+ }
174
+ if (args?.tableName === undefined && !opts.urn) {
175
+ throw new Error("Missing required property 'tableName'");
176
+ }
177
+ resourceInputs["description"] = args?.description;
178
+ resourceInputs["fileMetadata"] = args?.fileMetadata;
179
+ resourceInputs["schema"] = args?.schema;
180
+ resourceInputs["source"] = args?.source;
181
+ resourceInputs["tableName"] = args?.tableName;
182
+ resourceInputs["tags"] = args?.tags;
183
+ resourceInputs["createdBy"] = undefined /*out*/;
184
+ resourceInputs["lastUpdatedBy"] = undefined /*out*/;
185
+ resourceInputs["rowCount"] = undefined /*out*/;
186
+ resourceInputs["status"] = undefined /*out*/;
187
+ resourceInputs["updatedAt"] = undefined /*out*/;
188
+ }
189
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
190
+ super(ReferenceTable.__pulumiType, name, resourceInputs, opts);
191
+ }
192
+ }
193
+ exports.ReferenceTable = ReferenceTable;
194
+ /** @internal */
195
+ ReferenceTable.__pulumiType = 'datadog:index/referenceTable:ReferenceTable';
196
+ //# sourceMappingURL=referenceTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"referenceTable.js","sourceRoot":"","sources":["../referenceTable.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwHG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB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AAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAvHL,wCAwHC;AA1GG,gBAAgB;AACO,2BAAY,GAAG,6CAA6C,CAAC"}
@@ -0,0 +1,79 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides a Datadog TeamHierarchyLinks resource. This can be used to create and manage Datadog Team Hierarchy Links.
4
+ */
5
+ export declare class TeamHierarchyLinks extends pulumi.CustomResource {
6
+ /**
7
+ * Get an existing TeamHierarchyLinks resource's state with the given name, ID, and optional extra
8
+ * properties used to qualify the lookup.
9
+ *
10
+ * @param name The _unique_ name of the resulting resource.
11
+ * @param id The _unique_ provider ID of the resource to lookup.
12
+ * @param state Any extra arguments used during the lookup.
13
+ * @param opts Optional settings to control the behavior of the CustomResource.
14
+ */
15
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TeamHierarchyLinksState, opts?: pulumi.CustomResourceOptions): TeamHierarchyLinks;
16
+ /**
17
+ * Returns true if the given object is an instance of TeamHierarchyLinks. This is designed to work even
18
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
19
+ */
20
+ static isInstance(obj: any): obj is TeamHierarchyLinks;
21
+ /**
22
+ * Timestamp when the team hierarchy link was created.
23
+ */
24
+ readonly createdAt: pulumi.Output<string>;
25
+ /**
26
+ * ID of the parent team the team hierarchy link is associated with.
27
+ */
28
+ readonly parentTeamId: pulumi.Output<string>;
29
+ /**
30
+ * The user who created the team hierarchy link.
31
+ */
32
+ readonly provisionedBy: pulumi.Output<string>;
33
+ /**
34
+ * ID of the sub team the team hierarchy link is associated with.
35
+ */
36
+ readonly subTeamId: pulumi.Output<string>;
37
+ /**
38
+ * Create a TeamHierarchyLinks resource with the given unique name, arguments, and options.
39
+ *
40
+ * @param name The _unique_ name of the resource.
41
+ * @param args The arguments to use to populate this resource's properties.
42
+ * @param opts A bag of options that control this resource's behavior.
43
+ */
44
+ constructor(name: string, args: TeamHierarchyLinksArgs, opts?: pulumi.CustomResourceOptions);
45
+ }
46
+ /**
47
+ * Input properties used for looking up and filtering TeamHierarchyLinks resources.
48
+ */
49
+ export interface TeamHierarchyLinksState {
50
+ /**
51
+ * Timestamp when the team hierarchy link was created.
52
+ */
53
+ createdAt?: pulumi.Input<string>;
54
+ /**
55
+ * ID of the parent team the team hierarchy link is associated with.
56
+ */
57
+ parentTeamId?: pulumi.Input<string>;
58
+ /**
59
+ * The user who created the team hierarchy link.
60
+ */
61
+ provisionedBy?: pulumi.Input<string>;
62
+ /**
63
+ * ID of the sub team the team hierarchy link is associated with.
64
+ */
65
+ subTeamId?: pulumi.Input<string>;
66
+ }
67
+ /**
68
+ * The set of arguments for constructing a TeamHierarchyLinks resource.
69
+ */
70
+ export interface TeamHierarchyLinksArgs {
71
+ /**
72
+ * ID of the parent team the team hierarchy link is associated with.
73
+ */
74
+ parentTeamId: pulumi.Input<string>;
75
+ /**
76
+ * ID of the sub team the team hierarchy link is associated with.
77
+ */
78
+ subTeamId: pulumi.Input<string>;
79
+ }