@pulumi/datadog 4.61.0-alpha.1766428675 → 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
@@ -0,0 +1,22 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Use this data source to retrieve the IAM permissions required for AWS integration resource collection.
4
+ */
5
+ export declare function getIntegrationIamPermissionsResourceCollection(opts?: pulumi.InvokeOptions): Promise<GetIntegrationIamPermissionsResourceCollectionResult>;
6
+ /**
7
+ * A collection of values returned by getIntegrationIamPermissionsResourceCollection.
8
+ */
9
+ export interface GetIntegrationIamPermissionsResourceCollectionResult {
10
+ /**
11
+ * The list of IAM actions required for AWS integration resource collection.
12
+ */
13
+ readonly iamPermissions: string[];
14
+ /**
15
+ * The ID of this resource.
16
+ */
17
+ readonly id: string;
18
+ }
19
+ /**
20
+ * Use this data source to retrieve the IAM permissions required for AWS integration resource collection.
21
+ */
22
+ export declare function getIntegrationIamPermissionsResourceCollectionOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetIntegrationIamPermissionsResourceCollectionResult>;
@@ -0,0 +1,24 @@
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.getIntegrationIamPermissionsResourceCollectionOutput = exports.getIntegrationIamPermissionsResourceCollection = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Use this data source to retrieve the IAM permissions required for AWS integration resource collection.
10
+ */
11
+ function getIntegrationIamPermissionsResourceCollection(opts) {
12
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
13
+ return pulumi.runtime.invoke("datadog:aws/getIntegrationIamPermissionsResourceCollection:getIntegrationIamPermissionsResourceCollection", {}, opts);
14
+ }
15
+ exports.getIntegrationIamPermissionsResourceCollection = getIntegrationIamPermissionsResourceCollection;
16
+ /**
17
+ * Use this data source to retrieve the IAM permissions required for AWS integration resource collection.
18
+ */
19
+ function getIntegrationIamPermissionsResourceCollectionOutput(opts) {
20
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
21
+ return pulumi.runtime.invokeOutput("datadog:aws/getIntegrationIamPermissionsResourceCollection:getIntegrationIamPermissionsResourceCollection", {}, opts);
22
+ }
23
+ exports.getIntegrationIamPermissionsResourceCollectionOutput = getIntegrationIamPermissionsResourceCollectionOutput;
24
+ //# sourceMappingURL=getIntegrationIamPermissionsResourceCollection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getIntegrationIamPermissionsResourceCollection.js","sourceRoot":"","sources":["../../aws/getIntegrationIamPermissionsResourceCollection.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,8CAA8C,CAAC,IAA2B;IACtF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2GAA2G,EAAE,EACzI,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,wGAIC;AAeD;;GAEG;AACH,SAAgB,oDAAoD,CAAC,IAAiC;IAClG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,2GAA2G,EAAE,EAC/I,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,oHAIC"}
package/aws/index.d.ts CHANGED
@@ -10,6 +10,9 @@ export declare const getIntegrationExternalIdOutput: typeof import("./getIntegra
10
10
  export { GetIntegrationIamPermissionsResult } from "./getIntegrationIamPermissions";
11
11
  export declare const getIntegrationIamPermissions: typeof import("./getIntegrationIamPermissions").getIntegrationIamPermissions;
12
12
  export declare const getIntegrationIamPermissionsOutput: typeof import("./getIntegrationIamPermissions").getIntegrationIamPermissionsOutput;
13
+ export { GetIntegrationIamPermissionsResourceCollectionResult } from "./getIntegrationIamPermissionsResourceCollection";
14
+ export declare const getIntegrationIamPermissionsResourceCollection: typeof import("./getIntegrationIamPermissionsResourceCollection").getIntegrationIamPermissionsResourceCollection;
15
+ export declare const getIntegrationIamPermissionsResourceCollectionOutput: typeof import("./getIntegrationIamPermissionsResourceCollection").getIntegrationIamPermissionsResourceCollectionOutput;
13
16
  export { GetIntegrationIamPermissionsStandardResult } from "./getIntegrationIamPermissionsStandard";
14
17
  export declare const getIntegrationIamPermissionsStandard: typeof import("./getIntegrationIamPermissionsStandard").getIntegrationIamPermissionsStandard;
15
18
  export declare const getIntegrationIamPermissionsStandardOutput: typeof import("./getIntegrationIamPermissionsStandard").getIntegrationIamPermissionsStandardOutput;
package/aws/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.IntegrationTagFilter = exports.IntegrationLogCollection = exports.IntegrationLambdaArn = exports.IntegrationExternalId = exports.IntegrationEventBridge = exports.IntegrationAccount = exports.Integration = exports.getIntegrationNamespaceRulesOutput = exports.getIntegrationNamespaceRules = exports.getIntegrationLogsServicesOutput = exports.getIntegrationLogsServices = exports.getIntegrationIamPermissionsStandardOutput = exports.getIntegrationIamPermissionsStandard = exports.getIntegrationIamPermissionsOutput = exports.getIntegrationIamPermissions = exports.getIntegrationExternalIdOutput = exports.getIntegrationExternalId = exports.getIntegrationAvailableNamespacesOutput = exports.getIntegrationAvailableNamespaces = exports.getIntegrationAvailableLogsServicesOutput = exports.getIntegrationAvailableLogsServices = void 0;
5
+ exports.IntegrationTagFilter = exports.IntegrationLogCollection = exports.IntegrationLambdaArn = exports.IntegrationExternalId = exports.IntegrationEventBridge = exports.IntegrationAccount = exports.Integration = exports.getIntegrationNamespaceRulesOutput = exports.getIntegrationNamespaceRules = exports.getIntegrationLogsServicesOutput = exports.getIntegrationLogsServices = exports.getIntegrationIamPermissionsStandardOutput = exports.getIntegrationIamPermissionsStandard = exports.getIntegrationIamPermissionsResourceCollectionOutput = exports.getIntegrationIamPermissionsResourceCollection = exports.getIntegrationIamPermissionsOutput = exports.getIntegrationIamPermissions = exports.getIntegrationExternalIdOutput = exports.getIntegrationExternalId = exports.getIntegrationAvailableNamespacesOutput = exports.getIntegrationAvailableNamespaces = exports.getIntegrationAvailableLogsServicesOutput = exports.getIntegrationAvailableLogsServices = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  exports.getIntegrationAvailableLogsServices = null;
@@ -17,6 +17,9 @@ utilities.lazyLoad(exports, ["getIntegrationExternalId", "getIntegrationExternal
17
17
  exports.getIntegrationIamPermissions = null;
18
18
  exports.getIntegrationIamPermissionsOutput = null;
19
19
  utilities.lazyLoad(exports, ["getIntegrationIamPermissions", "getIntegrationIamPermissionsOutput"], () => require("./getIntegrationIamPermissions"));
20
+ exports.getIntegrationIamPermissionsResourceCollection = null;
21
+ exports.getIntegrationIamPermissionsResourceCollectionOutput = null;
22
+ utilities.lazyLoad(exports, ["getIntegrationIamPermissionsResourceCollection", "getIntegrationIamPermissionsResourceCollectionOutput"], () => require("./getIntegrationIamPermissionsResourceCollection"));
20
23
  exports.getIntegrationIamPermissionsStandard = null;
21
24
  exports.getIntegrationIamPermissionsStandardOutput = null;
22
25
  utilities.lazyLoad(exports, ["getIntegrationIamPermissionsStandard", "getIntegrationIamPermissionsStandardOutput"], () => require("./getIntegrationIamPermissionsStandard"));
package/aws/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../aws/index.ts"],"names":[],"mappings":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C,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,wBAAwB,EAAE,OAAO,CAAC,CAAA;AACnF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,4BAA4B,EAAE,OAAO,CAAC,CAAA;AACvF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,2BAA2B,EAAE,OAAO,CAAC,CAAA;AACtF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,0BAA0B,EAAE,OAAO,CAAC,CAAA;AACrF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,8BAA8B,EAAE,OAAO,CAAC,CAAA;AACzF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,0BAA0B,EAAE,OAAO,CAAC,CAAA"}
package/costBudget.d.ts CHANGED
@@ -3,6 +3,147 @@ import * as inputs from "./types/input";
3
3
  import * as outputs from "./types/output";
4
4
  /**
5
5
  * Provides a Datadog Cost Budget resource.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as datadog from "@pulumi/datadog";
12
+ *
13
+ * // Simple budget without tag filters
14
+ * // Note: Must provide entries for all months in the budget period
15
+ * const simple = new datadog.CostBudget("simple", {
16
+ * name: "My AWS Cost Budget",
17
+ * metricsQuery: "sum:aws.cost.amortized{*}",
18
+ * startMonth: 202501,
19
+ * endMonth: 202503,
20
+ * entries: [
21
+ * {
22
+ * month: 202501,
23
+ * amount: 1000,
24
+ * },
25
+ * {
26
+ * month: 202502,
27
+ * amount: 1200,
28
+ * },
29
+ * {
30
+ * month: 202503,
31
+ * amount: 1000,
32
+ * },
33
+ * ],
34
+ * });
35
+ * // Budget with tag filters
36
+ * // Note: Must provide entries for all months in the budget period
37
+ * const withTagFilters = new datadog.CostBudget("with_tag_filters", {
38
+ * name: "Production AWS Budget",
39
+ * metricsQuery: "sum:aws.cost.amortized{*} by {environment}",
40
+ * startMonth: 202501,
41
+ * endMonth: 202503,
42
+ * entries: [
43
+ * {
44
+ * month: 202501,
45
+ * amount: 2000,
46
+ * tagFilters: [{
47
+ * tagKey: "environment",
48
+ * tagValue: "production",
49
+ * }],
50
+ * },
51
+ * {
52
+ * month: 202502,
53
+ * amount: 2200,
54
+ * tagFilters: [{
55
+ * tagKey: "environment",
56
+ * tagValue: "production",
57
+ * }],
58
+ * },
59
+ * {
60
+ * month: 202503,
61
+ * amount: 2000,
62
+ * tagFilters: [{
63
+ * tagKey: "environment",
64
+ * tagValue: "production",
65
+ * }],
66
+ * },
67
+ * ],
68
+ * });
69
+ * // Hierarchical budget with multiple tag combinations
70
+ * // Note: Order of tags in "by {tag1,tag2}" determines UI hierarchy (parent,child)
71
+ * // Each unique tag combination must have entries for all months in the budget period
72
+ * const hierarchical = new datadog.CostBudget("hierarchical", {
73
+ * name: "Team-Based AWS Budget",
74
+ * metricsQuery: "sum:aws.cost.amortized{*} by {team,account}",
75
+ * startMonth: 202501,
76
+ * endMonth: 202503,
77
+ * entries: [
78
+ * {
79
+ * month: 202501,
80
+ * amount: 500,
81
+ * tagFilters: [
82
+ * {
83
+ * tagKey: "team",
84
+ * tagValue: "backend",
85
+ * },
86
+ * {
87
+ * tagKey: "account",
88
+ * tagValue: "staging",
89
+ * },
90
+ * ],
91
+ * },
92
+ * {
93
+ * month: 202502,
94
+ * amount: 500,
95
+ * tagFilters: [
96
+ * {
97
+ * tagKey: "team",
98
+ * tagValue: "backend",
99
+ * },
100
+ * {
101
+ * tagKey: "account",
102
+ * tagValue: "staging",
103
+ * },
104
+ * ],
105
+ * },
106
+ * {
107
+ * month: 202503,
108
+ * amount: 500,
109
+ * tagFilters: [
110
+ * {
111
+ * tagKey: "team",
112
+ * tagValue: "backend",
113
+ * },
114
+ * {
115
+ * tagKey: "account",
116
+ * tagValue: "staging",
117
+ * },
118
+ * ],
119
+ * },
120
+ * {
121
+ * month: 202501,
122
+ * amount: 1500,
123
+ * tagFilters: [
124
+ * {
125
+ * tagKey: "team",
126
+ * tagValue: "backend",
127
+ * },
128
+ * {
129
+ * tagKey: "account",
130
+ * tagValue: "production",
131
+ * },
132
+ * ],
133
+ * },
134
+ * ],
135
+ * });
136
+ * ```
137
+ *
138
+ * ## Import
139
+ *
140
+ * The `pulumi import` command can be used, for example:
141
+ *
142
+ * Cost budgets can be imported using their ID, e.g.
143
+ *
144
+ * ```sh
145
+ * $ pulumi import datadog:index/costBudget:CostBudget example a1b2c3d4-e5f6-7890-abcd-ef1234567890
146
+ * ```
6
147
  */
7
148
  export declare class CostBudget extends pulumi.CustomResource {
8
149
  /**
@@ -29,11 +170,11 @@ export declare class CostBudget extends pulumi.CustomResource {
29
170
  */
30
171
  readonly endMonth: pulumi.Output<number>;
31
172
  /**
32
- * The entries of the budget.
173
+ * The entries of the budget. **Note:** You must provide entries for all months in the budget period. For hierarchical budgets, each unique tag combination must have entries for all months.
33
174
  */
34
175
  readonly entries: pulumi.Output<outputs.CostBudgetEntry[] | undefined>;
35
176
  /**
36
- * The cost query used to track against the budget.
177
+ * The cost query used to track against the budget. **Note:** For hierarchical budgets using `by {tag1,tag2}`, the order of tags determines the UI hierarchy (parent, child).
37
178
  */
38
179
  readonly metricsQuery: pulumi.Output<string>;
39
180
  /**
@@ -70,11 +211,11 @@ export interface CostBudgetState {
70
211
  */
71
212
  endMonth?: pulumi.Input<number>;
72
213
  /**
73
- * The entries of the budget.
214
+ * The entries of the budget. **Note:** You must provide entries for all months in the budget period. For hierarchical budgets, each unique tag combination must have entries for all months.
74
215
  */
75
216
  entries?: pulumi.Input<pulumi.Input<inputs.CostBudgetEntry>[]>;
76
217
  /**
77
- * The cost query used to track against the budget.
218
+ * The cost query used to track against the budget. **Note:** For hierarchical budgets using `by {tag1,tag2}`, the order of tags determines the UI hierarchy (parent, child).
78
219
  */
79
220
  metricsQuery?: pulumi.Input<string>;
80
221
  /**
@@ -103,11 +244,11 @@ export interface CostBudgetArgs {
103
244
  */
104
245
  endMonth: pulumi.Input<number>;
105
246
  /**
106
- * The entries of the budget.
247
+ * The entries of the budget. **Note:** You must provide entries for all months in the budget period. For hierarchical budgets, each unique tag combination must have entries for all months.
107
248
  */
108
249
  entries?: pulumi.Input<pulumi.Input<inputs.CostBudgetEntry>[]>;
109
250
  /**
110
- * The cost query used to track against the budget.
251
+ * The cost query used to track against the budget. **Note:** For hierarchical budgets using `by {tag1,tag2}`, the order of tags determines the UI hierarchy (parent, child).
111
252
  */
112
253
  metricsQuery: pulumi.Input<string>;
113
254
  /**
package/costBudget.js CHANGED
@@ -7,6 +7,147 @@ const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
9
  * Provides a Datadog Cost Budget resource.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as datadog from "@pulumi/datadog";
16
+ *
17
+ * // Simple budget without tag filters
18
+ * // Note: Must provide entries for all months in the budget period
19
+ * const simple = new datadog.CostBudget("simple", {
20
+ * name: "My AWS Cost Budget",
21
+ * metricsQuery: "sum:aws.cost.amortized{*}",
22
+ * startMonth: 202501,
23
+ * endMonth: 202503,
24
+ * entries: [
25
+ * {
26
+ * month: 202501,
27
+ * amount: 1000,
28
+ * },
29
+ * {
30
+ * month: 202502,
31
+ * amount: 1200,
32
+ * },
33
+ * {
34
+ * month: 202503,
35
+ * amount: 1000,
36
+ * },
37
+ * ],
38
+ * });
39
+ * // Budget with tag filters
40
+ * // Note: Must provide entries for all months in the budget period
41
+ * const withTagFilters = new datadog.CostBudget("with_tag_filters", {
42
+ * name: "Production AWS Budget",
43
+ * metricsQuery: "sum:aws.cost.amortized{*} by {environment}",
44
+ * startMonth: 202501,
45
+ * endMonth: 202503,
46
+ * entries: [
47
+ * {
48
+ * month: 202501,
49
+ * amount: 2000,
50
+ * tagFilters: [{
51
+ * tagKey: "environment",
52
+ * tagValue: "production",
53
+ * }],
54
+ * },
55
+ * {
56
+ * month: 202502,
57
+ * amount: 2200,
58
+ * tagFilters: [{
59
+ * tagKey: "environment",
60
+ * tagValue: "production",
61
+ * }],
62
+ * },
63
+ * {
64
+ * month: 202503,
65
+ * amount: 2000,
66
+ * tagFilters: [{
67
+ * tagKey: "environment",
68
+ * tagValue: "production",
69
+ * }],
70
+ * },
71
+ * ],
72
+ * });
73
+ * // Hierarchical budget with multiple tag combinations
74
+ * // Note: Order of tags in "by {tag1,tag2}" determines UI hierarchy (parent,child)
75
+ * // Each unique tag combination must have entries for all months in the budget period
76
+ * const hierarchical = new datadog.CostBudget("hierarchical", {
77
+ * name: "Team-Based AWS Budget",
78
+ * metricsQuery: "sum:aws.cost.amortized{*} by {team,account}",
79
+ * startMonth: 202501,
80
+ * endMonth: 202503,
81
+ * entries: [
82
+ * {
83
+ * month: 202501,
84
+ * amount: 500,
85
+ * tagFilters: [
86
+ * {
87
+ * tagKey: "team",
88
+ * tagValue: "backend",
89
+ * },
90
+ * {
91
+ * tagKey: "account",
92
+ * tagValue: "staging",
93
+ * },
94
+ * ],
95
+ * },
96
+ * {
97
+ * month: 202502,
98
+ * amount: 500,
99
+ * tagFilters: [
100
+ * {
101
+ * tagKey: "team",
102
+ * tagValue: "backend",
103
+ * },
104
+ * {
105
+ * tagKey: "account",
106
+ * tagValue: "staging",
107
+ * },
108
+ * ],
109
+ * },
110
+ * {
111
+ * month: 202503,
112
+ * amount: 500,
113
+ * tagFilters: [
114
+ * {
115
+ * tagKey: "team",
116
+ * tagValue: "backend",
117
+ * },
118
+ * {
119
+ * tagKey: "account",
120
+ * tagValue: "staging",
121
+ * },
122
+ * ],
123
+ * },
124
+ * {
125
+ * month: 202501,
126
+ * amount: 1500,
127
+ * tagFilters: [
128
+ * {
129
+ * tagKey: "team",
130
+ * tagValue: "backend",
131
+ * },
132
+ * {
133
+ * tagKey: "account",
134
+ * tagValue: "production",
135
+ * },
136
+ * ],
137
+ * },
138
+ * ],
139
+ * });
140
+ * ```
141
+ *
142
+ * ## Import
143
+ *
144
+ * The `pulumi import` command can be used, for example:
145
+ *
146
+ * Cost budgets can be imported using their ID, e.g.
147
+ *
148
+ * ```sh
149
+ * $ pulumi import datadog:index/costBudget:CostBudget example a1b2c3d4-e5f6-7890-abcd-ef1234567890
150
+ * ```
10
151
  */
11
152
  class CostBudget extends pulumi.CustomResource {
12
153
  /**
package/costBudget.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"costBudget.js","sourceRoot":"","sources":["../costBudget.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACjE,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,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IAuCD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;YAC7C,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;YAC7C,cAAc,CAAC,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QAAQ,CAAC;YAC5C,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AArGL,gCAsGC;AAxFG,gBAAgB;AACO,uBAAY,GAAG,qCAAqC,CAAC"}
@@ -65,12 +65,23 @@ import * as pulumi from "@pulumi/pulumi";
65
65
  * method: "even",
66
66
  * }],
67
67
  * });
68
- * // Manage the order of custom allocation rules
69
- * const order = new datadog.CustomAllocationRules("order", {ruleIds: [
68
+ * // Example 1: Preserve mode (default) - allows unmanaged rules to exist at the end
69
+ * // This will preserve any existing rules created outside of Terraform as long as they are at the end
70
+ * const preserveOrder = new datadog.CustomAllocationRules("preserve_order", {ruleIds: [
70
71
  * rule1.id,
71
72
  * rule2.id,
72
73
  * rule3.id,
73
74
  * ]});
75
+ * // Example 2: Override mode - deletes all unmanaged rules and maintains strict order
76
+ * // This will delete any rules not defined in Terraform and enforce the exact order specified
77
+ * const overrideOrder = new datadog.CustomAllocationRules("override_order", {
78
+ * overrideUiDefinedResources: true,
79
+ * ruleIds: [
80
+ * rule1.id,
81
+ * rule2.id,
82
+ * rule3.id,
83
+ * ],
84
+ * });
74
85
  * ```
75
86
  *
76
87
  * ## Import
@@ -97,6 +108,7 @@ export declare class CustomAllocationRules extends pulumi.CustomResource {
97
108
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
98
109
  */
99
110
  static isInstance(obj: any): obj is CustomAllocationRules;
111
+ readonly overrideUiDefinedResources: pulumi.Output<boolean | undefined>;
100
112
  /**
101
113
  * The list of Custom Allocation Rule IDs, in order. Rules are executed in the order specified in this list. Comes from the `id` field on a `datadog.CustomAllocationRule` resource.
102
114
  */
@@ -114,6 +126,7 @@ export declare class CustomAllocationRules extends pulumi.CustomResource {
114
126
  * Input properties used for looking up and filtering CustomAllocationRules resources.
115
127
  */
116
128
  export interface CustomAllocationRulesState {
129
+ overrideUiDefinedResources?: pulumi.Input<boolean>;
117
130
  /**
118
131
  * The list of Custom Allocation Rule IDs, in order. Rules are executed in the order specified in this list. Comes from the `id` field on a `datadog.CustomAllocationRule` resource.
119
132
  */
@@ -123,6 +136,7 @@ export interface CustomAllocationRulesState {
123
136
  * The set of arguments for constructing a CustomAllocationRules resource.
124
137
  */
125
138
  export interface CustomAllocationRulesArgs {
139
+ overrideUiDefinedResources?: pulumi.Input<boolean>;
126
140
  /**
127
141
  * The list of Custom Allocation Rule IDs, in order. Rules are executed in the order specified in this list. Comes from the `id` field on a `datadog.CustomAllocationRule` resource.
128
142
  */
@@ -71,12 +71,23 @@ const utilities = require("./utilities");
71
71
  * method: "even",
72
72
  * }],
73
73
  * });
74
- * // Manage the order of custom allocation rules
75
- * const order = new datadog.CustomAllocationRules("order", {ruleIds: [
74
+ * // Example 1: Preserve mode (default) - allows unmanaged rules to exist at the end
75
+ * // This will preserve any existing rules created outside of Terraform as long as they are at the end
76
+ * const preserveOrder = new datadog.CustomAllocationRules("preserve_order", {ruleIds: [
76
77
  * rule1.id,
77
78
  * rule2.id,
78
79
  * rule3.id,
79
80
  * ]});
81
+ * // Example 2: Override mode - deletes all unmanaged rules and maintains strict order
82
+ * // This will delete any rules not defined in Terraform and enforce the exact order specified
83
+ * const overrideOrder = new datadog.CustomAllocationRules("override_order", {
84
+ * overrideUiDefinedResources: true,
85
+ * ruleIds: [
86
+ * rule1.id,
87
+ * rule2.id,
88
+ * rule3.id,
89
+ * ],
90
+ * });
80
91
  * ```
81
92
  *
82
93
  * ## Import
@@ -115,6 +126,7 @@ class CustomAllocationRules extends pulumi.CustomResource {
115
126
  opts = opts || {};
116
127
  if (opts.id) {
117
128
  const state = argsOrState;
129
+ resourceInputs["overrideUiDefinedResources"] = state?.overrideUiDefinedResources;
118
130
  resourceInputs["ruleIds"] = state?.ruleIds;
119
131
  }
120
132
  else {
@@ -122,6 +134,7 @@ class CustomAllocationRules extends pulumi.CustomResource {
122
134
  if (args?.ruleIds === undefined && !opts.urn) {
123
135
  throw new Error("Missing required property 'ruleIds'");
124
136
  }
137
+ resourceInputs["overrideUiDefinedResources"] = args?.overrideUiDefinedResources;
125
138
  resourceInputs["ruleIds"] = args?.ruleIds;
126
139
  }
127
140
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
@@ -1 +1 @@
1
- {"version":3,"file":"customAllocationRules.js","sourceRoot":"","sources":["../customAllocationRules.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiFG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAC5D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkC,EAAE,IAAmC;QAChI,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5E,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,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O,kCAAY,GAAG,2DAA2D,CAAC"}
@@ -0,0 +1,106 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Use this data source to retrieve information about an existing Datadog reference table. Query by either tableName or id (mutually exclusive). Supports all source types including cloud storage (S3, GCS, Azure) and external integrations (ServiceNow, Salesforce, Databricks, Snowflake, LOCAL_FILE).
6
+ */
7
+ export declare function getReferenceTable(args?: GetReferenceTableArgs, opts?: pulumi.InvokeOptions): Promise<GetReferenceTableResult>;
8
+ /**
9
+ * A collection of arguments for invoking getReferenceTable.
10
+ */
11
+ export interface GetReferenceTableArgs {
12
+ /**
13
+ * File metadata for the reference table. Contains sync settings for cloud storage sources.
14
+ */
15
+ fileMetadata?: inputs.GetReferenceTableFileMetadata;
16
+ /**
17
+ * The UUID of the reference table. Either id or tableName must be specified, but not both.
18
+ */
19
+ id?: string;
20
+ /**
21
+ * The schema definition for the reference table.
22
+ */
23
+ schema?: inputs.GetReferenceTableSchema;
24
+ /**
25
+ * The name of the reference table. Either id or tableName must be specified, but not both.
26
+ */
27
+ tableName?: string;
28
+ }
29
+ /**
30
+ * A collection of values returned by getReferenceTable.
31
+ */
32
+ export interface GetReferenceTableResult {
33
+ /**
34
+ * UUID of the user who created the reference table.
35
+ */
36
+ readonly createdBy: string;
37
+ /**
38
+ * The description of the reference table.
39
+ */
40
+ readonly description: string;
41
+ /**
42
+ * File metadata for the reference table. Contains sync settings for cloud storage sources.
43
+ */
44
+ readonly fileMetadata?: outputs.GetReferenceTableFileMetadata;
45
+ /**
46
+ * The UUID of the reference table. Either id or tableName must be specified, but not both.
47
+ */
48
+ readonly id: string;
49
+ /**
50
+ * UUID of the user who last updated the reference table.
51
+ */
52
+ readonly lastUpdatedBy: string;
53
+ /**
54
+ * The number of successfully processed rows in the reference table.
55
+ */
56
+ readonly rowCount: number;
57
+ /**
58
+ * The schema definition for the reference table.
59
+ */
60
+ readonly schema?: outputs.GetReferenceTableSchema;
61
+ /**
62
+ * The source type for the reference table (e.g., S3, GCS, AZURE, SERVICENOW, SALESFORCE, DATABRICKS, SNOWFLAKE, LOCAL_FILE).
63
+ */
64
+ readonly source: string;
65
+ /**
66
+ * The status of the reference table (e.g., DONE, PROCESSING, ERROR).
67
+ */
68
+ readonly status: string;
69
+ /**
70
+ * The name of the reference table. Either id or tableName must be specified, but not both.
71
+ */
72
+ readonly tableName: string;
73
+ /**
74
+ * The tags associated with the reference table.
75
+ */
76
+ readonly tags: string[];
77
+ /**
78
+ * The timestamp of the last update to the reference table in ISO 8601 format.
79
+ */
80
+ readonly updatedAt: string;
81
+ }
82
+ /**
83
+ * Use this data source to retrieve information about an existing Datadog reference table. Query by either tableName or id (mutually exclusive). Supports all source types including cloud storage (S3, GCS, Azure) and external integrations (ServiceNow, Salesforce, Databricks, Snowflake, LOCAL_FILE).
84
+ */
85
+ export declare function getReferenceTableOutput(args?: GetReferenceTableOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetReferenceTableResult>;
86
+ /**
87
+ * A collection of arguments for invoking getReferenceTable.
88
+ */
89
+ export interface GetReferenceTableOutputArgs {
90
+ /**
91
+ * File metadata for the reference table. Contains sync settings for cloud storage sources.
92
+ */
93
+ fileMetadata?: pulumi.Input<inputs.GetReferenceTableFileMetadataArgs>;
94
+ /**
95
+ * The UUID of the reference table. Either id or tableName must be specified, but not both.
96
+ */
97
+ id?: pulumi.Input<string>;
98
+ /**
99
+ * The schema definition for the reference table.
100
+ */
101
+ schema?: pulumi.Input<inputs.GetReferenceTableSchemaArgs>;
102
+ /**
103
+ * The name of the reference table. Either id or tableName must be specified, but not both.
104
+ */
105
+ tableName?: pulumi.Input<string>;
106
+ }