@pulumi/datadog 5.9.0-alpha.1784875250 → 5.9.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/actionConnection.d.ts +264 -0
- package/actionConnection.d.ts.map +1 -1
- package/actionConnection.js +44 -0
- package/actionConnection.js.map +1 -1
- package/agentlessScanningAzureScanOptions.d.ts +13 -0
- package/agentlessScanningAzureScanOptions.d.ts.map +1 -1
- package/agentlessScanningAzureScanOptions.js +6 -0
- package/agentlessScanningAzureScanOptions.js.map +1 -1
- package/agentlessScanningGcpScanOptions.d.ts +13 -0
- package/agentlessScanningGcpScanOptions.d.ts.map +1 -1
- package/agentlessScanningGcpScanOptions.js +6 -0
- package/agentlessScanningGcpScanOptions.js.map +1 -1
- package/aws/integrationAccount.d.ts +10 -0
- package/aws/integrationAccount.d.ts.map +1 -1
- package/aws/integrationAccount.js +10 -0
- package/aws/integrationAccount.js.map +1 -1
- package/costCustomForecast.d.ts +154 -0
- package/costCustomForecast.d.ts.map +1 -0
- package/costCustomForecast.js +144 -0
- package/costCustomForecast.js.map +1 -0
- package/getActionConnection.d.ts +264 -0
- package/getActionConnection.d.ts.map +1 -1
- package/getActionConnection.js +44 -0
- package/getActionConnection.js.map +1 -1
- package/getCostCustomForecast.d.ts +93 -0
- package/getCostCustomForecast.d.ts.map +1 -0
- package/getCostCustomForecast.js +75 -0
- package/getCostCustomForecast.js.map +1 -0
- package/getCurrentUser.d.ts +67 -0
- package/getCurrentUser.d.ts.map +1 -0
- package/getCurrentUser.js +67 -0
- package/getCurrentUser.js.map +1 -0
- package/getIncidentType.d.ts +5 -0
- package/getIncidentType.d.ts.map +1 -1
- package/getIncidentType.js.map +1 -1
- package/getSoftwareCatalog.d.ts +12 -0
- package/getSoftwareCatalog.d.ts.map +1 -1
- package/getSoftwareCatalog.js +2 -0
- package/getSoftwareCatalog.js.map +1 -1
- package/incidentType.d.ts +30 -0
- package/incidentType.d.ts.map +1 -1
- package/incidentType.js +18 -0
- package/incidentType.js.map +1 -1
- package/incidentUserDefinedField.d.ts +242 -0
- package/incidentUserDefinedField.d.ts.map +1 -0
- package/incidentUserDefinedField.js +152 -0
- package/incidentUserDefinedField.js.map +1 -0
- package/incidentUserDefinedRole.d.ts +134 -0
- package/incidentUserDefinedRole.d.ts.map +1 -0
- package/incidentUserDefinedRole.js +119 -0
- package/incidentUserDefinedRole.js.map +1 -0
- package/index.d.ts +15 -0
- package/index.d.ts.map +1 -1
- package/index.js +27 -6
- package/index.js.map +1 -1
- package/onCallTeamRoutingRules.d.ts +4 -4
- package/onCallTeamRoutingRules.js +4 -4
- package/package.json +2 -2
- package/restrictionPolicy.d.ts +6 -2
- package/restrictionPolicy.d.ts.map +1 -1
- package/restrictionPolicy.js +6 -2
- package/restrictionPolicy.js.map +1 -1
- package/securityMonitoringCriticalAsset.d.ts +2 -1
- package/securityMonitoringCriticalAsset.d.ts.map +1 -1
- package/securityMonitoringCriticalAsset.js +2 -1
- package/securityMonitoringCriticalAsset.js.map +1 -1
- package/types/input.d.ts +1324 -12
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +1010 -12
- package/types/output.d.ts.map +1 -1
|
@@ -0,0 +1,242 @@
|
|
|
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 incident user-defined field resource. This can be used to create and manage custom fields on Datadog incidents. **Note**: This resource targets an endpoint that is in preview and is subject to change.
|
|
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.IncidentType("example", {
|
|
14
|
+
* name: "Security Incident",
|
|
15
|
+
* description: "Security-related incidents requiring immediate attention",
|
|
16
|
+
* });
|
|
17
|
+
* // A dropdown user-defined field with a fixed set of valid values.
|
|
18
|
+
* const exampleIncidentUserDefinedField = new datadog.IncidentUserDefinedField("example", {
|
|
19
|
+
* name: "root_cause",
|
|
20
|
+
* displayName: "Root Cause",
|
|
21
|
+
* type: "dropdown",
|
|
22
|
+
* category: "what_happened",
|
|
23
|
+
* defaultValue: "service_bug",
|
|
24
|
+
* incidentType: example.id,
|
|
25
|
+
* validValues: [
|
|
26
|
+
* {
|
|
27
|
+
* displayName: "Service Bug",
|
|
28
|
+
* value: "service_bug",
|
|
29
|
+
* description: "A bug in the service code.",
|
|
30
|
+
* },
|
|
31
|
+
* {
|
|
32
|
+
* displayName: "Human Error",
|
|
33
|
+
* value: "human_error",
|
|
34
|
+
* },
|
|
35
|
+
* ],
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* ## Import
|
|
40
|
+
*
|
|
41
|
+
* The `pulumi import` command can be used, for example:
|
|
42
|
+
*
|
|
43
|
+
* ```sh
|
|
44
|
+
* $ pulumi import datadog:index/incidentUserDefinedField:IncidentUserDefinedField example "12345678-1234-1234-1234-1234567890ab"
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
export declare class IncidentUserDefinedField extends pulumi.CustomResource {
|
|
48
|
+
/**
|
|
49
|
+
* Get an existing IncidentUserDefinedField resource's state with the given name, ID, and optional extra
|
|
50
|
+
* properties used to qualify the lookup.
|
|
51
|
+
*
|
|
52
|
+
* @param name The _unique_ name of the resulting resource.
|
|
53
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
54
|
+
* @param state Any extra arguments used during the lookup.
|
|
55
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
56
|
+
*/
|
|
57
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: IncidentUserDefinedFieldState, opts?: pulumi.CustomResourceOptions): IncidentUserDefinedField;
|
|
58
|
+
/**
|
|
59
|
+
* Returns true if the given object is an instance of IncidentUserDefinedField. This is designed to work even
|
|
60
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
61
|
+
*/
|
|
62
|
+
static isInstance(obj: any): obj is IncidentUserDefinedField;
|
|
63
|
+
/**
|
|
64
|
+
* The section in which the field appears: `whatHappened` or `whyItHappened`. When unset, the field appears in the Attributes section.
|
|
65
|
+
*/
|
|
66
|
+
readonly category: pulumi.Output<string | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* Timestamp when the field was created.
|
|
69
|
+
*/
|
|
70
|
+
readonly created: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* The default value for the field. Must be one of the valid values when `validValues` is set.
|
|
73
|
+
*/
|
|
74
|
+
readonly defaultValue: pulumi.Output<string | undefined>;
|
|
75
|
+
/**
|
|
76
|
+
* Timestamp when the field was soft-deleted, or null if not deleted.
|
|
77
|
+
*/
|
|
78
|
+
readonly deleted: pulumi.Output<string>;
|
|
79
|
+
/**
|
|
80
|
+
* The human-readable name shown in the UI. Defaults to a formatted version of the name if not provided.
|
|
81
|
+
*/
|
|
82
|
+
readonly displayName: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* The ID of the incident type this field is associated with. Changing the incident type forces a new resource.
|
|
85
|
+
*/
|
|
86
|
+
readonly incidentType: pulumi.Output<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Metadata for autocomplete-type fields, describing how to populate autocomplete options. Populated by the server for supported fields.
|
|
89
|
+
*/
|
|
90
|
+
readonly metadata: pulumi.Output<outputs.IncidentUserDefinedFieldMetadata>;
|
|
91
|
+
/**
|
|
92
|
+
* Timestamp when the field was last modified.
|
|
93
|
+
*/
|
|
94
|
+
readonly modified: pulumi.Output<string>;
|
|
95
|
+
/**
|
|
96
|
+
* The unique identifier of the field. Must start with a letter or digit and contain only letters, digits, underscores, or periods. Changing the name forces a new resource.
|
|
97
|
+
*/
|
|
98
|
+
readonly name: pulumi.Output<string>;
|
|
99
|
+
/**
|
|
100
|
+
* A decimal string representing the field's display order in the UI. Assigned by the server when not provided.
|
|
101
|
+
*/
|
|
102
|
+
readonly ordinal: pulumi.Output<string>;
|
|
103
|
+
/**
|
|
104
|
+
* When true, users must fill out this field on incidents. Defaults to `false`.
|
|
105
|
+
*/
|
|
106
|
+
readonly required: pulumi.Output<boolean>;
|
|
107
|
+
/**
|
|
108
|
+
* When true, this field is reserved for system use and cannot be deleted.
|
|
109
|
+
*/
|
|
110
|
+
readonly reserved: pulumi.Output<boolean>;
|
|
111
|
+
/**
|
|
112
|
+
* For metric tag-type fields only, the metric tag key that powers the autocomplete options. Changing the tag key forces a new resource.
|
|
113
|
+
*/
|
|
114
|
+
readonly tagKey: pulumi.Output<string | undefined>;
|
|
115
|
+
/**
|
|
116
|
+
* The data type of the field. Changing the type forces a new resource. Valid values are `dropdown`, `multiselect`, `textbox`, `textarray`, `metrictag`, `autocomplete`, `number`, `datetime`.
|
|
117
|
+
*/
|
|
118
|
+
readonly type: pulumi.Output<string>;
|
|
119
|
+
/**
|
|
120
|
+
* A set of allowed values for dropdown, multiselect, and autocomplete fields; specify one block per value. Limited to 1000 values. The API does not preserve ordering, so this is modeled as an unordered set.
|
|
121
|
+
*/
|
|
122
|
+
readonly validValues: pulumi.Output<outputs.IncidentUserDefinedFieldValidValue[] | undefined>;
|
|
123
|
+
/**
|
|
124
|
+
* Create a IncidentUserDefinedField resource with the given unique name, arguments, and options.
|
|
125
|
+
*
|
|
126
|
+
* @param name The _unique_ name of the resource.
|
|
127
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
128
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
129
|
+
*/
|
|
130
|
+
constructor(name: string, args: IncidentUserDefinedFieldArgs, opts?: pulumi.CustomResourceOptions);
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Input properties used for looking up and filtering IncidentUserDefinedField resources.
|
|
134
|
+
*/
|
|
135
|
+
export interface IncidentUserDefinedFieldState {
|
|
136
|
+
/**
|
|
137
|
+
* The section in which the field appears: `whatHappened` or `whyItHappened`. When unset, the field appears in the Attributes section.
|
|
138
|
+
*/
|
|
139
|
+
category?: pulumi.Input<string | undefined>;
|
|
140
|
+
/**
|
|
141
|
+
* Timestamp when the field was created.
|
|
142
|
+
*/
|
|
143
|
+
created?: pulumi.Input<string | undefined>;
|
|
144
|
+
/**
|
|
145
|
+
* The default value for the field. Must be one of the valid values when `validValues` is set.
|
|
146
|
+
*/
|
|
147
|
+
defaultValue?: pulumi.Input<string | undefined>;
|
|
148
|
+
/**
|
|
149
|
+
* Timestamp when the field was soft-deleted, or null if not deleted.
|
|
150
|
+
*/
|
|
151
|
+
deleted?: pulumi.Input<string | undefined>;
|
|
152
|
+
/**
|
|
153
|
+
* The human-readable name shown in the UI. Defaults to a formatted version of the name if not provided.
|
|
154
|
+
*/
|
|
155
|
+
displayName?: pulumi.Input<string | undefined>;
|
|
156
|
+
/**
|
|
157
|
+
* The ID of the incident type this field is associated with. Changing the incident type forces a new resource.
|
|
158
|
+
*/
|
|
159
|
+
incidentType?: pulumi.Input<string | undefined>;
|
|
160
|
+
/**
|
|
161
|
+
* Metadata for autocomplete-type fields, describing how to populate autocomplete options. Populated by the server for supported fields.
|
|
162
|
+
*/
|
|
163
|
+
metadata?: pulumi.Input<inputs.IncidentUserDefinedFieldMetadata | undefined>;
|
|
164
|
+
/**
|
|
165
|
+
* Timestamp when the field was last modified.
|
|
166
|
+
*/
|
|
167
|
+
modified?: pulumi.Input<string | undefined>;
|
|
168
|
+
/**
|
|
169
|
+
* The unique identifier of the field. Must start with a letter or digit and contain only letters, digits, underscores, or periods. Changing the name forces a new resource.
|
|
170
|
+
*/
|
|
171
|
+
name?: pulumi.Input<string | undefined>;
|
|
172
|
+
/**
|
|
173
|
+
* A decimal string representing the field's display order in the UI. Assigned by the server when not provided.
|
|
174
|
+
*/
|
|
175
|
+
ordinal?: pulumi.Input<string | undefined>;
|
|
176
|
+
/**
|
|
177
|
+
* When true, users must fill out this field on incidents. Defaults to `false`.
|
|
178
|
+
*/
|
|
179
|
+
required?: pulumi.Input<boolean | undefined>;
|
|
180
|
+
/**
|
|
181
|
+
* When true, this field is reserved for system use and cannot be deleted.
|
|
182
|
+
*/
|
|
183
|
+
reserved?: pulumi.Input<boolean | undefined>;
|
|
184
|
+
/**
|
|
185
|
+
* For metric tag-type fields only, the metric tag key that powers the autocomplete options. Changing the tag key forces a new resource.
|
|
186
|
+
*/
|
|
187
|
+
tagKey?: pulumi.Input<string | undefined>;
|
|
188
|
+
/**
|
|
189
|
+
* The data type of the field. Changing the type forces a new resource. Valid values are `dropdown`, `multiselect`, `textbox`, `textarray`, `metrictag`, `autocomplete`, `number`, `datetime`.
|
|
190
|
+
*/
|
|
191
|
+
type?: pulumi.Input<string | undefined>;
|
|
192
|
+
/**
|
|
193
|
+
* A set of allowed values for dropdown, multiselect, and autocomplete fields; specify one block per value. Limited to 1000 values. The API does not preserve ordering, so this is modeled as an unordered set.
|
|
194
|
+
*/
|
|
195
|
+
validValues?: pulumi.Input<pulumi.Input<inputs.IncidentUserDefinedFieldValidValue>[] | undefined>;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* The set of arguments for constructing a IncidentUserDefinedField resource.
|
|
199
|
+
*/
|
|
200
|
+
export interface IncidentUserDefinedFieldArgs {
|
|
201
|
+
/**
|
|
202
|
+
* The section in which the field appears: `whatHappened` or `whyItHappened`. When unset, the field appears in the Attributes section.
|
|
203
|
+
*/
|
|
204
|
+
category?: pulumi.Input<string | undefined>;
|
|
205
|
+
/**
|
|
206
|
+
* The default value for the field. Must be one of the valid values when `validValues` is set.
|
|
207
|
+
*/
|
|
208
|
+
defaultValue?: pulumi.Input<string | undefined>;
|
|
209
|
+
/**
|
|
210
|
+
* The human-readable name shown in the UI. Defaults to a formatted version of the name if not provided.
|
|
211
|
+
*/
|
|
212
|
+
displayName?: pulumi.Input<string | undefined>;
|
|
213
|
+
/**
|
|
214
|
+
* The ID of the incident type this field is associated with. Changing the incident type forces a new resource.
|
|
215
|
+
*/
|
|
216
|
+
incidentType: pulumi.Input<string>;
|
|
217
|
+
/**
|
|
218
|
+
* The unique identifier of the field. Must start with a letter or digit and contain only letters, digits, underscores, or periods. Changing the name forces a new resource.
|
|
219
|
+
*/
|
|
220
|
+
name: pulumi.Input<string>;
|
|
221
|
+
/**
|
|
222
|
+
* A decimal string representing the field's display order in the UI. Assigned by the server when not provided.
|
|
223
|
+
*/
|
|
224
|
+
ordinal?: pulumi.Input<string | undefined>;
|
|
225
|
+
/**
|
|
226
|
+
* When true, users must fill out this field on incidents. Defaults to `false`.
|
|
227
|
+
*/
|
|
228
|
+
required?: pulumi.Input<boolean | undefined>;
|
|
229
|
+
/**
|
|
230
|
+
* For metric tag-type fields only, the metric tag key that powers the autocomplete options. Changing the tag key forces a new resource.
|
|
231
|
+
*/
|
|
232
|
+
tagKey?: pulumi.Input<string | undefined>;
|
|
233
|
+
/**
|
|
234
|
+
* The data type of the field. Changing the type forces a new resource. Valid values are `dropdown`, `multiselect`, `textbox`, `textarray`, `metrictag`, `autocomplete`, `number`, `datetime`.
|
|
235
|
+
*/
|
|
236
|
+
type: pulumi.Input<string>;
|
|
237
|
+
/**
|
|
238
|
+
* A set of allowed values for dropdown, multiselect, and autocomplete fields; specify one block per value. Limited to 1000 values. The API does not preserve ordering, so this is modeled as an unordered set.
|
|
239
|
+
*/
|
|
240
|
+
validValues?: pulumi.Input<pulumi.Input<inputs.IncidentUserDefinedFieldValidValue>[] | undefined>;
|
|
241
|
+
}
|
|
242
|
+
//# sourceMappingURL=incidentUserDefinedField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"incidentUserDefinedField.d.ts","sourceRoot":"","sources":["../incidentUserDefinedField.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;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AM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC3C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,kCAAkC,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CACrG"}
|
|
@@ -0,0 +1,152 @@
|
|
|
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.IncidentUserDefinedField = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Provides a Datadog incident user-defined field resource. This can be used to create and manage custom fields on Datadog incidents. **Note**: This resource targets an endpoint that is in preview and is subject to change.
|
|
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.IncidentType("example", {
|
|
41
|
+
* name: "Security Incident",
|
|
42
|
+
* description: "Security-related incidents requiring immediate attention",
|
|
43
|
+
* });
|
|
44
|
+
* // A dropdown user-defined field with a fixed set of valid values.
|
|
45
|
+
* const exampleIncidentUserDefinedField = new datadog.IncidentUserDefinedField("example", {
|
|
46
|
+
* name: "root_cause",
|
|
47
|
+
* displayName: "Root Cause",
|
|
48
|
+
* type: "dropdown",
|
|
49
|
+
* category: "what_happened",
|
|
50
|
+
* defaultValue: "service_bug",
|
|
51
|
+
* incidentType: example.id,
|
|
52
|
+
* validValues: [
|
|
53
|
+
* {
|
|
54
|
+
* displayName: "Service Bug",
|
|
55
|
+
* value: "service_bug",
|
|
56
|
+
* description: "A bug in the service code.",
|
|
57
|
+
* },
|
|
58
|
+
* {
|
|
59
|
+
* displayName: "Human Error",
|
|
60
|
+
* value: "human_error",
|
|
61
|
+
* },
|
|
62
|
+
* ],
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* ## Import
|
|
67
|
+
*
|
|
68
|
+
* The `pulumi import` command can be used, for example:
|
|
69
|
+
*
|
|
70
|
+
* ```sh
|
|
71
|
+
* $ pulumi import datadog:index/incidentUserDefinedField:IncidentUserDefinedField example "12345678-1234-1234-1234-1234567890ab"
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
class IncidentUserDefinedField extends pulumi.CustomResource {
|
|
75
|
+
/**
|
|
76
|
+
* Get an existing IncidentUserDefinedField resource's state with the given name, ID, and optional extra
|
|
77
|
+
* properties used to qualify the lookup.
|
|
78
|
+
*
|
|
79
|
+
* @param name The _unique_ name of the resulting resource.
|
|
80
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
81
|
+
* @param state Any extra arguments used during the lookup.
|
|
82
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
83
|
+
*/
|
|
84
|
+
static get(name, id, state, opts) {
|
|
85
|
+
return new IncidentUserDefinedField(name, state, { ...opts, id: id });
|
|
86
|
+
}
|
|
87
|
+
/** @internal */
|
|
88
|
+
static __pulumiType = 'datadog:index/incidentUserDefinedField:IncidentUserDefinedField';
|
|
89
|
+
/**
|
|
90
|
+
* Returns true if the given object is an instance of IncidentUserDefinedField. This is designed to work even
|
|
91
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
92
|
+
*/
|
|
93
|
+
static isInstance(obj) {
|
|
94
|
+
if (obj === undefined || obj === null) {
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
return obj['__pulumiType'] === IncidentUserDefinedField.__pulumiType;
|
|
98
|
+
}
|
|
99
|
+
constructor(name, argsOrState, opts) {
|
|
100
|
+
let resourceInputs = {};
|
|
101
|
+
opts = opts || {};
|
|
102
|
+
if (opts.id) {
|
|
103
|
+
const state = argsOrState;
|
|
104
|
+
resourceInputs["category"] = state?.category;
|
|
105
|
+
resourceInputs["created"] = state?.created;
|
|
106
|
+
resourceInputs["defaultValue"] = state?.defaultValue;
|
|
107
|
+
resourceInputs["deleted"] = state?.deleted;
|
|
108
|
+
resourceInputs["displayName"] = state?.displayName;
|
|
109
|
+
resourceInputs["incidentType"] = state?.incidentType;
|
|
110
|
+
resourceInputs["metadata"] = state?.metadata;
|
|
111
|
+
resourceInputs["modified"] = state?.modified;
|
|
112
|
+
resourceInputs["name"] = state?.name;
|
|
113
|
+
resourceInputs["ordinal"] = state?.ordinal;
|
|
114
|
+
resourceInputs["required"] = state?.required;
|
|
115
|
+
resourceInputs["reserved"] = state?.reserved;
|
|
116
|
+
resourceInputs["tagKey"] = state?.tagKey;
|
|
117
|
+
resourceInputs["type"] = state?.type;
|
|
118
|
+
resourceInputs["validValues"] = state?.validValues;
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
const args = argsOrState;
|
|
122
|
+
if (args?.incidentType === undefined && !opts.urn) {
|
|
123
|
+
throw new Error("Missing required property 'incidentType'");
|
|
124
|
+
}
|
|
125
|
+
if (args?.name === undefined && !opts.urn) {
|
|
126
|
+
throw new Error("Missing required property 'name'");
|
|
127
|
+
}
|
|
128
|
+
if (args?.type === undefined && !opts.urn) {
|
|
129
|
+
throw new Error("Missing required property 'type'");
|
|
130
|
+
}
|
|
131
|
+
resourceInputs["category"] = args?.category;
|
|
132
|
+
resourceInputs["defaultValue"] = args?.defaultValue;
|
|
133
|
+
resourceInputs["displayName"] = args?.displayName;
|
|
134
|
+
resourceInputs["incidentType"] = args?.incidentType;
|
|
135
|
+
resourceInputs["name"] = args?.name;
|
|
136
|
+
resourceInputs["ordinal"] = args?.ordinal;
|
|
137
|
+
resourceInputs["required"] = args?.required;
|
|
138
|
+
resourceInputs["tagKey"] = args?.tagKey;
|
|
139
|
+
resourceInputs["type"] = args?.type;
|
|
140
|
+
resourceInputs["validValues"] = args?.validValues;
|
|
141
|
+
resourceInputs["created"] = undefined /*out*/;
|
|
142
|
+
resourceInputs["deleted"] = undefined /*out*/;
|
|
143
|
+
resourceInputs["metadata"] = undefined /*out*/;
|
|
144
|
+
resourceInputs["modified"] = undefined /*out*/;
|
|
145
|
+
resourceInputs["reserved"] = undefined /*out*/;
|
|
146
|
+
}
|
|
147
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
148
|
+
super(IncidentUserDefinedField.__pulumiType, name, resourceInputs, opts);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
exports.IncidentUserDefinedField = IncidentUserDefinedField;
|
|
152
|
+
//# sourceMappingURL=incidentUserDefinedField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"incidentUserDefinedField.js","sourceRoot":"","sources":["../incidentUserDefinedField.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;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;IAuED,YAAY,IAAY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AC;SAClD;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;;AAlJL,4DAmJC"}
|
|
@@ -0,0 +1,134 @@
|
|
|
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 incident user-defined role resource. This can be used to create and manage custom responder roles that are available for a given incident type. **Note**: This resource targets an endpoint that is in preview and is subject to change.
|
|
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.IncidentType("example", {
|
|
14
|
+
* name: "Security Incident",
|
|
15
|
+
* description: "Security-related incidents requiring immediate attention",
|
|
16
|
+
* });
|
|
17
|
+
* const techLead = new datadog.IncidentUserDefinedRole("tech_lead", {
|
|
18
|
+
* name: "Tech Lead",
|
|
19
|
+
* description: "The technical lead for the incident.",
|
|
20
|
+
* incidentType: example.id,
|
|
21
|
+
* policy: {
|
|
22
|
+
* is_single: true,
|
|
23
|
+
* },
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* ## Import
|
|
28
|
+
*
|
|
29
|
+
* The `pulumi import` command can be used, for example:
|
|
30
|
+
*
|
|
31
|
+
* ```sh
|
|
32
|
+
* $ pulumi import datadog:index/incidentUserDefinedRole:IncidentUserDefinedRole tech_lead "12345678-1234-1234-1234-1234567890ab"
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare class IncidentUserDefinedRole extends pulumi.CustomResource {
|
|
36
|
+
/**
|
|
37
|
+
* Get an existing IncidentUserDefinedRole 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?: IncidentUserDefinedRoleState, opts?: pulumi.CustomResourceOptions): IncidentUserDefinedRole;
|
|
46
|
+
/**
|
|
47
|
+
* Returns true if the given object is an instance of IncidentUserDefinedRole. 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 IncidentUserDefinedRole;
|
|
51
|
+
/**
|
|
52
|
+
* Timestamp when the user-defined role was created.
|
|
53
|
+
*/
|
|
54
|
+
readonly created: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* A description of the user-defined role. At most 1024 characters.
|
|
57
|
+
*/
|
|
58
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
59
|
+
/**
|
|
60
|
+
* The ID of the incident type this user-defined role is associated with.
|
|
61
|
+
*/
|
|
62
|
+
readonly incidentType: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Timestamp when the user-defined role was last modified.
|
|
65
|
+
*/
|
|
66
|
+
readonly modified: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* The name of the user-defined role. Cannot be a reserved name ("Incident Commander" or "Responder") and must be at most 255 characters.
|
|
69
|
+
*/
|
|
70
|
+
readonly name: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Policy configuration for the user-defined role. Defaults to a multi-assignee policy when omitted.
|
|
73
|
+
*/
|
|
74
|
+
readonly policy: pulumi.Output<outputs.IncidentUserDefinedRolePolicy>;
|
|
75
|
+
/**
|
|
76
|
+
* Create a IncidentUserDefinedRole resource with the given unique name, arguments, and options.
|
|
77
|
+
*
|
|
78
|
+
* @param name The _unique_ name of the resource.
|
|
79
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
80
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
81
|
+
*/
|
|
82
|
+
constructor(name: string, args: IncidentUserDefinedRoleArgs, opts?: pulumi.CustomResourceOptions);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Input properties used for looking up and filtering IncidentUserDefinedRole resources.
|
|
86
|
+
*/
|
|
87
|
+
export interface IncidentUserDefinedRoleState {
|
|
88
|
+
/**
|
|
89
|
+
* Timestamp when the user-defined role was created.
|
|
90
|
+
*/
|
|
91
|
+
created?: pulumi.Input<string | undefined>;
|
|
92
|
+
/**
|
|
93
|
+
* A description of the user-defined role. At most 1024 characters.
|
|
94
|
+
*/
|
|
95
|
+
description?: pulumi.Input<string | undefined>;
|
|
96
|
+
/**
|
|
97
|
+
* The ID of the incident type this user-defined role is associated with.
|
|
98
|
+
*/
|
|
99
|
+
incidentType?: pulumi.Input<string | undefined>;
|
|
100
|
+
/**
|
|
101
|
+
* Timestamp when the user-defined role was last modified.
|
|
102
|
+
*/
|
|
103
|
+
modified?: pulumi.Input<string | undefined>;
|
|
104
|
+
/**
|
|
105
|
+
* The name of the user-defined role. Cannot be a reserved name ("Incident Commander" or "Responder") and must be at most 255 characters.
|
|
106
|
+
*/
|
|
107
|
+
name?: pulumi.Input<string | undefined>;
|
|
108
|
+
/**
|
|
109
|
+
* Policy configuration for the user-defined role. Defaults to a multi-assignee policy when omitted.
|
|
110
|
+
*/
|
|
111
|
+
policy?: pulumi.Input<inputs.IncidentUserDefinedRolePolicy | undefined>;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* The set of arguments for constructing a IncidentUserDefinedRole resource.
|
|
115
|
+
*/
|
|
116
|
+
export interface IncidentUserDefinedRoleArgs {
|
|
117
|
+
/**
|
|
118
|
+
* A description of the user-defined role. At most 1024 characters.
|
|
119
|
+
*/
|
|
120
|
+
description?: pulumi.Input<string | undefined>;
|
|
121
|
+
/**
|
|
122
|
+
* The ID of the incident type this user-defined role is associated with.
|
|
123
|
+
*/
|
|
124
|
+
incidentType: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* The name of the user-defined role. Cannot be a reserved name ("Incident Commander" or "Responder") and must be at most 255 characters.
|
|
127
|
+
*/
|
|
128
|
+
name: pulumi.Input<string>;
|
|
129
|
+
/**
|
|
130
|
+
* Policy configuration for the user-defined role. Defaults to a multi-assignee policy when omitted.
|
|
131
|
+
*/
|
|
132
|
+
policy?: pulumi.Input<inputs.IncidentUserDefinedRolePolicy | undefined>;
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=incidentUserDefinedRole.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"incidentUserDefinedRole.d.ts","sourceRoot":"","sources":["../incidentUserDefinedRole.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,qBAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,4BAA4B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,uBAAuB;IAOhK;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,uBAAuB;IAOlE;;OAEG;IACH,SAAgC,OAAO,EAAE,MAA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xC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,6BAA6B,GAAG,SAAS,CAAC,CAAC;CAC3E"}
|
|
@@ -0,0 +1,119 @@
|
|
|
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.IncidentUserDefinedRole = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Provides a Datadog incident user-defined role resource. This can be used to create and manage custom responder roles that are available for a given incident type. **Note**: This resource targets an endpoint that is in preview and is subject to change.
|
|
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.IncidentType("example", {
|
|
41
|
+
* name: "Security Incident",
|
|
42
|
+
* description: "Security-related incidents requiring immediate attention",
|
|
43
|
+
* });
|
|
44
|
+
* const techLead = new datadog.IncidentUserDefinedRole("tech_lead", {
|
|
45
|
+
* name: "Tech Lead",
|
|
46
|
+
* description: "The technical lead for the incident.",
|
|
47
|
+
* incidentType: example.id,
|
|
48
|
+
* policy: {
|
|
49
|
+
* is_single: true,
|
|
50
|
+
* },
|
|
51
|
+
* });
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* ## Import
|
|
55
|
+
*
|
|
56
|
+
* The `pulumi import` command can be used, for example:
|
|
57
|
+
*
|
|
58
|
+
* ```sh
|
|
59
|
+
* $ pulumi import datadog:index/incidentUserDefinedRole:IncidentUserDefinedRole tech_lead "12345678-1234-1234-1234-1234567890ab"
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
class IncidentUserDefinedRole extends pulumi.CustomResource {
|
|
63
|
+
/**
|
|
64
|
+
* Get an existing IncidentUserDefinedRole 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 IncidentUserDefinedRole(name, state, { ...opts, id: id });
|
|
74
|
+
}
|
|
75
|
+
/** @internal */
|
|
76
|
+
static __pulumiType = 'datadog:index/incidentUserDefinedRole:IncidentUserDefinedRole';
|
|
77
|
+
/**
|
|
78
|
+
* Returns true if the given object is an instance of IncidentUserDefinedRole. 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'] === IncidentUserDefinedRole.__pulumiType;
|
|
86
|
+
}
|
|
87
|
+
constructor(name, argsOrState, opts) {
|
|
88
|
+
let resourceInputs = {};
|
|
89
|
+
opts = opts || {};
|
|
90
|
+
if (opts.id) {
|
|
91
|
+
const state = argsOrState;
|
|
92
|
+
resourceInputs["created"] = state?.created;
|
|
93
|
+
resourceInputs["description"] = state?.description;
|
|
94
|
+
resourceInputs["incidentType"] = state?.incidentType;
|
|
95
|
+
resourceInputs["modified"] = state?.modified;
|
|
96
|
+
resourceInputs["name"] = state?.name;
|
|
97
|
+
resourceInputs["policy"] = state?.policy;
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
const args = argsOrState;
|
|
101
|
+
if (args?.incidentType === undefined && !opts.urn) {
|
|
102
|
+
throw new Error("Missing required property 'incidentType'");
|
|
103
|
+
}
|
|
104
|
+
if (args?.name === undefined && !opts.urn) {
|
|
105
|
+
throw new Error("Missing required property 'name'");
|
|
106
|
+
}
|
|
107
|
+
resourceInputs["description"] = args?.description;
|
|
108
|
+
resourceInputs["incidentType"] = args?.incidentType;
|
|
109
|
+
resourceInputs["name"] = args?.name;
|
|
110
|
+
resourceInputs["policy"] = args?.policy;
|
|
111
|
+
resourceInputs["created"] = undefined /*out*/;
|
|
112
|
+
resourceInputs["modified"] = undefined /*out*/;
|
|
113
|
+
}
|
|
114
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
115
|
+
super(IncidentUserDefinedRole.__pulumiType, name, resourceInputs, opts);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.IncidentUserDefinedRole = IncidentUserDefinedRole;
|
|
119
|
+
//# sourceMappingURL=incidentUserDefinedRole.js.map
|