@pulumi/newrelic 5.1.0 → 5.2.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/alertChannel.d.ts +2 -1
- package/alertChannel.js +22 -22
- package/alertChannel.js.map +1 -1
- package/alertCondition.d.ts +8 -7
- package/alertCondition.js +22 -22
- package/alertCondition.js.map +1 -1
- package/alertMutingRule.d.ts +5 -4
- package/alertMutingRule.js +22 -22
- package/alertMutingRule.js.map +1 -1
- package/alertPolicy.js +20 -20
- package/alertPolicy.js.map +1 -1
- package/alertPolicyChannel.js +22 -22
- package/alertPolicyChannel.js.map +1 -1
- package/apiAccessKey.js +24 -22
- package/apiAccessKey.js.map +1 -1
- package/cloud/awsGovcloudIntegrations.d.ts +2 -1
- package/cloud/awsGovcloudIntegrations.js +22 -22
- package/cloud/awsGovcloudIntegrations.js.map +1 -1
- package/cloud/awsGovcloudLinkAccount.js +26 -24
- package/cloud/awsGovcloudLinkAccount.js.map +1 -1
- package/cloud/awsIntegrations.d.ts +2 -1
- package/cloud/awsIntegrations.js +22 -22
- package/cloud/awsIntegrations.js.map +1 -1
- package/cloud/awsLinkAccount.js +22 -22
- package/cloud/awsLinkAccount.js.map +1 -1
- package/cloud/azureIntegrations.d.ts +89 -64
- package/cloud/azureIntegrations.js +26 -22
- package/cloud/azureIntegrations.js.map +1 -1
- package/cloud/azureLinkAccount.js +25 -23
- package/cloud/azureLinkAccount.js.map +1 -1
- package/cloud/gcpIntegrations.d.ts +14 -1
- package/cloud/gcpIntegrations.js +24 -22
- package/cloud/gcpIntegrations.js.map +1 -1
- package/cloud/gcpLinkAccount.js +21 -21
- package/cloud/gcpLinkAccount.js.map +1 -1
- package/cloud/index.d.ts +24 -8
- package/cloud/index.js +25 -40
- package/cloud/index.js.map +1 -1
- package/entityTags.d.ts +2 -32
- package/entityTags.js +22 -53
- package/entityTags.js.map +1 -1
- package/eventsToMetricsRule.js +22 -22
- package/eventsToMetricsRule.js.map +1 -1
- package/getAlertChannel.d.ts +1 -1
- package/getAlertChannel.js.map +1 -1
- package/getEntity.d.ts +14 -4
- package/getEntity.js +1 -1
- package/getEntity.js.map +1 -1
- package/getObfuscationExpression.d.ts +65 -0
- package/getObfuscationExpression.js +48 -0
- package/getObfuscationExpression.js.map +1 -0
- package/index.d.ts +87 -26
- package/index.js +92 -81
- package/index.js.map +1 -1
- package/infraAlertCondition.d.ts +11 -10
- package/infraAlertCondition.js +22 -22
- package/infraAlertCondition.js.map +1 -1
- package/insights/event.d.ts +2 -1
- package/insights/event.js +17 -17
- package/insights/event.js.map +1 -1
- package/insights/index.d.ts +3 -1
- package/insights/index.js +4 -19
- package/insights/index.js.map +1 -1
- package/notificationChannel.d.ts +68 -13
- package/notificationChannel.js +88 -34
- package/notificationChannel.js.map +1 -1
- package/notificationDestination.d.ts +2 -1
- package/notificationDestination.js +22 -22
- package/notificationDestination.js.map +1 -1
- package/nrqlAlertCondition.d.ts +22 -21
- package/nrqlAlertCondition.js +27 -27
- package/nrqlAlertCondition.js.map +1 -1
- package/nrqlDropRule.js +22 -22
- package/nrqlDropRule.js.map +1 -1
- package/obfuscationExpression.d.ts +108 -0
- package/obfuscationExpression.js +82 -0
- package/obfuscationExpression.js.map +1 -0
- package/obfuscationRule.d.ts +143 -0
- package/obfuscationRule.js +101 -0
- package/obfuscationRule.js.map +1 -0
- package/oneDashboard.d.ts +113 -3
- package/oneDashboard.js +123 -24
- package/oneDashboard.js.map +1 -1
- package/oneDashboardJson.d.ts +3 -15
- package/oneDashboardJson.js +22 -34
- package/oneDashboardJson.js.map +1 -1
- package/oneDashboardRaw.d.ts +4 -1
- package/oneDashboardRaw.js +24 -22
- package/oneDashboardRaw.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/plugins/applicationSettings.js +22 -22
- package/plugins/applicationSettings.js.map +1 -1
- package/plugins/index.d.ts +6 -2
- package/plugins/index.js +7 -22
- package/plugins/index.js.map +1 -1
- package/plugins/workload.d.ts +120 -2
- package/plugins/workload.js +110 -23
- package/plugins/workload.js.map +1 -1
- package/provider.d.ts +3 -3
- package/provider.js +19 -14
- package/provider.js.map +1 -1
- package/serviceLevel.d.ts +2 -1
- package/serviceLevel.js +22 -22
- package/serviceLevel.js.map +1 -1
- package/synthetics/alertCondition.js +22 -22
- package/synthetics/alertCondition.js.map +1 -1
- package/synthetics/brokenLinksMonitor.d.ts +9 -8
- package/synthetics/brokenLinksMonitor.js +26 -26
- package/synthetics/brokenLinksMonitor.js.map +1 -1
- package/synthetics/certCheckMonitor.d.ts +6 -5
- package/synthetics/certCheckMonitor.js +26 -26
- package/synthetics/certCheckMonitor.js.map +1 -1
- package/synthetics/getPrivateLocation.d.ts +35 -0
- package/synthetics/getPrivateLocation.js +27 -0
- package/synthetics/getPrivateLocation.js.map +1 -1
- package/synthetics/getSecureCredential.d.ts +1 -0
- package/synthetics/getSecureCredential.js.map +1 -1
- package/synthetics/index.d.ts +33 -11
- package/synthetics/index.js +34 -45
- package/synthetics/index.js.map +1 -1
- package/synthetics/monitor.d.ts +29 -33
- package/synthetics/monitor.js +40 -45
- package/synthetics/monitor.js.map +1 -1
- package/synthetics/multiLocationAlertCondition.d.ts +2 -1
- package/synthetics/multiLocationAlertCondition.js +22 -22
- package/synthetics/multiLocationAlertCondition.js.map +1 -1
- package/synthetics/privateLocation.d.ts +7 -8
- package/synthetics/privateLocation.js +24 -25
- package/synthetics/privateLocation.js.map +1 -1
- package/synthetics/scriptMonitor.d.ts +15 -21
- package/synthetics/scriptMonitor.js +32 -39
- package/synthetics/scriptMonitor.js.map +1 -1
- package/synthetics/secureCredential.js +25 -23
- package/synthetics/secureCredential.js.map +1 -1
- package/synthetics/stepMonitor.d.ts +6 -5
- package/synthetics/stepMonitor.js +26 -26
- package/synthetics/stepMonitor.js.map +1 -1
- package/types/index.js.map +1 -1
- package/types/input.d.ts +288 -72
- package/types/output.d.ts +282 -72
- package/utilities.js +13 -1
- package/utilities.js.map +1 -1
- package/workflow.d.ts +99 -112
- package/workflow.js +82 -105
- package/workflow.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicationSettings.js","sourceRoot":"","sources":["../../plugins/applicationSettings.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"applicationSettings.js","sourceRoot":"","sources":["../../plugins/applicationSettings.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;IA2BD,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmD,CAAC;YAClE,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CA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,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAhFL,kDAiFC;AAnEG,gBAAgB;AACO,gCAAY,GAAG,0DAA0D,CAAC"}
|
package/plugins/index.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { ApplicationSettingsArgs, ApplicationSettingsState } from "./applicationSettings";
|
|
2
|
+
export type ApplicationSettings = import("./applicationSettings").ApplicationSettings;
|
|
3
|
+
export declare const ApplicationSettings: typeof import("./applicationSettings").ApplicationSettings;
|
|
4
|
+
export { WorkloadArgs, WorkloadState } from "./workload";
|
|
5
|
+
export type Workload = import("./workload").Workload;
|
|
6
|
+
export declare const Workload: typeof import("./workload").Workload;
|
package/plugins/index.js
CHANGED
|
@@ -1,37 +1,22 @@
|
|
|
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.Workload = exports.ApplicationSettings = void 0;
|
|
19
6
|
const pulumi = require("@pulumi/pulumi");
|
|
20
7
|
const utilities = require("../utilities");
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const applicationSettings_1 = require("./applicationSettings");
|
|
26
|
-
const workload_1 = require("./workload");
|
|
8
|
+
exports.ApplicationSettings = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["ApplicationSettings"], () => require("./applicationSettings"));
|
|
10
|
+
exports.Workload = null;
|
|
11
|
+
utilities.lazyLoad(exports, ["Workload"], () => require("./workload"));
|
|
27
12
|
const _module = {
|
|
28
13
|
version: utilities.getVersion(),
|
|
29
14
|
construct: (name, type, urn) => {
|
|
30
15
|
switch (type) {
|
|
31
16
|
case "newrelic:plugins/applicationSettings:ApplicationSettings":
|
|
32
|
-
return new
|
|
17
|
+
return new exports.ApplicationSettings(name, undefined, { urn });
|
|
33
18
|
case "newrelic:plugins/workload:Workload":
|
|
34
|
-
return new
|
|
19
|
+
return new exports.Workload(name, undefined, { urn });
|
|
35
20
|
default:
|
|
36
21
|
throw new Error(`unknown resource type ${type}`);
|
|
37
22
|
}
|
package/plugins/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../plugins/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../plugins/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,mBAAmB,GAA+D,IAAW,CAAC;AAC3G,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,qBAAqB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC,CAAC;AAIhF,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAGvE,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,0DAA0D;gBAC3D,OAAO,IAAI,2BAAmB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACjE,KAAK,oCAAoC;gBACrC,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,UAAU,EAAE,6BAA6B,EAAE,OAAO,CAAC,CAAA;AACzF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,UAAU,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAA"}
|
package/plugins/workload.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
|
* Use this resource to create, update, and delete a New Relic One workload.
|
|
5
6
|
*
|
|
@@ -39,9 +40,90 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
39
40
|
* });
|
|
40
41
|
* ```
|
|
41
42
|
*
|
|
43
|
+
* Include entities with a set of tags.
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
47
|
+
*
|
|
48
|
+
* const foo = new newrelic.plugins.Workload("foo", {
|
|
49
|
+
* accountId: 12345678,
|
|
50
|
+
* entityGuids: ["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
|
|
51
|
+
* entitySearchQueries: [{
|
|
52
|
+
* query: "tags.accountId = '12345678' AND tags.environment='production' AND tags.language='java'",
|
|
53
|
+
* }],
|
|
54
|
+
* scopeAccountIds: [12345678],
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* Include automatic status
|
|
59
|
+
*
|
|
60
|
+
* > The global status of your workload is a quick indicator of the workload health. You can configure it to be calculated automatically, and you can also set an alert and get a notification whenever the workload stops being operational. Alternatively, you can communicate a certain status of the workload by setting up a static value and a description. [See our docs](https://docs.newrelic.com/docs/workloads/use-workloads/workloads/workload-status)
|
|
61
|
+
*
|
|
62
|
+
* ```typescript
|
|
63
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
64
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
65
|
+
*
|
|
66
|
+
* const foo = new newrelic.plugins.Workload("foo", {
|
|
67
|
+
* accountId: 12345678,
|
|
68
|
+
* description: "Description",
|
|
69
|
+
* entityGuids: ["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
|
|
70
|
+
* entitySearchQueries: [{
|
|
71
|
+
* query: "name like '%Example application%'",
|
|
72
|
+
* }],
|
|
73
|
+
* scopeAccountIds: [12345678],
|
|
74
|
+
* statusConfigAutomatic: {
|
|
75
|
+
* enabled: true,
|
|
76
|
+
* remainingEntitiesRule: {
|
|
77
|
+
* remainingEntitiesRuleRollup: {
|
|
78
|
+
* groupBy: "ENTITY_TYPE",
|
|
79
|
+
* strategy: "BEST_STATUS_WINS",
|
|
80
|
+
* thresholdType: "FIXED",
|
|
81
|
+
* thresholdValue: 100,
|
|
82
|
+
* },
|
|
83
|
+
* },
|
|
84
|
+
* rules: [{
|
|
85
|
+
* entityGuids: ["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
|
|
86
|
+
* nrqlQueries: [{
|
|
87
|
+
* query: "name like '%Example application2%'",
|
|
88
|
+
* }],
|
|
89
|
+
* rollup: {
|
|
90
|
+
* strategy: "BEST_STATUS_WINS",
|
|
91
|
+
* thresholdType: "FIXED",
|
|
92
|
+
* thresholdValue: 100,
|
|
93
|
+
* },
|
|
94
|
+
* }],
|
|
95
|
+
* },
|
|
96
|
+
* });
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
99
|
+
* Include static status
|
|
100
|
+
*
|
|
101
|
+
* > You can use this during maintenance tasks or any other time you want to provide a fixed status for your workload. This overrides all automatic rules. [See our docs](https://docs.newrelic.com/docs/workloads/use-workloads/workloads/workload-status#configure-static)
|
|
102
|
+
*
|
|
103
|
+
* ```typescript
|
|
104
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
105
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
106
|
+
*
|
|
107
|
+
* const foo = new newrelic.plugins.Workload("foo", {
|
|
108
|
+
* accountId: 12345678,
|
|
109
|
+
* description: "Description",
|
|
110
|
+
* entityGuids: ["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
|
|
111
|
+
* entitySearchQueries: [{
|
|
112
|
+
* query: "name like '%Example application%'",
|
|
113
|
+
* }],
|
|
114
|
+
* scopeAccountIds: [12345678],
|
|
115
|
+
* statusConfigStatic: {
|
|
116
|
+
* description: "test",
|
|
117
|
+
* enabled: true,
|
|
118
|
+
* status: "OPERATIONAL",
|
|
119
|
+
* summary: "summary of the status",
|
|
120
|
+
* },
|
|
121
|
+
* });
|
|
122
|
+
* ```
|
|
123
|
+
*
|
|
42
124
|
* ## Import
|
|
43
125
|
*
|
|
44
|
-
* New Relic
|
|
126
|
+
* New Relic workloads can be imported using a concatenated string of the format
|
|
45
127
|
*
|
|
46
128
|
* `<account_id>:<workload_id>:<guid>`, e.g. bash
|
|
47
129
|
*
|
|
@@ -73,6 +155,10 @@ export declare class Workload extends pulumi.CustomResource {
|
|
|
73
155
|
* The composite query used to compose a dynamic workload.
|
|
74
156
|
*/
|
|
75
157
|
readonly compositeEntitySearchQuery: pulumi.Output<string>;
|
|
158
|
+
/**
|
|
159
|
+
* A description that provides additional details about the status of the workload.
|
|
160
|
+
*/
|
|
161
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
76
162
|
/**
|
|
77
163
|
* A list of entity GUIDs manually assigned to this workload.
|
|
78
164
|
*/
|
|
@@ -97,6 +183,14 @@ export declare class Workload extends pulumi.CustomResource {
|
|
|
97
183
|
* A list of account IDs that will be used to get entities from.
|
|
98
184
|
*/
|
|
99
185
|
readonly scopeAccountIds: pulumi.Output<number[]>;
|
|
186
|
+
/**
|
|
187
|
+
* An input object used to represent an automatic status configuration.See Nested statusConfigAutomatic blocks below for details.
|
|
188
|
+
*/
|
|
189
|
+
readonly statusConfigAutomatic: pulumi.Output<outputs.plugins.WorkloadStatusConfigAutomatic | undefined>;
|
|
190
|
+
/**
|
|
191
|
+
* A list of static status configurations. You can only configure one static status for a workload.See Nested statusConfigStatic blocks below for details.
|
|
192
|
+
*/
|
|
193
|
+
readonly statusConfigStatic: pulumi.Output<outputs.plugins.WorkloadStatusConfigStatic | undefined>;
|
|
100
194
|
/**
|
|
101
195
|
* The unique entity identifier of the workload.
|
|
102
196
|
*/
|
|
@@ -122,6 +216,10 @@ export interface WorkloadState {
|
|
|
122
216
|
* The composite query used to compose a dynamic workload.
|
|
123
217
|
*/
|
|
124
218
|
compositeEntitySearchQuery?: pulumi.Input<string>;
|
|
219
|
+
/**
|
|
220
|
+
* A description that provides additional details about the status of the workload.
|
|
221
|
+
*/
|
|
222
|
+
description?: pulumi.Input<string>;
|
|
125
223
|
/**
|
|
126
224
|
* A list of entity GUIDs manually assigned to this workload.
|
|
127
225
|
*/
|
|
@@ -146,6 +244,14 @@ export interface WorkloadState {
|
|
|
146
244
|
* A list of account IDs that will be used to get entities from.
|
|
147
245
|
*/
|
|
148
246
|
scopeAccountIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
247
|
+
/**
|
|
248
|
+
* An input object used to represent an automatic status configuration.See Nested statusConfigAutomatic blocks below for details.
|
|
249
|
+
*/
|
|
250
|
+
statusConfigAutomatic?: pulumi.Input<inputs.plugins.WorkloadStatusConfigAutomatic>;
|
|
251
|
+
/**
|
|
252
|
+
* A list of static status configurations. You can only configure one static status for a workload.See Nested statusConfigStatic blocks below for details.
|
|
253
|
+
*/
|
|
254
|
+
statusConfigStatic?: pulumi.Input<inputs.plugins.WorkloadStatusConfigStatic>;
|
|
149
255
|
/**
|
|
150
256
|
* The unique entity identifier of the workload.
|
|
151
257
|
*/
|
|
@@ -159,6 +265,10 @@ export interface WorkloadArgs {
|
|
|
159
265
|
* The New Relic account ID where you want to create the workload.
|
|
160
266
|
*/
|
|
161
267
|
accountId?: pulumi.Input<number>;
|
|
268
|
+
/**
|
|
269
|
+
* A description that provides additional details about the status of the workload.
|
|
270
|
+
*/
|
|
271
|
+
description?: pulumi.Input<string>;
|
|
162
272
|
/**
|
|
163
273
|
* A list of entity GUIDs manually assigned to this workload.
|
|
164
274
|
*/
|
|
@@ -175,4 +285,12 @@ export interface WorkloadArgs {
|
|
|
175
285
|
* A list of account IDs that will be used to get entities from.
|
|
176
286
|
*/
|
|
177
287
|
scopeAccountIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
288
|
+
/**
|
|
289
|
+
* An input object used to represent an automatic status configuration.See Nested statusConfigAutomatic blocks below for details.
|
|
290
|
+
*/
|
|
291
|
+
statusConfigAutomatic?: pulumi.Input<inputs.plugins.WorkloadStatusConfigAutomatic>;
|
|
292
|
+
/**
|
|
293
|
+
* A list of static status configurations. You can only configure one static status for a workload.See Nested statusConfigStatic blocks below for details.
|
|
294
|
+
*/
|
|
295
|
+
statusConfigStatic?: pulumi.Input<inputs.plugins.WorkloadStatusConfigStatic>;
|
|
178
296
|
}
|
package/plugins/workload.js
CHANGED
|
@@ -44,9 +44,90 @@ const utilities = require("../utilities");
|
|
|
44
44
|
* });
|
|
45
45
|
* ```
|
|
46
46
|
*
|
|
47
|
+
* Include entities with a set of tags.
|
|
48
|
+
* ```typescript
|
|
49
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
50
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
51
|
+
*
|
|
52
|
+
* const foo = new newrelic.plugins.Workload("foo", {
|
|
53
|
+
* accountId: 12345678,
|
|
54
|
+
* entityGuids: ["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
|
|
55
|
+
* entitySearchQueries: [{
|
|
56
|
+
* query: "tags.accountId = '12345678' AND tags.environment='production' AND tags.language='java'",
|
|
57
|
+
* }],
|
|
58
|
+
* scopeAccountIds: [12345678],
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* Include automatic status
|
|
63
|
+
*
|
|
64
|
+
* > The global status of your workload is a quick indicator of the workload health. You can configure it to be calculated automatically, and you can also set an alert and get a notification whenever the workload stops being operational. Alternatively, you can communicate a certain status of the workload by setting up a static value and a description. [See our docs](https://docs.newrelic.com/docs/workloads/use-workloads/workloads/workload-status)
|
|
65
|
+
*
|
|
66
|
+
* ```typescript
|
|
67
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
68
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
69
|
+
*
|
|
70
|
+
* const foo = new newrelic.plugins.Workload("foo", {
|
|
71
|
+
* accountId: 12345678,
|
|
72
|
+
* description: "Description",
|
|
73
|
+
* entityGuids: ["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
|
|
74
|
+
* entitySearchQueries: [{
|
|
75
|
+
* query: "name like '%Example application%'",
|
|
76
|
+
* }],
|
|
77
|
+
* scopeAccountIds: [12345678],
|
|
78
|
+
* statusConfigAutomatic: {
|
|
79
|
+
* enabled: true,
|
|
80
|
+
* remainingEntitiesRule: {
|
|
81
|
+
* remainingEntitiesRuleRollup: {
|
|
82
|
+
* groupBy: "ENTITY_TYPE",
|
|
83
|
+
* strategy: "BEST_STATUS_WINS",
|
|
84
|
+
* thresholdType: "FIXED",
|
|
85
|
+
* thresholdValue: 100,
|
|
86
|
+
* },
|
|
87
|
+
* },
|
|
88
|
+
* rules: [{
|
|
89
|
+
* entityGuids: ["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
|
|
90
|
+
* nrqlQueries: [{
|
|
91
|
+
* query: "name like '%Example application2%'",
|
|
92
|
+
* }],
|
|
93
|
+
* rollup: {
|
|
94
|
+
* strategy: "BEST_STATUS_WINS",
|
|
95
|
+
* thresholdType: "FIXED",
|
|
96
|
+
* thresholdValue: 100,
|
|
97
|
+
* },
|
|
98
|
+
* }],
|
|
99
|
+
* },
|
|
100
|
+
* });
|
|
101
|
+
* ```
|
|
102
|
+
*
|
|
103
|
+
* Include static status
|
|
104
|
+
*
|
|
105
|
+
* > You can use this during maintenance tasks or any other time you want to provide a fixed status for your workload. This overrides all automatic rules. [See our docs](https://docs.newrelic.com/docs/workloads/use-workloads/workloads/workload-status#configure-static)
|
|
106
|
+
*
|
|
107
|
+
* ```typescript
|
|
108
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
109
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
110
|
+
*
|
|
111
|
+
* const foo = new newrelic.plugins.Workload("foo", {
|
|
112
|
+
* accountId: 12345678,
|
|
113
|
+
* description: "Description",
|
|
114
|
+
* entityGuids: ["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
|
|
115
|
+
* entitySearchQueries: [{
|
|
116
|
+
* query: "name like '%Example application%'",
|
|
117
|
+
* }],
|
|
118
|
+
* scopeAccountIds: [12345678],
|
|
119
|
+
* statusConfigStatic: {
|
|
120
|
+
* description: "test",
|
|
121
|
+
* enabled: true,
|
|
122
|
+
* status: "OPERATIONAL",
|
|
123
|
+
* summary: "summary of the status",
|
|
124
|
+
* },
|
|
125
|
+
* });
|
|
126
|
+
* ```
|
|
127
|
+
*
|
|
47
128
|
* ## Import
|
|
48
129
|
*
|
|
49
|
-
* New Relic
|
|
130
|
+
* New Relic workloads can be imported using a concatenated string of the format
|
|
50
131
|
*
|
|
51
132
|
* `<account_id>:<workload_id>:<guid>`, e.g. bash
|
|
52
133
|
*
|
|
@@ -55,6 +136,28 @@ const utilities = require("../utilities");
|
|
|
55
136
|
* ```
|
|
56
137
|
*/
|
|
57
138
|
class Workload extends pulumi.CustomResource {
|
|
139
|
+
/**
|
|
140
|
+
* Get an existing Workload resource's state with the given name, ID, and optional extra
|
|
141
|
+
* properties used to qualify the lookup.
|
|
142
|
+
*
|
|
143
|
+
* @param name The _unique_ name of the resulting resource.
|
|
144
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
145
|
+
* @param state Any extra arguments used during the lookup.
|
|
146
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
147
|
+
*/
|
|
148
|
+
static get(name, id, state, opts) {
|
|
149
|
+
return new Workload(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Returns true if the given object is an instance of Workload. This is designed to work even
|
|
153
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
154
|
+
*/
|
|
155
|
+
static isInstance(obj) {
|
|
156
|
+
if (obj === undefined || obj === null) {
|
|
157
|
+
return false;
|
|
158
|
+
}
|
|
159
|
+
return obj['__pulumiType'] === Workload.__pulumiType;
|
|
160
|
+
}
|
|
58
161
|
constructor(name, argsOrState, opts) {
|
|
59
162
|
let resourceInputs = {};
|
|
60
163
|
opts = opts || {};
|
|
@@ -62,21 +165,27 @@ class Workload extends pulumi.CustomResource {
|
|
|
62
165
|
const state = argsOrState;
|
|
63
166
|
resourceInputs["accountId"] = state ? state.accountId : undefined;
|
|
64
167
|
resourceInputs["compositeEntitySearchQuery"] = state ? state.compositeEntitySearchQuery : undefined;
|
|
168
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
65
169
|
resourceInputs["entityGuids"] = state ? state.entityGuids : undefined;
|
|
66
170
|
resourceInputs["entitySearchQueries"] = state ? state.entitySearchQueries : undefined;
|
|
67
171
|
resourceInputs["guid"] = state ? state.guid : undefined;
|
|
68
172
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
69
173
|
resourceInputs["permalink"] = state ? state.permalink : undefined;
|
|
70
174
|
resourceInputs["scopeAccountIds"] = state ? state.scopeAccountIds : undefined;
|
|
175
|
+
resourceInputs["statusConfigAutomatic"] = state ? state.statusConfigAutomatic : undefined;
|
|
176
|
+
resourceInputs["statusConfigStatic"] = state ? state.statusConfigStatic : undefined;
|
|
71
177
|
resourceInputs["workloadId"] = state ? state.workloadId : undefined;
|
|
72
178
|
}
|
|
73
179
|
else {
|
|
74
180
|
const args = argsOrState;
|
|
75
181
|
resourceInputs["accountId"] = args ? args.accountId : undefined;
|
|
182
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
76
183
|
resourceInputs["entityGuids"] = args ? args.entityGuids : undefined;
|
|
77
184
|
resourceInputs["entitySearchQueries"] = args ? args.entitySearchQueries : undefined;
|
|
78
185
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
79
186
|
resourceInputs["scopeAccountIds"] = args ? args.scopeAccountIds : undefined;
|
|
187
|
+
resourceInputs["statusConfigAutomatic"] = args ? args.statusConfigAutomatic : undefined;
|
|
188
|
+
resourceInputs["statusConfigStatic"] = args ? args.statusConfigStatic : undefined;
|
|
80
189
|
resourceInputs["compositeEntitySearchQuery"] = undefined /*out*/;
|
|
81
190
|
resourceInputs["guid"] = undefined /*out*/;
|
|
82
191
|
resourceInputs["permalink"] = undefined /*out*/;
|
|
@@ -85,28 +194,6 @@ class Workload extends pulumi.CustomResource {
|
|
|
85
194
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
86
195
|
super(Workload.__pulumiType, name, resourceInputs, opts);
|
|
87
196
|
}
|
|
88
|
-
/**
|
|
89
|
-
* Get an existing Workload resource's state with the given name, ID, and optional extra
|
|
90
|
-
* properties used to qualify the lookup.
|
|
91
|
-
*
|
|
92
|
-
* @param name The _unique_ name of the resulting resource.
|
|
93
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
94
|
-
* @param state Any extra arguments used during the lookup.
|
|
95
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
96
|
-
*/
|
|
97
|
-
static get(name, id, state, opts) {
|
|
98
|
-
return new Workload(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Returns true if the given object is an instance of Workload. This is designed to work even
|
|
102
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
103
|
-
*/
|
|
104
|
-
static isInstance(obj) {
|
|
105
|
-
if (obj === undefined || obj === null) {
|
|
106
|
-
return false;
|
|
107
|
-
}
|
|
108
|
-
return obj['__pulumiType'] === Workload.__pulumiType;
|
|
109
|
-
}
|
|
110
197
|
}
|
|
111
198
|
exports.Workload = Workload;
|
|
112
199
|
/** @internal */
|
package/plugins/workload.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workload.js","sourceRoot":"","sources":["../../plugins/workload.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"workload.js","sourceRoot":"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
|
package/provider.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
12
12
|
*/
|
|
13
13
|
static isInstance(obj: any): obj is Provider;
|
|
14
14
|
readonly adminApiKey: pulumi.Output<string | undefined>;
|
|
15
|
-
readonly apiKey: pulumi.Output<string
|
|
15
|
+
readonly apiKey: pulumi.Output<string>;
|
|
16
16
|
/**
|
|
17
17
|
* @deprecated New Relic internal use only. API URLs are now configured based on the configured region.
|
|
18
18
|
*/
|
|
@@ -44,7 +44,7 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
44
44
|
* @param args The arguments to use to populate this resource's properties.
|
|
45
45
|
* @param opts A bag of options that control this resource's behavior.
|
|
46
46
|
*/
|
|
47
|
-
constructor(name: string, args
|
|
47
|
+
constructor(name: string, args: ProviderArgs, opts?: pulumi.ResourceOptions);
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* The set of arguments for constructing a Provider resource.
|
|
@@ -52,7 +52,7 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
52
52
|
export interface ProviderArgs {
|
|
53
53
|
accountId?: pulumi.Input<number>;
|
|
54
54
|
adminApiKey?: pulumi.Input<string>;
|
|
55
|
-
apiKey
|
|
55
|
+
apiKey: pulumi.Input<string>;
|
|
56
56
|
/**
|
|
57
57
|
* @deprecated New Relic internal use only. API URLs are now configured based on the configured region.
|
|
58
58
|
*/
|
package/provider.js
CHANGED
|
@@ -12,6 +12,16 @@ const utilities = require("./utilities");
|
|
|
12
12
|
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
13
13
|
*/
|
|
14
14
|
class Provider extends pulumi.ProviderResource {
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj) {
|
|
20
|
+
if (obj === undefined || obj === null) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
return obj['__pulumiType'] === Provider.__pulumiType;
|
|
24
|
+
}
|
|
15
25
|
/**
|
|
16
26
|
* Create a Provider resource with the given unique name, arguments, and options.
|
|
17
27
|
*
|
|
@@ -24,14 +34,17 @@ class Provider extends pulumi.ProviderResource {
|
|
|
24
34
|
let resourceInputs = {};
|
|
25
35
|
opts = opts || {};
|
|
26
36
|
{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
37
|
+
if ((!args || args.apiKey === undefined) && !opts.urn) {
|
|
38
|
+
throw new Error("Missing required property 'apiKey'");
|
|
39
|
+
}
|
|
40
|
+
resourceInputs["accountId"] = pulumi.output((_a = ((args === null || args === void 0 ? void 0 : args.accountId) ? pulumi.secret(args.accountId) : undefined)) !== null && _a !== void 0 ? _a : utilities.getEnvNumber("NEW_RELIC_ACCOUNT_ID")).apply(JSON.stringify);
|
|
41
|
+
resourceInputs["adminApiKey"] = (args === null || args === void 0 ? void 0 : args.adminApiKey) ? pulumi.secret(args.adminApiKey) : undefined;
|
|
42
|
+
resourceInputs["apiKey"] = (args === null || args === void 0 ? void 0 : args.apiKey) ? pulumi.secret(args.apiKey) : undefined;
|
|
30
43
|
resourceInputs["apiUrl"] = args ? args.apiUrl : undefined;
|
|
31
44
|
resourceInputs["cacertFile"] = args ? args.cacertFile : undefined;
|
|
32
45
|
resourceInputs["infrastructureApiUrl"] = args ? args.infrastructureApiUrl : undefined;
|
|
33
46
|
resourceInputs["insecureSkipVerify"] = pulumi.output(args ? args.insecureSkipVerify : undefined).apply(JSON.stringify);
|
|
34
|
-
resourceInputs["insightsInsertKey"] = args ? args.insightsInsertKey : undefined;
|
|
47
|
+
resourceInputs["insightsInsertKey"] = (args === null || args === void 0 ? void 0 : args.insightsInsertKey) ? pulumi.secret(args.insightsInsertKey) : undefined;
|
|
35
48
|
resourceInputs["insightsInsertUrl"] = args ? args.insightsInsertUrl : undefined;
|
|
36
49
|
resourceInputs["insightsQueryUrl"] = args ? args.insightsQueryUrl : undefined;
|
|
37
50
|
resourceInputs["nerdgraphApiUrl"] = args ? args.nerdgraphApiUrl : undefined;
|
|
@@ -39,18 +52,10 @@ class Provider extends pulumi.ProviderResource {
|
|
|
39
52
|
resourceInputs["syntheticsApiUrl"] = args ? args.syntheticsApiUrl : undefined;
|
|
40
53
|
}
|
|
41
54
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
55
|
+
const secretOpts = { additionalSecretOutputs: ["adminApiKey", "apiKey", "insightsInsertKey"] };
|
|
56
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
42
57
|
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
43
58
|
}
|
|
44
|
-
/**
|
|
45
|
-
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
46
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
47
|
-
*/
|
|
48
|
-
static isInstance(obj) {
|
|
49
|
-
if (obj === undefined || obj === null) {
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
return obj['__pulumiType'] === Provider.__pulumiType;
|
|
53
|
-
}
|
|
54
59
|
}
|
|
55
60
|
exports.Provider = Provider;
|
|
56
61
|
/** @internal */
|
package/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;IACI,MAAM,CAAC,UAAU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,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;SACjF;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,aAAa,EAAE,QAAQ,EAAE,mBAAmB,CAAC,EAAE,CAAC;QAC/F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA1EL,4BA2EC;AA1EG,gBAAgB;AACO,qBAAY,GAAG,UAAU,CAAC"}
|
package/serviceLevel.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
|
* Use this resource to create, update, and delete New Relic Service Level Indicators and Objectives.
|
|
5
6
|
*
|
package/serviceLevel.js
CHANGED
|
@@ -110,6 +110,28 @@ const utilities = require("./utilities");
|
|
|
110
110
|
* ```
|
|
111
111
|
*/
|
|
112
112
|
class ServiceLevel extends pulumi.CustomResource {
|
|
113
|
+
/**
|
|
114
|
+
* Get an existing ServiceLevel resource's state with the given name, ID, and optional extra
|
|
115
|
+
* properties used to qualify the lookup.
|
|
116
|
+
*
|
|
117
|
+
* @param name The _unique_ name of the resulting resource.
|
|
118
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
119
|
+
* @param state Any extra arguments used during the lookup.
|
|
120
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
121
|
+
*/
|
|
122
|
+
static get(name, id, state, opts) {
|
|
123
|
+
return new ServiceLevel(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Returns true if the given object is an instance of ServiceLevel. This is designed to work even
|
|
127
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
128
|
+
*/
|
|
129
|
+
static isInstance(obj) {
|
|
130
|
+
if (obj === undefined || obj === null) {
|
|
131
|
+
return false;
|
|
132
|
+
}
|
|
133
|
+
return obj['__pulumiType'] === ServiceLevel.__pulumiType;
|
|
134
|
+
}
|
|
113
135
|
constructor(name, argsOrState, opts) {
|
|
114
136
|
let resourceInputs = {};
|
|
115
137
|
opts = opts || {};
|
|
@@ -145,28 +167,6 @@ class ServiceLevel extends pulumi.CustomResource {
|
|
|
145
167
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
146
168
|
super(ServiceLevel.__pulumiType, name, resourceInputs, opts);
|
|
147
169
|
}
|
|
148
|
-
/**
|
|
149
|
-
* Get an existing ServiceLevel resource's state with the given name, ID, and optional extra
|
|
150
|
-
* properties used to qualify the lookup.
|
|
151
|
-
*
|
|
152
|
-
* @param name The _unique_ name of the resulting resource.
|
|
153
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
154
|
-
* @param state Any extra arguments used during the lookup.
|
|
155
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
156
|
-
*/
|
|
157
|
-
static get(name, id, state, opts) {
|
|
158
|
-
return new ServiceLevel(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Returns true if the given object is an instance of ServiceLevel. This is designed to work even
|
|
162
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
163
|
-
*/
|
|
164
|
-
static isInstance(obj) {
|
|
165
|
-
if (obj === undefined || obj === null) {
|
|
166
|
-
return false;
|
|
167
|
-
}
|
|
168
|
-
return obj['__pulumiType'] === ServiceLevel.__pulumiType;
|
|
169
|
-
}
|
|
170
170
|
}
|
|
171
171
|
exports.ServiceLevel = ServiceLevel;
|
|
172
172
|
/** @internal */
|
package/serviceLevel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serviceLevel.js","sourceRoot":"","sources":["../serviceLevel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"serviceLevel.js","sourceRoot":"","sources":["../serviceLevel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuGG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;IAyCD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAA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