@pulumi/datadog 5.6.0-alpha.1781637329 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +9 -0
- package/index.d.ts.map +1 -1
- package/index.js +17 -2
- package/index.js.map +1 -1
- package/logsArchive.d.ts +24 -0
- package/logsArchive.d.ts.map +1 -1
- package/logsArchive.js +4 -0
- package/logsArchive.js.map +1 -1
- package/package.json +2 -2
- package/tagIndexingRule.d.ts +182 -0
- package/tagIndexingRule.d.ts.map +1 -0
- package/tagIndexingRule.js +129 -0
- package/tagIndexingRule.js.map +1 -0
- package/tagIndexingRuleExemption.d.ts +100 -0
- package/tagIndexingRuleExemption.d.ts.map +1 -0
- package/tagIndexingRuleExemption.js +101 -0
- package/tagIndexingRuleExemption.js.map +1 -0
- package/tagIndexingRuleOrder.d.ts +100 -0
- package/tagIndexingRuleOrder.d.ts.map +1 -0
- package/tagIndexingRuleOrder.js +119 -0
- package/tagIndexingRuleOrder.js.map +1 -0
- package/teamNotificationRule.d.ts +1 -1
- package/teamNotificationRule.js +1 -1
- package/types/input.d.ts +229 -127
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +229 -127
- package/types/output.d.ts.map +1 -1
|
@@ -0,0 +1,182 @@
|
|
|
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 Tag Indexing Rule resource. Tag indexing rules control which tag keys are indexed for metrics, reducing cardinality costs while preserving queryability.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as datadog from "@pulumi/datadog";
|
|
12
|
+
*
|
|
13
|
+
* const example = new datadog.TagIndexingRule("example", {
|
|
14
|
+
* name: "Index env and service tags for all web metrics",
|
|
15
|
+
* metricNameMatches: [
|
|
16
|
+
* "web.*",
|
|
17
|
+
* "http.*",
|
|
18
|
+
* ],
|
|
19
|
+
* tags: [
|
|
20
|
+
* "env",
|
|
21
|
+
* "service",
|
|
22
|
+
* "version",
|
|
23
|
+
* ],
|
|
24
|
+
* excludeTagsMode: false,
|
|
25
|
+
* options: {
|
|
26
|
+
* version: 1,
|
|
27
|
+
* data: {
|
|
28
|
+
* managePreexistingMetrics: true,
|
|
29
|
+
* overridePreviousRules: false,
|
|
30
|
+
* },
|
|
31
|
+
* },
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare class TagIndexingRule extends pulumi.CustomResource {
|
|
36
|
+
/**
|
|
37
|
+
* Get an existing TagIndexingRule resource's state with the given name, ID, and optional extra
|
|
38
|
+
* properties used to qualify the lookup.
|
|
39
|
+
*
|
|
40
|
+
* @param name The _unique_ name of the resulting resource.
|
|
41
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
42
|
+
* @param state Any extra arguments used during the lookup.
|
|
43
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
44
|
+
*/
|
|
45
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TagIndexingRuleState, opts?: pulumi.CustomResourceOptions): TagIndexingRule;
|
|
46
|
+
/**
|
|
47
|
+
* Returns true if the given object is an instance of TagIndexingRule. This is designed to work even
|
|
48
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
49
|
+
*/
|
|
50
|
+
static isInstance(obj: any): obj is TagIndexingRule;
|
|
51
|
+
/**
|
|
52
|
+
* Timestamp when the rule was created.
|
|
53
|
+
*/
|
|
54
|
+
readonly createdAt: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Handle of the user who created the rule.
|
|
57
|
+
*/
|
|
58
|
+
readonly createdByHandle: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* When true, the rule excludes the listed tags and indexes all others. When false (default), the rule includes only the listed tags. Defaults to `false`.
|
|
61
|
+
*/
|
|
62
|
+
readonly excludeTagsMode: pulumi.Output<boolean>;
|
|
63
|
+
/**
|
|
64
|
+
* Metric name prefixes excluded from the rule's scope.
|
|
65
|
+
*/
|
|
66
|
+
readonly ignoredMetricNameMatches: pulumi.Output<string[]>;
|
|
67
|
+
/**
|
|
68
|
+
* Metric name prefixes (glob patterns) this rule applies to.
|
|
69
|
+
*/
|
|
70
|
+
readonly metricNameMatches: pulumi.Output<string[]>;
|
|
71
|
+
/**
|
|
72
|
+
* Timestamp when the rule was last modified.
|
|
73
|
+
*/
|
|
74
|
+
readonly modifiedAt: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* Handle of the user who last modified the rule.
|
|
77
|
+
*/
|
|
78
|
+
readonly modifiedByHandle: pulumi.Output<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Human-readable name for the rule.
|
|
81
|
+
*/
|
|
82
|
+
readonly name: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Versioned configuration options for the rule.
|
|
85
|
+
*/
|
|
86
|
+
readonly options: pulumi.Output<outputs.TagIndexingRuleOptions | undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* Evaluation order within the org. Lower values are evaluated first. Server-assigned on create; use `datadog.TagIndexingRuleOrder` to control ordering.
|
|
89
|
+
*/
|
|
90
|
+
readonly ruleOrder: pulumi.Output<number>;
|
|
91
|
+
/**
|
|
92
|
+
* Tag keys this rule includes or excludes, depending on exclude*tags*mode.
|
|
93
|
+
*/
|
|
94
|
+
readonly tags: pulumi.Output<string[]>;
|
|
95
|
+
/**
|
|
96
|
+
* Create a TagIndexingRule resource with the given unique name, arguments, and options.
|
|
97
|
+
*
|
|
98
|
+
* @param name The _unique_ name of the resource.
|
|
99
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
100
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
101
|
+
*/
|
|
102
|
+
constructor(name: string, args: TagIndexingRuleArgs, opts?: pulumi.CustomResourceOptions);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Input properties used for looking up and filtering TagIndexingRule resources.
|
|
106
|
+
*/
|
|
107
|
+
export interface TagIndexingRuleState {
|
|
108
|
+
/**
|
|
109
|
+
* Timestamp when the rule was created.
|
|
110
|
+
*/
|
|
111
|
+
createdAt?: pulumi.Input<string | undefined>;
|
|
112
|
+
/**
|
|
113
|
+
* Handle of the user who created the rule.
|
|
114
|
+
*/
|
|
115
|
+
createdByHandle?: pulumi.Input<string | undefined>;
|
|
116
|
+
/**
|
|
117
|
+
* When true, the rule excludes the listed tags and indexes all others. When false (default), the rule includes only the listed tags. Defaults to `false`.
|
|
118
|
+
*/
|
|
119
|
+
excludeTagsMode?: pulumi.Input<boolean | undefined>;
|
|
120
|
+
/**
|
|
121
|
+
* Metric name prefixes excluded from the rule's scope.
|
|
122
|
+
*/
|
|
123
|
+
ignoredMetricNameMatches?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
124
|
+
/**
|
|
125
|
+
* Metric name prefixes (glob patterns) this rule applies to.
|
|
126
|
+
*/
|
|
127
|
+
metricNameMatches?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
128
|
+
/**
|
|
129
|
+
* Timestamp when the rule was last modified.
|
|
130
|
+
*/
|
|
131
|
+
modifiedAt?: pulumi.Input<string | undefined>;
|
|
132
|
+
/**
|
|
133
|
+
* Handle of the user who last modified the rule.
|
|
134
|
+
*/
|
|
135
|
+
modifiedByHandle?: pulumi.Input<string | undefined>;
|
|
136
|
+
/**
|
|
137
|
+
* Human-readable name for the rule.
|
|
138
|
+
*/
|
|
139
|
+
name?: pulumi.Input<string | undefined>;
|
|
140
|
+
/**
|
|
141
|
+
* Versioned configuration options for the rule.
|
|
142
|
+
*/
|
|
143
|
+
options?: pulumi.Input<inputs.TagIndexingRuleOptions | undefined>;
|
|
144
|
+
/**
|
|
145
|
+
* Evaluation order within the org. Lower values are evaluated first. Server-assigned on create; use `datadog.TagIndexingRuleOrder` to control ordering.
|
|
146
|
+
*/
|
|
147
|
+
ruleOrder?: pulumi.Input<number | undefined>;
|
|
148
|
+
/**
|
|
149
|
+
* Tag keys this rule includes or excludes, depending on exclude*tags*mode.
|
|
150
|
+
*/
|
|
151
|
+
tags?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* The set of arguments for constructing a TagIndexingRule resource.
|
|
155
|
+
*/
|
|
156
|
+
export interface TagIndexingRuleArgs {
|
|
157
|
+
/**
|
|
158
|
+
* When true, the rule excludes the listed tags and indexes all others. When false (default), the rule includes only the listed tags. Defaults to `false`.
|
|
159
|
+
*/
|
|
160
|
+
excludeTagsMode?: pulumi.Input<boolean | undefined>;
|
|
161
|
+
/**
|
|
162
|
+
* Metric name prefixes excluded from the rule's scope.
|
|
163
|
+
*/
|
|
164
|
+
ignoredMetricNameMatches?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
165
|
+
/**
|
|
166
|
+
* Metric name prefixes (glob patterns) this rule applies to.
|
|
167
|
+
*/
|
|
168
|
+
metricNameMatches: pulumi.Input<pulumi.Input<string>[]>;
|
|
169
|
+
/**
|
|
170
|
+
* Human-readable name for the rule.
|
|
171
|
+
*/
|
|
172
|
+
name: pulumi.Input<string>;
|
|
173
|
+
/**
|
|
174
|
+
* Versioned configuration options for the rule.
|
|
175
|
+
*/
|
|
176
|
+
options?: pulumi.Input<inputs.TagIndexingRuleOptions | undefined>;
|
|
177
|
+
/**
|
|
178
|
+
* Tag keys this rule includes or excludes, depending on exclude*tags*mode.
|
|
179
|
+
*/
|
|
180
|
+
tags?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
181
|
+
}
|
|
182
|
+
//# sourceMappingURL=tagIndexingRule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tagIndexingRule.d.ts","sourceRoot":"","sources":["../tagIndexingRule.ts"],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C,KAAK,CAAC,MAAM,CAAC,sBAAsB,GAAG,SAAS,CAAC,CAAC;IAClE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CAC3D;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACpD;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAC5E;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACxD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,sBAAsB,GAAG,SAAS,CAAC,CAAC;IAClE;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CAC3D"}
|
|
@@ -0,0 +1,129 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.TagIndexingRule = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Provides a Datadog Tag Indexing Rule resource. Tag indexing rules control which tag keys are indexed for metrics, reducing cardinality costs while preserving queryability.
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as datadog from "@pulumi/datadog";
|
|
39
|
+
*
|
|
40
|
+
* const example = new datadog.TagIndexingRule("example", {
|
|
41
|
+
* name: "Index env and service tags for all web metrics",
|
|
42
|
+
* metricNameMatches: [
|
|
43
|
+
* "web.*",
|
|
44
|
+
* "http.*",
|
|
45
|
+
* ],
|
|
46
|
+
* tags: [
|
|
47
|
+
* "env",
|
|
48
|
+
* "service",
|
|
49
|
+
* "version",
|
|
50
|
+
* ],
|
|
51
|
+
* excludeTagsMode: false,
|
|
52
|
+
* options: {
|
|
53
|
+
* version: 1,
|
|
54
|
+
* data: {
|
|
55
|
+
* managePreexistingMetrics: true,
|
|
56
|
+
* overridePreviousRules: false,
|
|
57
|
+
* },
|
|
58
|
+
* },
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
class TagIndexingRule extends pulumi.CustomResource {
|
|
63
|
+
/**
|
|
64
|
+
* Get an existing TagIndexingRule resource's state with the given name, ID, and optional extra
|
|
65
|
+
* properties used to qualify the lookup.
|
|
66
|
+
*
|
|
67
|
+
* @param name The _unique_ name of the resulting resource.
|
|
68
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
69
|
+
* @param state Any extra arguments used during the lookup.
|
|
70
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
71
|
+
*/
|
|
72
|
+
static get(name, id, state, opts) {
|
|
73
|
+
return new TagIndexingRule(name, state, { ...opts, id: id });
|
|
74
|
+
}
|
|
75
|
+
/** @internal */
|
|
76
|
+
static __pulumiType = 'datadog:index/tagIndexingRule:TagIndexingRule';
|
|
77
|
+
/**
|
|
78
|
+
* Returns true if the given object is an instance of TagIndexingRule. This is designed to work even
|
|
79
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
80
|
+
*/
|
|
81
|
+
static isInstance(obj) {
|
|
82
|
+
if (obj === undefined || obj === null) {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
return obj['__pulumiType'] === TagIndexingRule.__pulumiType;
|
|
86
|
+
}
|
|
87
|
+
constructor(name, argsOrState, opts) {
|
|
88
|
+
let resourceInputs = {};
|
|
89
|
+
opts = opts || {};
|
|
90
|
+
if (opts.id) {
|
|
91
|
+
const state = argsOrState;
|
|
92
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
93
|
+
resourceInputs["createdByHandle"] = state?.createdByHandle;
|
|
94
|
+
resourceInputs["excludeTagsMode"] = state?.excludeTagsMode;
|
|
95
|
+
resourceInputs["ignoredMetricNameMatches"] = state?.ignoredMetricNameMatches;
|
|
96
|
+
resourceInputs["metricNameMatches"] = state?.metricNameMatches;
|
|
97
|
+
resourceInputs["modifiedAt"] = state?.modifiedAt;
|
|
98
|
+
resourceInputs["modifiedByHandle"] = state?.modifiedByHandle;
|
|
99
|
+
resourceInputs["name"] = state?.name;
|
|
100
|
+
resourceInputs["options"] = state?.options;
|
|
101
|
+
resourceInputs["ruleOrder"] = state?.ruleOrder;
|
|
102
|
+
resourceInputs["tags"] = state?.tags;
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
const args = argsOrState;
|
|
106
|
+
if (args?.metricNameMatches === undefined && !opts.urn) {
|
|
107
|
+
throw new Error("Missing required property 'metricNameMatches'");
|
|
108
|
+
}
|
|
109
|
+
if (args?.name === undefined && !opts.urn) {
|
|
110
|
+
throw new Error("Missing required property 'name'");
|
|
111
|
+
}
|
|
112
|
+
resourceInputs["excludeTagsMode"] = args?.excludeTagsMode;
|
|
113
|
+
resourceInputs["ignoredMetricNameMatches"] = args?.ignoredMetricNameMatches;
|
|
114
|
+
resourceInputs["metricNameMatches"] = args?.metricNameMatches;
|
|
115
|
+
resourceInputs["name"] = args?.name;
|
|
116
|
+
resourceInputs["options"] = args?.options;
|
|
117
|
+
resourceInputs["tags"] = args?.tags;
|
|
118
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
119
|
+
resourceInputs["createdByHandle"] = undefined /*out*/;
|
|
120
|
+
resourceInputs["modifiedAt"] = undefined /*out*/;
|
|
121
|
+
resourceInputs["modifiedByHandle"] = undefined /*out*/;
|
|
122
|
+
resourceInputs["ruleOrder"] = undefined /*out*/;
|
|
123
|
+
}
|
|
124
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
125
|
+
super(TagIndexingRule.__pulumiType, name, resourceInputs, opts);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
exports.TagIndexingRule = TagIndexingRule;
|
|
129
|
+
//# sourceMappingURL=tagIndexingRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tagIndexingRule.js","sourceRoot":"","sources":["../tagIndexingRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACtE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,+CAA+C,CAAC;IAEtF;;;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,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;IAuDD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+C,CAAC;YAC9D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,iBAAiB,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O,CAAC;YAC1C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACvD,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,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AAvHL,0CAwHC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a Datadog Tag Indexing Rule Exemption resource. Exempts a metric from all tag indexing rules, preserving its current tag indexing behavior regardless of which rules match it.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as datadog from "@pulumi/datadog";
|
|
10
|
+
*
|
|
11
|
+
* const example = new datadog.TagIndexingRuleExemption("example", {
|
|
12
|
+
* metricName: "system.cpu.user",
|
|
13
|
+
* reason: "High-cardinality metric; exempted to reduce index costs",
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare class TagIndexingRuleExemption extends pulumi.CustomResource {
|
|
18
|
+
/**
|
|
19
|
+
* Get an existing TagIndexingRuleExemption resource's state with the given name, ID, and optional extra
|
|
20
|
+
* properties used to qualify the lookup.
|
|
21
|
+
*
|
|
22
|
+
* @param name The _unique_ name of the resulting resource.
|
|
23
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
24
|
+
* @param state Any extra arguments used during the lookup.
|
|
25
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
26
|
+
*/
|
|
27
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TagIndexingRuleExemptionState, opts?: pulumi.CustomResourceOptions): TagIndexingRuleExemption;
|
|
28
|
+
/**
|
|
29
|
+
* Returns true if the given object is an instance of TagIndexingRuleExemption. This is designed to work even
|
|
30
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
31
|
+
*/
|
|
32
|
+
static isInstance(obj: any): obj is TagIndexingRuleExemption;
|
|
33
|
+
/**
|
|
34
|
+
* Timestamp when the exemption was created.
|
|
35
|
+
*/
|
|
36
|
+
readonly createdAt: pulumi.Output<string>;
|
|
37
|
+
/**
|
|
38
|
+
* Handle of the user who created the exemption.
|
|
39
|
+
*/
|
|
40
|
+
readonly createdByHandle: pulumi.Output<string>;
|
|
41
|
+
/**
|
|
42
|
+
* Discriminates between an explicit exemption (`exemption`) and a pre-existing legacy tag configuration acting as an implicit exclusion (`legacyTagConfiguration`). A value of `legacyTagConfiguration` means this resource does not own the exemption state.
|
|
43
|
+
*/
|
|
44
|
+
readonly kind: pulumi.Output<string>;
|
|
45
|
+
/**
|
|
46
|
+
* The metric name to exempt. Changing this value forces a new resource to be created.
|
|
47
|
+
*/
|
|
48
|
+
readonly metricName: pulumi.Output<string>;
|
|
49
|
+
/**
|
|
50
|
+
* The reason the metric is exempt from tag indexing rules. Changing this value forces a new resource to be created.
|
|
51
|
+
*/
|
|
52
|
+
readonly reason: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* Create a TagIndexingRuleExemption resource with the given unique name, arguments, and options.
|
|
55
|
+
*
|
|
56
|
+
* @param name The _unique_ name of the resource.
|
|
57
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
58
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
59
|
+
*/
|
|
60
|
+
constructor(name: string, args: TagIndexingRuleExemptionArgs, opts?: pulumi.CustomResourceOptions);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Input properties used for looking up and filtering TagIndexingRuleExemption resources.
|
|
64
|
+
*/
|
|
65
|
+
export interface TagIndexingRuleExemptionState {
|
|
66
|
+
/**
|
|
67
|
+
* Timestamp when the exemption was created.
|
|
68
|
+
*/
|
|
69
|
+
createdAt?: pulumi.Input<string | undefined>;
|
|
70
|
+
/**
|
|
71
|
+
* Handle of the user who created the exemption.
|
|
72
|
+
*/
|
|
73
|
+
createdByHandle?: pulumi.Input<string | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* Discriminates between an explicit exemption (`exemption`) and a pre-existing legacy tag configuration acting as an implicit exclusion (`legacyTagConfiguration`). A value of `legacyTagConfiguration` means this resource does not own the exemption state.
|
|
76
|
+
*/
|
|
77
|
+
kind?: pulumi.Input<string | undefined>;
|
|
78
|
+
/**
|
|
79
|
+
* The metric name to exempt. Changing this value forces a new resource to be created.
|
|
80
|
+
*/
|
|
81
|
+
metricName?: pulumi.Input<string | undefined>;
|
|
82
|
+
/**
|
|
83
|
+
* The reason the metric is exempt from tag indexing rules. Changing this value forces a new resource to be created.
|
|
84
|
+
*/
|
|
85
|
+
reason?: pulumi.Input<string | undefined>;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* The set of arguments for constructing a TagIndexingRuleExemption resource.
|
|
89
|
+
*/
|
|
90
|
+
export interface TagIndexingRuleExemptionArgs {
|
|
91
|
+
/**
|
|
92
|
+
* The metric name to exempt. Changing this value forces a new resource to be created.
|
|
93
|
+
*/
|
|
94
|
+
metricName: pulumi.Input<string>;
|
|
95
|
+
/**
|
|
96
|
+
* The reason the metric is exempt from tag indexing rules. Changing this value forces a new resource to be created.
|
|
97
|
+
*/
|
|
98
|
+
reason: pulumi.Input<string>;
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=tagIndexingRuleExemption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tagIndexingRuleExemption.d.ts","sourceRoot":"","sources":["../tagIndexingRuleExemption.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;GAcG;AACH,qBAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IAC/D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,6BAA6B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,wBAAwB;IAOlK;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,wBAAwB;IAOnE;;OAEG;IACH,SAAgC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACjE;;OAEG;IACH,SAAgC,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACvE;;OAEG;IACH,SAAgC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC5D;;OAEG;IACH,SAAwB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC1D;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAEtD;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,4BAA4B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CA4BpG;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACnD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC7C;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IACzC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.TagIndexingRuleExemption = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Provides a Datadog Tag Indexing Rule Exemption resource. Exempts a metric from all tag indexing rules, preserving its current tag indexing behavior regardless of which rules match it.
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as datadog from "@pulumi/datadog";
|
|
39
|
+
*
|
|
40
|
+
* const example = new datadog.TagIndexingRuleExemption("example", {
|
|
41
|
+
* metricName: "system.cpu.user",
|
|
42
|
+
* reason: "High-cardinality metric; exempted to reduce index costs",
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
class TagIndexingRuleExemption extends pulumi.CustomResource {
|
|
47
|
+
/**
|
|
48
|
+
* Get an existing TagIndexingRuleExemption resource's state with the given name, ID, and optional extra
|
|
49
|
+
* properties used to qualify the lookup.
|
|
50
|
+
*
|
|
51
|
+
* @param name The _unique_ name of the resulting resource.
|
|
52
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
53
|
+
* @param state Any extra arguments used during the lookup.
|
|
54
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
55
|
+
*/
|
|
56
|
+
static get(name, id, state, opts) {
|
|
57
|
+
return new TagIndexingRuleExemption(name, state, { ...opts, id: id });
|
|
58
|
+
}
|
|
59
|
+
/** @internal */
|
|
60
|
+
static __pulumiType = 'datadog:index/tagIndexingRuleExemption:TagIndexingRuleExemption';
|
|
61
|
+
/**
|
|
62
|
+
* Returns true if the given object is an instance of TagIndexingRuleExemption. This is designed to work even
|
|
63
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
64
|
+
*/
|
|
65
|
+
static isInstance(obj) {
|
|
66
|
+
if (obj === undefined || obj === null) {
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
return obj['__pulumiType'] === TagIndexingRuleExemption.__pulumiType;
|
|
70
|
+
}
|
|
71
|
+
constructor(name, argsOrState, opts) {
|
|
72
|
+
let resourceInputs = {};
|
|
73
|
+
opts = opts || {};
|
|
74
|
+
if (opts.id) {
|
|
75
|
+
const state = argsOrState;
|
|
76
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
77
|
+
resourceInputs["createdByHandle"] = state?.createdByHandle;
|
|
78
|
+
resourceInputs["kind"] = state?.kind;
|
|
79
|
+
resourceInputs["metricName"] = state?.metricName;
|
|
80
|
+
resourceInputs["reason"] = state?.reason;
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
const args = argsOrState;
|
|
84
|
+
if (args?.metricName === undefined && !opts.urn) {
|
|
85
|
+
throw new Error("Missing required property 'metricName'");
|
|
86
|
+
}
|
|
87
|
+
if (args?.reason === undefined && !opts.urn) {
|
|
88
|
+
throw new Error("Missing required property 'reason'");
|
|
89
|
+
}
|
|
90
|
+
resourceInputs["metricName"] = args?.metricName;
|
|
91
|
+
resourceInputs["reason"] = args?.reason;
|
|
92
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
93
|
+
resourceInputs["createdByHandle"] = undefined /*out*/;
|
|
94
|
+
resourceInputs["kind"] = undefined /*out*/;
|
|
95
|
+
}
|
|
96
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
97
|
+
super(TagIndexingRuleExemption.__pulumiType, name, resourceInputs, opts);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.TagIndexingRuleExemption = TagIndexingRuleExemption;
|
|
101
|
+
//# sourceMappingURL=tagIndexingRuleExemption.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tagIndexingRuleExemption.js","sourceRoot":"","sources":["../tagIndexingRuleExemption.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IAC/D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqC,EAAE,IAAmC;QACnI,OAAO,IAAI,wBAAwB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,iEAAiE,CAAC;IAExG;;;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,wBAAwB,CAAC,YAAY,CAAC;IACzE,CAAC;IA+BD,YAAY,IAAY,EAAE,WAA0E,EAAE,IAAmC;QACrI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwD,CAAC;YACvE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,EAAE,eAAe,CAAC;YAC3D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;SAC5C;aAAM;YACH,MAAM,IAAI,GAAG,WAAuD,CAAC;YACrE,IAAI,IAAI,EAAE,UAAU,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC7C,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,IAAI,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,wBAAwB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7E,CAAC;;AAnFL,4DAoFC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a Datadog Tag Indexing Rule Order resource. Manages the evaluation order of tag indexing rules for an org. Only one instance of this resource should exist per org; the `name` field is a user-chosen identifier with no server-side equivalent.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as datadog from "@pulumi/datadog";
|
|
10
|
+
*
|
|
11
|
+
* const broad = new datadog.TagIndexingRule("broad", {
|
|
12
|
+
* name: "Broad rule applied first",
|
|
13
|
+
* metricNameMatches: ["*"],
|
|
14
|
+
* tags: [
|
|
15
|
+
* "env",
|
|
16
|
+
* "service",
|
|
17
|
+
* ],
|
|
18
|
+
* excludeTagsMode: false,
|
|
19
|
+
* });
|
|
20
|
+
* const specific = new datadog.TagIndexingRule("specific", {
|
|
21
|
+
* name: "Specific override for web metrics",
|
|
22
|
+
* metricNameMatches: ["web.*"],
|
|
23
|
+
* tags: [
|
|
24
|
+
* "env",
|
|
25
|
+
* "service",
|
|
26
|
+
* "version",
|
|
27
|
+
* "host",
|
|
28
|
+
* ],
|
|
29
|
+
* excludeTagsMode: false,
|
|
30
|
+
* });
|
|
31
|
+
* // Enforce evaluation order: broad rule first, then specific override.
|
|
32
|
+
* const example = new datadog.TagIndexingRuleOrder("example", {
|
|
33
|
+
* name: "main",
|
|
34
|
+
* ruleIds: [
|
|
35
|
+
* broad.id,
|
|
36
|
+
* specific.id,
|
|
37
|
+
* ],
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export declare class TagIndexingRuleOrder extends pulumi.CustomResource {
|
|
42
|
+
/**
|
|
43
|
+
* Get an existing TagIndexingRuleOrder resource's state with the given name, ID, and optional extra
|
|
44
|
+
* properties used to qualify the lookup.
|
|
45
|
+
*
|
|
46
|
+
* @param name The _unique_ name of the resulting resource.
|
|
47
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
48
|
+
* @param state Any extra arguments used during the lookup.
|
|
49
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
50
|
+
*/
|
|
51
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TagIndexingRuleOrderState, opts?: pulumi.CustomResourceOptions): TagIndexingRuleOrder;
|
|
52
|
+
/**
|
|
53
|
+
* Returns true if the given object is an instance of TagIndexingRuleOrder. This is designed to work even
|
|
54
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
55
|
+
*/
|
|
56
|
+
static isInstance(obj: any): obj is TagIndexingRuleOrder;
|
|
57
|
+
/**
|
|
58
|
+
* A unique name for the order resource. Recommended to match the resource name. No corresponding field exists in the API.
|
|
59
|
+
*/
|
|
60
|
+
readonly name: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Ordered list of ALL tag indexing rule UUIDs. The server assigns each rule a ruleOrder value (1, 2, 3, ...) corresponding to its position in this list. This resource claims full ownership of evaluation order: rules created outside Terraform (e.g. via the UI) will appear as configuration drift on the next plan. All rules must be listed here; omitting a rule ID will result in a 404 error from the API.
|
|
63
|
+
*/
|
|
64
|
+
readonly ruleIds: pulumi.Output<string[]>;
|
|
65
|
+
/**
|
|
66
|
+
* Create a TagIndexingRuleOrder resource with the given unique name, arguments, and options.
|
|
67
|
+
*
|
|
68
|
+
* @param name The _unique_ name of the resource.
|
|
69
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
70
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
71
|
+
*/
|
|
72
|
+
constructor(name: string, args: TagIndexingRuleOrderArgs, opts?: pulumi.CustomResourceOptions);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Input properties used for looking up and filtering TagIndexingRuleOrder resources.
|
|
76
|
+
*/
|
|
77
|
+
export interface TagIndexingRuleOrderState {
|
|
78
|
+
/**
|
|
79
|
+
* A unique name for the order resource. Recommended to match the resource name. No corresponding field exists in the API.
|
|
80
|
+
*/
|
|
81
|
+
name?: pulumi.Input<string | undefined>;
|
|
82
|
+
/**
|
|
83
|
+
* Ordered list of ALL tag indexing rule UUIDs. The server assigns each rule a ruleOrder value (1, 2, 3, ...) corresponding to its position in this list. This resource claims full ownership of evaluation order: rules created outside Terraform (e.g. via the UI) will appear as configuration drift on the next plan. All rules must be listed here; omitting a rule ID will result in a 404 error from the API.
|
|
84
|
+
*/
|
|
85
|
+
ruleIds?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* The set of arguments for constructing a TagIndexingRuleOrder resource.
|
|
89
|
+
*/
|
|
90
|
+
export interface TagIndexingRuleOrderArgs {
|
|
91
|
+
/**
|
|
92
|
+
* A unique name for the order resource. Recommended to match the resource name. No corresponding field exists in the API.
|
|
93
|
+
*/
|
|
94
|
+
name: pulumi.Input<string>;
|
|
95
|
+
/**
|
|
96
|
+
* Ordered list of ALL tag indexing rule UUIDs. The server assigns each rule a ruleOrder value (1, 2, 3, ...) corresponding to its position in this list. This resource claims full ownership of evaluation order: rules created outside Terraform (e.g. via the UI) will appear as configuration drift on the next plan. All rules must be listed here; omitting a rule ID will result in a 404 error from the API.
|
|
97
|
+
*/
|
|
98
|
+
ruleIds: pulumi.Input<pulumi.Input<string>[]>;
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=tagIndexingRuleOrder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tagIndexingRuleOrder.d.ts","sourceRoot":"","sources":["../tagIndexingRuleOrder.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,qBAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,yBAAyB,EAAE,IAAI,CAAC,EAAE,MA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