@pulumi/datadog 4.12.0 → 4.13.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/apiKey.d.ts +1 -3
- package/apiKey.js +22 -22
- package/apiKey.js.map +1 -1
- package/applicationKey.d.ts +1 -3
- package/applicationKey.js +22 -22
- package/applicationKey.js.map +1 -1
- package/authnMapping.d.ts +1 -1
- package/authnMapping.js +23 -23
- package/authnMapping.js.map +1 -1
- package/aws/index.d.ts +12 -4
- package/aws/index.js +13 -28
- package/aws/index.js.map +1 -1
- package/aws/integration.d.ts +10 -28
- package/aws/integration.js +26 -24
- package/aws/integration.js.map +1 -1
- package/aws/integrationLambdaArn.d.ts +5 -5
- package/aws/integrationLambdaArn.js +24 -24
- package/aws/integrationLambdaArn.js.map +1 -1
- package/aws/integrationLogCollection.d.ts +7 -13
- package/aws/integrationLogCollection.js +23 -23
- package/aws/integrationLogCollection.js.map +1 -1
- package/aws/integrationTagFilter.d.ts +7 -7
- package/aws/integrationTagFilter.js +23 -23
- package/aws/integrationTagFilter.js.map +1 -1
- package/azure/index.d.ts +3 -1
- package/azure/index.js +4 -19
- package/azure/index.js.map +1 -1
- package/azure/integration.d.ts +4 -10
- package/azure/integration.js +26 -24
- package/azure/integration.js.map +1 -1
- package/childOrganization.d.ts +5 -6
- package/childOrganization.js +23 -25
- package/childOrganization.js.map +1 -1
- package/cloudWorkloadSecurityAgentRule.d.ts +2 -2
- package/cloudWorkloadSecurityAgentRule.js +24 -24
- package/cloudWorkloadSecurityAgentRule.js.map +1 -1
- package/dashboard.d.ts +11 -707
- package/dashboard.js +22 -716
- package/dashboard.js.map +1 -1
- package/dashboardJson.d.ts +9 -4
- package/dashboardJson.js +31 -26
- package/dashboardJson.js.map +1 -1
- package/dashboardList.d.ts +2 -1
- package/dashboardList.js +19 -19
- package/dashboardList.js.map +1 -1
- package/downtime.d.ts +16 -20
- package/downtime.js +22 -22
- package/downtime.js.map +1 -1
- package/gcp/index.d.ts +3 -1
- package/gcp/index.js +4 -19
- package/gcp/index.js.map +1 -1
- package/gcp/integration.d.ts +4 -7
- package/gcp/integration.js +26 -24
- package/gcp/integration.js.map +1 -1
- package/getApiKey.d.ts +37 -2
- package/getApiKey.js +18 -7
- package/getApiKey.js.map +1 -1
- package/getApplicationKey.d.ts +37 -2
- package/getApplicationKey.js +18 -7
- package/getApplicationKey.js.map +1 -1
- package/getCloudWorkloadSecurityAgentRules.d.ts +5 -2
- package/getCloudWorkloadSecurityAgentRules.js +2 -5
- package/getCloudWorkloadSecurityAgentRules.js.map +1 -1
- package/getDashboard.d.ts +31 -2
- package/getDashboard.js +18 -7
- package/getDashboard.js.map +1 -1
- package/getDashboardList.d.ts +42 -3
- package/getDashboardList.js +35 -8
- package/getDashboardList.js.map +1 -1
- package/getIpRanges.d.ts +49 -1
- package/getIpRanges.js +2 -5
- package/getIpRanges.js.map +1 -1
- package/getLogsArchivesOrder.d.ts +18 -0
- package/getLogsArchivesOrder.js +16 -0
- package/getLogsArchivesOrder.js.map +1 -0
- package/getLogsIndexes.d.ts +5 -2
- package/getLogsIndexes.js +2 -5
- package/getLogsIndexes.js.map +1 -1
- package/getLogsIndexesOrder.d.ts +4 -1
- package/getLogsIndexesOrder.js +2 -5
- package/getLogsIndexesOrder.js.map +1 -1
- package/getLogsPipelines.d.ts +16 -1
- package/getLogsPipelines.js +5 -5
- package/getLogsPipelines.js.map +1 -1
- package/getMonitor.d.ts +132 -3
- package/getMonitor.js +19 -7
- package/getMonitor.js.map +1 -1
- package/getMonitors.d.ts +34 -1
- package/getMonitors.js +5 -5
- package/getMonitors.js.map +1 -1
- package/getPermissions.d.ts +4 -1
- package/getPermissions.js +2 -5
- package/getPermissions.js.map +1 -1
- package/getRole.d.ts +31 -2
- package/getRole.js +18 -7
- package/getRole.js.map +1 -1
- package/getRoles.d.ts +29 -3
- package/getRoles.js +18 -7
- package/getRoles.js.map +1 -1
- package/getRumApplication.d.ts +72 -0
- package/getRumApplication.js +28 -0
- package/getRumApplication.js.map +1 -0
- package/getSecurityMonitoringFilters.d.ts +8 -2
- package/getSecurityMonitoringFilters.js +2 -5
- package/getSecurityMonitoringFilters.js.map +1 -1
- package/getSecurityMonitoringRules.d.ts +61 -3
- package/getSecurityMonitoringRules.js +20 -7
- package/getSecurityMonitoringRules.js.map +1 -1
- package/getServiceLevelObjective.d.ts +60 -0
- package/getServiceLevelObjective.js +20 -5
- package/getServiceLevelObjective.js.map +1 -1
- package/getServiceLevelObjectives.d.ts +56 -3
- package/getServiceLevelObjectives.js +18 -7
- package/getServiceLevelObjectives.js.map +1 -1
- package/getSyntheticsGlobalVariable.d.ts +15 -0
- package/getSyntheticsGlobalVariable.js +5 -5
- package/getSyntheticsGlobalVariable.js.map +1 -1
- package/getSyntheticsLocations.d.ts +3 -0
- package/getSyntheticsLocations.js +1 -4
- package/getSyntheticsLocations.js.map +1 -1
- package/getSyntheticsTest.d.ts +21 -0
- package/getSyntheticsTest.js +5 -5
- package/getSyntheticsTest.js.map +1 -1
- package/getUser.d.ts +18 -0
- package/getUser.js +5 -5
- package/getUser.js.map +1 -1
- package/index.d.ts +175 -59
- package/index.js +177 -150
- package/index.js.map +1 -1
- package/logsArchive.d.ts +6 -8
- package/logsArchive.js +23 -23
- package/logsArchive.js.map +1 -1
- package/logsArchiveOrder.d.ts +4 -10
- package/logsArchiveOrder.js +15 -15
- package/logsArchiveOrder.js.map +1 -1
- package/logsCustomPipeline.d.ts +3 -174
- package/logsCustomPipeline.js +23 -195
- package/logsCustomPipeline.js.map +1 -1
- package/logsIndex.d.ts +6 -8
- package/logsIndex.js +23 -23
- package/logsIndex.js.map +1 -1
- package/logsIndexOrder.d.ts +4 -7
- package/logsIndexOrder.js +23 -23
- package/logsIndexOrder.js.map +1 -1
- package/logsIntegrationPipeline.d.ts +2 -4
- package/logsIntegrationPipeline.js +16 -18
- package/logsIntegrationPipeline.js.map +1 -1
- package/logsMetric.d.ts +3 -2
- package/logsMetric.js +23 -23
- package/logsMetric.js.map +1 -1
- package/logsPipelineOrder.d.ts +4 -10
- package/logsPipelineOrder.js +23 -23
- package/logsPipelineOrder.js.map +1 -1
- package/metricMetadata.d.ts +1 -1
- package/metricMetadata.js +23 -23
- package/metricMetadata.js.map +1 -1
- package/metricTagConfiguration.d.ts +13 -21
- package/metricTagConfiguration.js +24 -24
- package/metricTagConfiguration.js.map +1 -1
- package/monitor.d.ts +51 -7
- package/monitor.js +28 -22
- package/monitor.js.map +1 -1
- package/monitorJson.js +19 -19
- package/monitorJson.js.map +1 -1
- package/opsgenie/index.d.ts +3 -1
- package/opsgenie/index.js +4 -19
- package/opsgenie/index.js.map +1 -1
- package/opsgenie/serviceObject.d.ts +5 -5
- package/opsgenie/serviceObject.js +27 -25
- package/opsgenie/serviceObject.js.map +1 -1
- package/organizationSettings.d.ts +5 -6
- package/organizationSettings.js +21 -23
- package/organizationSettings.js.map +1 -1
- package/package.json +4 -3
- package/package.json.bak +2 -1
- package/package.json.dev +4 -3
- package/pagerduty/index.d.ts +6 -2
- package/pagerduty/index.js +7 -22
- package/pagerduty/index.js.map +1 -1
- package/pagerduty/integration.d.ts +8 -4
- package/pagerduty/integration.js +31 -25
- package/pagerduty/integration.js.map +1 -1
- package/pagerduty/serviceObject.d.ts +5 -14
- package/pagerduty/serviceObject.js +26 -24
- package/pagerduty/serviceObject.js.map +1 -1
- package/provider.js +10 -10
- package/provider.js.map +1 -1
- package/role.d.ts +3 -2
- package/role.js +22 -22
- package/role.js.map +1 -1
- package/rumApplication.d.ts +1 -1
- package/rumApplication.js +22 -22
- package/rumApplication.js.map +1 -1
- package/securityMonitoringDefaultRule.d.ts +3 -3
- package/securityMonitoringDefaultRule.js +23 -24
- package/securityMonitoringDefaultRule.js.map +1 -1
- package/securityMonitoringFilter.d.ts +7 -6
- package/securityMonitoringFilter.js +24 -24
- package/securityMonitoringFilter.js.map +1 -1
- package/securityMonitoringRule.d.ts +20 -7
- package/securityMonitoringRule.js +25 -26
- package/securityMonitoringRule.js.map +1 -1
- package/serviceDefinitionYaml.d.ts +3 -4
- package/serviceDefinitionYaml.js +20 -21
- package/serviceDefinitionYaml.js.map +1 -1
- package/serviceLevelObjective.d.ts +9 -20
- package/serviceLevelObjective.js +23 -23
- package/serviceLevelObjective.js.map +1 -1
- package/slack/channel.d.ts +4 -3
- package/slack/channel.js +24 -24
- package/slack/channel.js.map +1 -1
- package/slack/index.d.ts +3 -1
- package/slack/index.js +4 -19
- package/slack/index.js.map +1 -1
- package/sloCorrection.d.ts +6 -9
- package/sloCorrection.js +22 -22
- package/sloCorrection.js.map +1 -1
- package/syntheticsGlobalVariable.d.ts +4 -3
- package/syntheticsGlobalVariable.js +27 -25
- package/syntheticsGlobalVariable.js.map +1 -1
- package/syntheticsPrivateLocation.d.ts +6 -7
- package/syntheticsPrivateLocation.js +26 -24
- package/syntheticsPrivateLocation.js.map +1 -1
- package/syntheticsTest.d.ts +35 -46
- package/syntheticsTest.js +28 -28
- package/syntheticsTest.js.map +1 -1
- package/types/index.js.map +1 -1
- package/types/input.d.ts +1398 -3
- package/types/output.d.ts +1438 -5
- package/user.js +22 -22
- package/user.js.map +1 -1
- package/utilities.js +13 -1
- package/utilities.js.map +1 -1
- package/webhook.d.ts +3 -3
- package/webhook.js +22 -22
- package/webhook.js.map +1 -1
- package/webhookCustomVariable.js +25 -23
- package/webhookCustomVariable.js.map +1 -1
|
@@ -15,7 +15,7 @@ const utilities = require("./utilities");
|
|
|
15
15
|
* import * as datadog from "@pulumi/datadog";
|
|
16
16
|
*
|
|
17
17
|
* // Manage a tag configuration for a Datadog distribution metric with/without percentiles
|
|
18
|
-
* const exampleDistMetric = new datadog.MetricTagConfiguration("
|
|
18
|
+
* const exampleDistMetric = new datadog.MetricTagConfiguration("exampleDistMetric", {
|
|
19
19
|
* includePercentiles: false,
|
|
20
20
|
* metricName: "example.terraform.dist.metric",
|
|
21
21
|
* metricType: "distribution",
|
|
@@ -25,7 +25,7 @@ const utilities = require("./utilities");
|
|
|
25
25
|
* ],
|
|
26
26
|
* });
|
|
27
27
|
* // Manage tag configurations for a Datadog count or gauge metric
|
|
28
|
-
* const exampleCountMetric = new datadog.MetricTagConfiguration("
|
|
28
|
+
* const exampleCountMetric = new datadog.MetricTagConfiguration("exampleCountMetric", {
|
|
29
29
|
* aggregations: [
|
|
30
30
|
* {
|
|
31
31
|
* space: "min",
|
|
@@ -46,6 +46,28 @@ const utilities = require("./utilities");
|
|
|
46
46
|
* ```
|
|
47
47
|
*/
|
|
48
48
|
class MetricTagConfiguration extends pulumi.CustomResource {
|
|
49
|
+
/**
|
|
50
|
+
* Get an existing MetricTagConfiguration resource's state with the given name, ID, and optional extra
|
|
51
|
+
* properties used to qualify the lookup.
|
|
52
|
+
*
|
|
53
|
+
* @param name The _unique_ name of the resulting resource.
|
|
54
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
55
|
+
* @param state Any extra arguments used during the lookup.
|
|
56
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
57
|
+
*/
|
|
58
|
+
static get(name, id, state, opts) {
|
|
59
|
+
return new MetricTagConfiguration(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Returns true if the given object is an instance of MetricTagConfiguration. 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'] === MetricTagConfiguration.__pulumiType;
|
|
70
|
+
}
|
|
49
71
|
constructor(name, argsOrState, opts) {
|
|
50
72
|
let resourceInputs = {};
|
|
51
73
|
opts = opts || {};
|
|
@@ -77,28 +99,6 @@ class MetricTagConfiguration extends pulumi.CustomResource {
|
|
|
77
99
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
78
100
|
super(MetricTagConfiguration.__pulumiType, name, resourceInputs, opts);
|
|
79
101
|
}
|
|
80
|
-
/**
|
|
81
|
-
* Get an existing MetricTagConfiguration resource's state with the given name, ID, and optional extra
|
|
82
|
-
* properties used to qualify the lookup.
|
|
83
|
-
*
|
|
84
|
-
* @param name The _unique_ name of the resulting resource.
|
|
85
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
86
|
-
* @param state Any extra arguments used during the lookup.
|
|
87
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
88
|
-
*/
|
|
89
|
-
static get(name, id, state, opts) {
|
|
90
|
-
return new MetricTagConfiguration(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Returns true if the given object is an instance of MetricTagConfiguration. This is designed to work even
|
|
94
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
95
|
-
*/
|
|
96
|
-
static isInstance(obj) {
|
|
97
|
-
if (obj === undefined || obj === null) {
|
|
98
|
-
return false;
|
|
99
|
-
}
|
|
100
|
-
return obj['__pulumiType'] === MetricTagConfiguration.__pulumiType;
|
|
101
|
-
}
|
|
102
102
|
}
|
|
103
103
|
exports.MetricTagConfiguration = MetricTagConfiguration;
|
|
104
104
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metricTagConfiguration.js","sourceRoot":"","sources":["../metricTagConfiguration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"metricTagConfiguration.js","sourceRoot":"","sources":["../metricTagConfiguration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAA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Y,GAAG,6DAA6D,CAAC"}
|
package/monitor.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
3
4
|
/**
|
|
4
5
|
* Provides a Datadog monitor resource. This can be used to create and manage Datadog monitors.
|
|
5
6
|
*
|
|
@@ -54,6 +55,11 @@ export declare class Monitor extends pulumi.CustomResource {
|
|
|
54
55
|
* monitors. Defaults to `false`.
|
|
55
56
|
*/
|
|
56
57
|
readonly enableLogsSample: pulumi.Output<boolean | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* Whether or not a list of samples which triggered the alert is included. This is only used by CI Test and Pipeline
|
|
60
|
+
* monitors.
|
|
61
|
+
*/
|
|
62
|
+
readonly enableSamples: pulumi.Output<boolean>;
|
|
57
63
|
/**
|
|
58
64
|
* A message to include with a re-notification. Supports the `@username` notification allowed elsewhere.
|
|
59
65
|
*/
|
|
@@ -93,8 +99,7 @@ export declare class Monitor extends pulumi.CustomResource {
|
|
|
93
99
|
*/
|
|
94
100
|
readonly locked: pulumi.Output<boolean | undefined>;
|
|
95
101
|
/**
|
|
96
|
-
* A message to include with notifications for this monitor.
|
|
97
|
-
* same `@username` notation as events.
|
|
102
|
+
* A message to include with notifications for this monitor.
|
|
98
103
|
*/
|
|
99
104
|
readonly message: pulumi.Output<string>;
|
|
100
105
|
/**
|
|
@@ -133,6 +138,14 @@ export declare class Monitor extends pulumi.CustomResource {
|
|
|
133
138
|
* A boolean indicating whether tagged users will be notified on changes to this monitor. Defaults to `false`.
|
|
134
139
|
*/
|
|
135
140
|
readonly notifyAudit: pulumi.Output<boolean | undefined>;
|
|
141
|
+
/**
|
|
142
|
+
* Controls what granularity a monitor alerts on. Only available for monitors with groupings. For instance, a monitor
|
|
143
|
+
* grouped by `cluster`, `namespace`, and `pod` can be configured to only notify on each new `cluster` violating the alert
|
|
144
|
+
* conditions by setting `notify_by` to `['cluster']`. Tags mentioned in `notify_by` must be a subset of the grouping tags
|
|
145
|
+
* in the query. For example, a query grouped by `cluster` and `namespace` cannot notify on `region`. Setting `notify_by`
|
|
146
|
+
* to `[*]` configures the monitor to notify as a simple-alert.
|
|
147
|
+
*/
|
|
148
|
+
readonly notifyBies: pulumi.Output<string[] | undefined>;
|
|
136
149
|
/**
|
|
137
150
|
* A boolean indicating whether this monitor will notify when data stops reporting. Defaults to `false`.
|
|
138
151
|
*/
|
|
@@ -186,6 +199,10 @@ export declare class Monitor extends pulumi.CustomResource {
|
|
|
186
199
|
* field.
|
|
187
200
|
*/
|
|
188
201
|
readonly restrictedRoles: pulumi.Output<string[] | undefined>;
|
|
202
|
+
/**
|
|
203
|
+
* Configuration options for scheduling.
|
|
204
|
+
*/
|
|
205
|
+
readonly schedulingOptions: pulumi.Output<outputs.MonitorSchedulingOption[] | undefined>;
|
|
189
206
|
/**
|
|
190
207
|
* A list of tags to associate with your monitor. This can help you categorize and filter monitors in the manage monitors
|
|
191
208
|
* page of the UI. Note: it's not currently possible to filter by these tags when querying via the API
|
|
@@ -225,6 +242,11 @@ export interface MonitorState {
|
|
|
225
242
|
* monitors. Defaults to `false`.
|
|
226
243
|
*/
|
|
227
244
|
enableLogsSample?: pulumi.Input<boolean>;
|
|
245
|
+
/**
|
|
246
|
+
* Whether or not a list of samples which triggered the alert is included. This is only used by CI Test and Pipeline
|
|
247
|
+
* monitors.
|
|
248
|
+
*/
|
|
249
|
+
enableSamples?: pulumi.Input<boolean>;
|
|
228
250
|
/**
|
|
229
251
|
* A message to include with a re-notification. Supports the `@username` notification allowed elsewhere.
|
|
230
252
|
*/
|
|
@@ -264,8 +286,7 @@ export interface MonitorState {
|
|
|
264
286
|
*/
|
|
265
287
|
locked?: pulumi.Input<boolean>;
|
|
266
288
|
/**
|
|
267
|
-
* A message to include with notifications for this monitor.
|
|
268
|
-
* same `@username` notation as events.
|
|
289
|
+
* A message to include with notifications for this monitor.
|
|
269
290
|
*/
|
|
270
291
|
message?: pulumi.Input<string>;
|
|
271
292
|
/**
|
|
@@ -304,6 +325,14 @@ export interface MonitorState {
|
|
|
304
325
|
* A boolean indicating whether tagged users will be notified on changes to this monitor. Defaults to `false`.
|
|
305
326
|
*/
|
|
306
327
|
notifyAudit?: pulumi.Input<boolean>;
|
|
328
|
+
/**
|
|
329
|
+
* Controls what granularity a monitor alerts on. Only available for monitors with groupings. For instance, a monitor
|
|
330
|
+
* grouped by `cluster`, `namespace`, and `pod` can be configured to only notify on each new `cluster` violating the alert
|
|
331
|
+
* conditions by setting `notify_by` to `['cluster']`. Tags mentioned in `notify_by` must be a subset of the grouping tags
|
|
332
|
+
* in the query. For example, a query grouped by `cluster` and `namespace` cannot notify on `region`. Setting `notify_by`
|
|
333
|
+
* to `[*]` configures the monitor to notify as a simple-alert.
|
|
334
|
+
*/
|
|
335
|
+
notifyBies?: pulumi.Input<pulumi.Input<string>[]>;
|
|
307
336
|
/**
|
|
308
337
|
* A boolean indicating whether this monitor will notify when data stops reporting. Defaults to `false`.
|
|
309
338
|
*/
|
|
@@ -357,6 +386,10 @@ export interface MonitorState {
|
|
|
357
386
|
* field.
|
|
358
387
|
*/
|
|
359
388
|
restrictedRoles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
389
|
+
/**
|
|
390
|
+
* Configuration options for scheduling.
|
|
391
|
+
*/
|
|
392
|
+
schedulingOptions?: pulumi.Input<pulumi.Input<inputs.MonitorSchedulingOption>[]>;
|
|
360
393
|
/**
|
|
361
394
|
* A list of tags to associate with your monitor. This can help you categorize and filter monitors in the manage monitors
|
|
362
395
|
* page of the UI. Note: it's not currently possible to filter by these tags when querying via the API
|
|
@@ -427,8 +460,7 @@ export interface MonitorArgs {
|
|
|
427
460
|
*/
|
|
428
461
|
locked?: pulumi.Input<boolean>;
|
|
429
462
|
/**
|
|
430
|
-
* A message to include with notifications for this monitor.
|
|
431
|
-
* same `@username` notation as events.
|
|
463
|
+
* A message to include with notifications for this monitor.
|
|
432
464
|
*/
|
|
433
465
|
message: pulumi.Input<string>;
|
|
434
466
|
/**
|
|
@@ -467,6 +499,14 @@ export interface MonitorArgs {
|
|
|
467
499
|
* A boolean indicating whether tagged users will be notified on changes to this monitor. Defaults to `false`.
|
|
468
500
|
*/
|
|
469
501
|
notifyAudit?: pulumi.Input<boolean>;
|
|
502
|
+
/**
|
|
503
|
+
* Controls what granularity a monitor alerts on. Only available for monitors with groupings. For instance, a monitor
|
|
504
|
+
* grouped by `cluster`, `namespace`, and `pod` can be configured to only notify on each new `cluster` violating the alert
|
|
505
|
+
* conditions by setting `notify_by` to `['cluster']`. Tags mentioned in `notify_by` must be a subset of the grouping tags
|
|
506
|
+
* in the query. For example, a query grouped by `cluster` and `namespace` cannot notify on `region`. Setting `notify_by`
|
|
507
|
+
* to `[*]` configures the monitor to notify as a simple-alert.
|
|
508
|
+
*/
|
|
509
|
+
notifyBies?: pulumi.Input<pulumi.Input<string>[]>;
|
|
470
510
|
/**
|
|
471
511
|
* A boolean indicating whether this monitor will notify when data stops reporting. Defaults to `false`.
|
|
472
512
|
*/
|
|
@@ -520,6 +560,10 @@ export interface MonitorArgs {
|
|
|
520
560
|
* field.
|
|
521
561
|
*/
|
|
522
562
|
restrictedRoles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
563
|
+
/**
|
|
564
|
+
* Configuration options for scheduling.
|
|
565
|
+
*/
|
|
566
|
+
schedulingOptions?: pulumi.Input<pulumi.Input<inputs.MonitorSchedulingOption>[]>;
|
|
523
567
|
/**
|
|
524
568
|
* A list of tags to associate with your monitor. This can help you categorize and filter monitors in the manage monitors
|
|
525
569
|
* page of the UI. Note: it's not currently possible to filter by these tags when querying via the API
|
package/monitor.js
CHANGED
|
@@ -39,12 +39,35 @@ const utilities = require("./utilities");
|
|
|
39
39
|
* ```
|
|
40
40
|
*/
|
|
41
41
|
class Monitor extends pulumi.CustomResource {
|
|
42
|
+
/**
|
|
43
|
+
* Get an existing Monitor 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, id, state, opts) {
|
|
52
|
+
return new Monitor(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Returns true if the given object is an instance of Monitor. This is designed to work even
|
|
56
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
57
|
+
*/
|
|
58
|
+
static isInstance(obj) {
|
|
59
|
+
if (obj === undefined || obj === null) {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
return obj['__pulumiType'] === Monitor.__pulumiType;
|
|
63
|
+
}
|
|
42
64
|
constructor(name, argsOrState, opts) {
|
|
43
65
|
let resourceInputs = {};
|
|
44
66
|
opts = opts || {};
|
|
45
67
|
if (opts.id) {
|
|
46
68
|
const state = argsOrState;
|
|
47
69
|
resourceInputs["enableLogsSample"] = state ? state.enableLogsSample : undefined;
|
|
70
|
+
resourceInputs["enableSamples"] = state ? state.enableSamples : undefined;
|
|
48
71
|
resourceInputs["escalationMessage"] = state ? state.escalationMessage : undefined;
|
|
49
72
|
resourceInputs["evaluationDelay"] = state ? state.evaluationDelay : undefined;
|
|
50
73
|
resourceInputs["forceDelete"] = state ? state.forceDelete : undefined;
|
|
@@ -60,6 +83,7 @@ class Monitor extends pulumi.CustomResource {
|
|
|
60
83
|
resourceInputs["newHostDelay"] = state ? state.newHostDelay : undefined;
|
|
61
84
|
resourceInputs["noDataTimeframe"] = state ? state.noDataTimeframe : undefined;
|
|
62
85
|
resourceInputs["notifyAudit"] = state ? state.notifyAudit : undefined;
|
|
86
|
+
resourceInputs["notifyBies"] = state ? state.notifyBies : undefined;
|
|
63
87
|
resourceInputs["notifyNoData"] = state ? state.notifyNoData : undefined;
|
|
64
88
|
resourceInputs["onMissingData"] = state ? state.onMissingData : undefined;
|
|
65
89
|
resourceInputs["priority"] = state ? state.priority : undefined;
|
|
@@ -69,6 +93,7 @@ class Monitor extends pulumi.CustomResource {
|
|
|
69
93
|
resourceInputs["renotifyStatuses"] = state ? state.renotifyStatuses : undefined;
|
|
70
94
|
resourceInputs["requireFullWindow"] = state ? state.requireFullWindow : undefined;
|
|
71
95
|
resourceInputs["restrictedRoles"] = state ? state.restrictedRoles : undefined;
|
|
96
|
+
resourceInputs["schedulingOptions"] = state ? state.schedulingOptions : undefined;
|
|
72
97
|
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
73
98
|
resourceInputs["timeoutH"] = state ? state.timeoutH : undefined;
|
|
74
99
|
resourceInputs["type"] = state ? state.type : undefined;
|
|
@@ -105,6 +130,7 @@ class Monitor extends pulumi.CustomResource {
|
|
|
105
130
|
resourceInputs["newHostDelay"] = args ? args.newHostDelay : undefined;
|
|
106
131
|
resourceInputs["noDataTimeframe"] = args ? args.noDataTimeframe : undefined;
|
|
107
132
|
resourceInputs["notifyAudit"] = args ? args.notifyAudit : undefined;
|
|
133
|
+
resourceInputs["notifyBies"] = args ? args.notifyBies : undefined;
|
|
108
134
|
resourceInputs["notifyNoData"] = args ? args.notifyNoData : undefined;
|
|
109
135
|
resourceInputs["onMissingData"] = args ? args.onMissingData : undefined;
|
|
110
136
|
resourceInputs["priority"] = args ? args.priority : undefined;
|
|
@@ -114,37 +140,17 @@ class Monitor extends pulumi.CustomResource {
|
|
|
114
140
|
resourceInputs["renotifyStatuses"] = args ? args.renotifyStatuses : undefined;
|
|
115
141
|
resourceInputs["requireFullWindow"] = args ? args.requireFullWindow : undefined;
|
|
116
142
|
resourceInputs["restrictedRoles"] = args ? args.restrictedRoles : undefined;
|
|
143
|
+
resourceInputs["schedulingOptions"] = args ? args.schedulingOptions : undefined;
|
|
117
144
|
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
118
145
|
resourceInputs["timeoutH"] = args ? args.timeoutH : undefined;
|
|
119
146
|
resourceInputs["type"] = args ? args.type : undefined;
|
|
120
147
|
resourceInputs["validate"] = args ? args.validate : undefined;
|
|
121
148
|
resourceInputs["variables"] = args ? args.variables : undefined;
|
|
149
|
+
resourceInputs["enableSamples"] = undefined /*out*/;
|
|
122
150
|
}
|
|
123
151
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
124
152
|
super(Monitor.__pulumiType, name, resourceInputs, opts);
|
|
125
153
|
}
|
|
126
|
-
/**
|
|
127
|
-
* Get an existing Monitor resource's state with the given name, ID, and optional extra
|
|
128
|
-
* properties used to qualify the lookup.
|
|
129
|
-
*
|
|
130
|
-
* @param name The _unique_ name of the resulting resource.
|
|
131
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
132
|
-
* @param state Any extra arguments used during the lookup.
|
|
133
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
134
|
-
*/
|
|
135
|
-
static get(name, id, state, opts) {
|
|
136
|
-
return new Monitor(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Returns true if the given object is an instance of Monitor. This is designed to work even
|
|
140
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
141
|
-
*/
|
|
142
|
-
static isInstance(obj) {
|
|
143
|
-
if (obj === undefined || obj === null) {
|
|
144
|
-
return false;
|
|
145
|
-
}
|
|
146
|
-
return obj['__pulumiType'] === Monitor.__pulumiType;
|
|
147
|
-
}
|
|
148
154
|
}
|
|
149
155
|
exports.Monitor = Monitor;
|
|
150
156
|
/** @internal */
|
package/monitor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitor.js","sourceRoot":"","sources":["../monitor.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAy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AC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACvD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AA3SL,0BA4SC;AA9RG,gBAAgB;AACO,oBAAY,GAAG,+BAA+B,CAAC"}
|
package/monitorJson.js
CHANGED
|
@@ -47,25 +47,6 @@ const utilities = require("./utilities");
|
|
|
47
47
|
* ```
|
|
48
48
|
*/
|
|
49
49
|
class MonitorJson extends pulumi.CustomResource {
|
|
50
|
-
constructor(name, argsOrState, opts) {
|
|
51
|
-
let resourceInputs = {};
|
|
52
|
-
opts = opts || {};
|
|
53
|
-
if (opts.id) {
|
|
54
|
-
const state = argsOrState;
|
|
55
|
-
resourceInputs["monitor"] = state ? state.monitor : undefined;
|
|
56
|
-
resourceInputs["url"] = state ? state.url : undefined;
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
const args = argsOrState;
|
|
60
|
-
if ((!args || args.monitor === undefined) && !opts.urn) {
|
|
61
|
-
throw new Error("Missing required property 'monitor'");
|
|
62
|
-
}
|
|
63
|
-
resourceInputs["monitor"] = args ? args.monitor : undefined;
|
|
64
|
-
resourceInputs["url"] = args ? args.url : undefined;
|
|
65
|
-
}
|
|
66
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
67
|
-
super(MonitorJson.__pulumiType, name, resourceInputs, opts);
|
|
68
|
-
}
|
|
69
50
|
/**
|
|
70
51
|
* Get an existing MonitorJson resource's state with the given name, ID, and optional extra
|
|
71
52
|
* properties used to qualify the lookup.
|
|
@@ -88,6 +69,25 @@ class MonitorJson extends pulumi.CustomResource {
|
|
|
88
69
|
}
|
|
89
70
|
return obj['__pulumiType'] === MonitorJson.__pulumiType;
|
|
90
71
|
}
|
|
72
|
+
constructor(name, argsOrState, opts) {
|
|
73
|
+
let resourceInputs = {};
|
|
74
|
+
opts = opts || {};
|
|
75
|
+
if (opts.id) {
|
|
76
|
+
const state = argsOrState;
|
|
77
|
+
resourceInputs["monitor"] = state ? state.monitor : undefined;
|
|
78
|
+
resourceInputs["url"] = state ? state.url : undefined;
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
const args = argsOrState;
|
|
82
|
+
if ((!args || args.monitor === undefined) && !opts.urn) {
|
|
83
|
+
throw new Error("Missing required property 'monitor'");
|
|
84
|
+
}
|
|
85
|
+
resourceInputs["monitor"] = args ? args.monitor : undefined;
|
|
86
|
+
resourceInputs["url"] = args ? args.url : undefined;
|
|
87
|
+
}
|
|
88
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
89
|
+
super(MonitorJson.__pulumiType, name, resourceInputs, opts);
|
|
90
|
+
}
|
|
91
91
|
}
|
|
92
92
|
exports.MonitorJson = MonitorJson;
|
|
93
93
|
/** @internal */
|
package/monitorJson.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitorJson.js","sourceRoot":"","sources":["../monitorJson.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"monitorJson.js","sourceRoot":"","sources":["../monitorJson.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;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CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;SACvD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AA9DL,kCA+DC;AAjDG,gBAAgB;AACO,wBAAY,GAAG,uCAAuC,CAAC"}
|
package/opsgenie/index.d.ts
CHANGED
package/opsgenie/index.js
CHANGED
|
@@ -1,33 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
|
-
};
|
|
18
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ServiceObject = void 0;
|
|
19
6
|
const pulumi = require("@pulumi/pulumi");
|
|
20
7
|
const utilities = require("../utilities");
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
// Import resources to register:
|
|
24
|
-
const serviceObject_1 = require("./serviceObject");
|
|
8
|
+
exports.ServiceObject = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["ServiceObject"], () => require("./serviceObject"));
|
|
25
10
|
const _module = {
|
|
26
11
|
version: utilities.getVersion(),
|
|
27
12
|
construct: (name, type, urn) => {
|
|
28
13
|
switch (type) {
|
|
29
14
|
case "datadog:opsgenie/serviceObject:ServiceObject":
|
|
30
|
-
return new
|
|
15
|
+
return new exports.ServiceObject(name, undefined, { urn });
|
|
31
16
|
default:
|
|
32
17
|
throw new Error(`unknown resource type ${type}`);
|
|
33
18
|
}
|
package/opsgenie/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../opsgenie/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../opsgenie/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,aAAa,GAAmD,IAAW,CAAC;AACzF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,eAAe,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAGjF,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,8CAA8C;gBAC/C,OAAO,IAAI,qBAAa,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC3D;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,wBAAwB,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -8,12 +8,12 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
9
9
|
* import * as datadog from "@pulumi/datadog";
|
|
10
10
|
*
|
|
11
|
-
* const fakeServiceName = new datadog.opsgenie.ServiceObject("
|
|
11
|
+
* const fakeServiceName = new datadog.opsgenie.ServiceObject("fakeServiceName", {
|
|
12
12
|
* name: "fake_service_name",
|
|
13
13
|
* opsgenieApiKey: "00000000-0000-0000-0000-000000000000",
|
|
14
14
|
* region: "us",
|
|
15
15
|
* });
|
|
16
|
-
* const fakeServiceName2 = new datadog.opsgenie.ServiceObject("
|
|
16
|
+
* const fakeServiceName2 = new datadog.opsgenie.ServiceObject("fakeServiceName2", {
|
|
17
17
|
* name: "fake_service_name_2",
|
|
18
18
|
* opsgenieApiKey: "11111111-1111-1111-1111-111111111111",
|
|
19
19
|
* region: "eu",
|
|
@@ -52,7 +52,7 @@ export declare class ServiceObject extends pulumi.CustomResource {
|
|
|
52
52
|
*/
|
|
53
53
|
readonly opsgenieApiKey: pulumi.Output<string>;
|
|
54
54
|
/**
|
|
55
|
-
* The region for the Opsgenie service.
|
|
55
|
+
* The region for the Opsgenie service. Valid values are `us`, `eu`, `custom`.
|
|
56
56
|
*/
|
|
57
57
|
readonly region: pulumi.Output<string>;
|
|
58
58
|
/**
|
|
@@ -84,7 +84,7 @@ export interface ServiceObjectState {
|
|
|
84
84
|
*/
|
|
85
85
|
opsgenieApiKey?: pulumi.Input<string>;
|
|
86
86
|
/**
|
|
87
|
-
* The region for the Opsgenie service.
|
|
87
|
+
* The region for the Opsgenie service. Valid values are `us`, `eu`, `custom`.
|
|
88
88
|
*/
|
|
89
89
|
region?: pulumi.Input<string>;
|
|
90
90
|
}
|
|
@@ -108,7 +108,7 @@ export interface ServiceObjectArgs {
|
|
|
108
108
|
*/
|
|
109
109
|
opsgenieApiKey: pulumi.Input<string>;
|
|
110
110
|
/**
|
|
111
|
-
* The region for the Opsgenie service.
|
|
111
|
+
* The region for the Opsgenie service. Valid values are `us`, `eu`, `custom`.
|
|
112
112
|
*/
|
|
113
113
|
region: pulumi.Input<string>;
|
|
114
114
|
}
|
|
@@ -14,12 +14,12 @@ const utilities = require("../utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as datadog from "@pulumi/datadog";
|
|
16
16
|
*
|
|
17
|
-
* const fakeServiceName = new datadog.opsgenie.ServiceObject("
|
|
17
|
+
* const fakeServiceName = new datadog.opsgenie.ServiceObject("fakeServiceName", {
|
|
18
18
|
* name: "fake_service_name",
|
|
19
19
|
* opsgenieApiKey: "00000000-0000-0000-0000-000000000000",
|
|
20
20
|
* region: "us",
|
|
21
21
|
* });
|
|
22
|
-
* const fakeServiceName2 = new datadog.opsgenie.ServiceObject("
|
|
22
|
+
* const fakeServiceName2 = new datadog.opsgenie.ServiceObject("fakeServiceName2", {
|
|
23
23
|
* name: "fake_service_name_2",
|
|
24
24
|
* opsgenieApiKey: "11111111-1111-1111-1111-111111111111",
|
|
25
25
|
* region: "eu",
|
|
@@ -27,6 +27,28 @@ const utilities = require("../utilities");
|
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
29
|
class ServiceObject extends pulumi.CustomResource {
|
|
30
|
+
/**
|
|
31
|
+
* Get an existing ServiceObject resource's state with the given name, ID, and optional extra
|
|
32
|
+
* properties used to qualify the lookup.
|
|
33
|
+
*
|
|
34
|
+
* @param name The _unique_ name of the resulting resource.
|
|
35
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
36
|
+
* @param state Any extra arguments used during the lookup.
|
|
37
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
38
|
+
*/
|
|
39
|
+
static get(name, id, state, opts) {
|
|
40
|
+
return new ServiceObject(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Returns true if the given object is an instance of ServiceObject. This is designed to work even
|
|
44
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
45
|
+
*/
|
|
46
|
+
static isInstance(obj) {
|
|
47
|
+
if (obj === undefined || obj === null) {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
return obj['__pulumiType'] === ServiceObject.__pulumiType;
|
|
51
|
+
}
|
|
30
52
|
constructor(name, argsOrState, opts) {
|
|
31
53
|
let resourceInputs = {};
|
|
32
54
|
opts = opts || {};
|
|
@@ -50,34 +72,14 @@ class ServiceObject extends pulumi.CustomResource {
|
|
|
50
72
|
}
|
|
51
73
|
resourceInputs["customUrl"] = args ? args.customUrl : undefined;
|
|
52
74
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
53
|
-
resourceInputs["opsgenieApiKey"] = args ? args.opsgenieApiKey : undefined;
|
|
75
|
+
resourceInputs["opsgenieApiKey"] = (args === null || args === void 0 ? void 0 : args.opsgenieApiKey) ? pulumi.secret(args.opsgenieApiKey) : undefined;
|
|
54
76
|
resourceInputs["region"] = args ? args.region : undefined;
|
|
55
77
|
}
|
|
56
78
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
79
|
+
const secretOpts = { additionalSecretOutputs: ["opsgenieApiKey"] };
|
|
80
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
57
81
|
super(ServiceObject.__pulumiType, name, resourceInputs, opts);
|
|
58
82
|
}
|
|
59
|
-
/**
|
|
60
|
-
* Get an existing ServiceObject resource's state with the given name, ID, and optional extra
|
|
61
|
-
* properties used to qualify the lookup.
|
|
62
|
-
*
|
|
63
|
-
* @param name The _unique_ name of the resulting resource.
|
|
64
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
65
|
-
* @param state Any extra arguments used during the lookup.
|
|
66
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
67
|
-
*/
|
|
68
|
-
static get(name, id, state, opts) {
|
|
69
|
-
return new ServiceObject(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Returns true if the given object is an instance of ServiceObject. This is designed to work even
|
|
73
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
74
|
-
*/
|
|
75
|
-
static isInstance(obj) {
|
|
76
|
-
if (obj === undefined || obj === null) {
|
|
77
|
-
return false;
|
|
78
|
-
}
|
|
79
|
-
return obj['__pulumiType'] === ServiceObject.__pulumiType;
|
|
80
|
-
}
|
|
81
83
|
}
|
|
82
84
|
exports.ServiceObject = ServiceObject;
|
|
83
85
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serviceObject.js","sourceRoot":"","sources":["../../opsgenie/serviceObject.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"serviceObject.js","sourceRoot":"","sources":["../../opsgenie/serviceObject.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,I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