@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
package/synthetics/index.js
CHANGED
|
@@ -1,67 +1,56 @@
|
|
|
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.StepMonitor = exports.SecureCredential = exports.ScriptMonitor = exports.PrivateLocation = exports.MultiLocationAlertCondition = exports.Monitor = exports.getSecureCredentialOutput = exports.getSecureCredential = exports.getPrivateLocationOutput = exports.getPrivateLocation = exports.CertCheckMonitor = exports.BrokenLinksMonitor = exports.AlertCondition = void 0;
|
|
19
6
|
const pulumi = require("@pulumi/pulumi");
|
|
20
7
|
const utilities = require("../utilities");
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
8
|
+
exports.AlertCondition = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["AlertCondition"], () => require("./alertCondition"));
|
|
10
|
+
exports.BrokenLinksMonitor = null;
|
|
11
|
+
utilities.lazyLoad(exports, ["BrokenLinksMonitor"], () => require("./brokenLinksMonitor"));
|
|
12
|
+
exports.CertCheckMonitor = null;
|
|
13
|
+
utilities.lazyLoad(exports, ["CertCheckMonitor"], () => require("./certCheckMonitor"));
|
|
14
|
+
exports.getPrivateLocation = null;
|
|
15
|
+
exports.getPrivateLocationOutput = null;
|
|
16
|
+
utilities.lazyLoad(exports, ["getPrivateLocation", "getPrivateLocationOutput"], () => require("./getPrivateLocation"));
|
|
17
|
+
exports.getSecureCredential = null;
|
|
18
|
+
exports.getSecureCredentialOutput = null;
|
|
19
|
+
utilities.lazyLoad(exports, ["getSecureCredential", "getSecureCredentialOutput"], () => require("./getSecureCredential"));
|
|
20
|
+
exports.Monitor = null;
|
|
21
|
+
utilities.lazyLoad(exports, ["Monitor"], () => require("./monitor"));
|
|
22
|
+
exports.MultiLocationAlertCondition = null;
|
|
23
|
+
utilities.lazyLoad(exports, ["MultiLocationAlertCondition"], () => require("./multiLocationAlertCondition"));
|
|
24
|
+
exports.PrivateLocation = null;
|
|
25
|
+
utilities.lazyLoad(exports, ["PrivateLocation"], () => require("./privateLocation"));
|
|
26
|
+
exports.ScriptMonitor = null;
|
|
27
|
+
utilities.lazyLoad(exports, ["ScriptMonitor"], () => require("./scriptMonitor"));
|
|
28
|
+
exports.SecureCredential = null;
|
|
29
|
+
utilities.lazyLoad(exports, ["SecureCredential"], () => require("./secureCredential"));
|
|
30
|
+
exports.StepMonitor = null;
|
|
31
|
+
utilities.lazyLoad(exports, ["StepMonitor"], () => require("./stepMonitor"));
|
|
43
32
|
const _module = {
|
|
44
33
|
version: utilities.getVersion(),
|
|
45
34
|
construct: (name, type, urn) => {
|
|
46
35
|
switch (type) {
|
|
47
36
|
case "newrelic:synthetics/alertCondition:AlertCondition":
|
|
48
|
-
return new
|
|
37
|
+
return new exports.AlertCondition(name, undefined, { urn });
|
|
49
38
|
case "newrelic:synthetics/brokenLinksMonitor:BrokenLinksMonitor":
|
|
50
|
-
return new
|
|
39
|
+
return new exports.BrokenLinksMonitor(name, undefined, { urn });
|
|
51
40
|
case "newrelic:synthetics/certCheckMonitor:CertCheckMonitor":
|
|
52
|
-
return new
|
|
41
|
+
return new exports.CertCheckMonitor(name, undefined, { urn });
|
|
53
42
|
case "newrelic:synthetics/monitor:Monitor":
|
|
54
|
-
return new
|
|
43
|
+
return new exports.Monitor(name, undefined, { urn });
|
|
55
44
|
case "newrelic:synthetics/multiLocationAlertCondition:MultiLocationAlertCondition":
|
|
56
|
-
return new
|
|
45
|
+
return new exports.MultiLocationAlertCondition(name, undefined, { urn });
|
|
57
46
|
case "newrelic:synthetics/privateLocation:PrivateLocation":
|
|
58
|
-
return new
|
|
47
|
+
return new exports.PrivateLocation(name, undefined, { urn });
|
|
59
48
|
case "newrelic:synthetics/scriptMonitor:ScriptMonitor":
|
|
60
|
-
return new
|
|
49
|
+
return new exports.ScriptMonitor(name, undefined, { urn });
|
|
61
50
|
case "newrelic:synthetics/secureCredential:SecureCredential":
|
|
62
|
-
return new
|
|
51
|
+
return new exports.SecureCredential(name, undefined, { urn });
|
|
63
52
|
case "newrelic:synthetics/stepMonitor:StepMonitor":
|
|
64
|
-
return new
|
|
53
|
+
return new exports.StepMonitor(name, undefined, { urn });
|
|
65
54
|
default:
|
|
66
55
|
throw new Error(`unknown resource type ${type}`);
|
|
67
56
|
}
|
package/synthetics/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../synthetics/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"index.js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OAAO,CAAC,CAAA;AACpG,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,UAAU,EAAE,4BAA4B,EAAE,OAAO,CAAC,CAAA;AACxF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,UAAU,EAAE,0BAA0B,EAAE,OAAO,CAAC,CAAA;AACtF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,UAAU,EAAE,6BAA6B,EAAE,OAAO,CAAC,CAAA;AACzF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,UAAU,EAAE,wBAAwB,EAAE,OAAO,CAAC,CAAA"}
|
package/synthetics/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
|
* Use this resource to create, update, and delete a Simple or Browser Synthetics Monitor in New Relic.
|
|
5
6
|
*
|
|
@@ -12,8 +13,8 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
12
13
|
* const monitor = new newrelic.synthetics.Monitor("monitor", {
|
|
13
14
|
* bypassHeadRequest: true,
|
|
14
15
|
* customHeaders: [{
|
|
15
|
-
* name: "
|
|
16
|
-
* value: "
|
|
16
|
+
* name: "some_name",
|
|
17
|
+
* value: "some_value",
|
|
17
18
|
* }],
|
|
18
19
|
* locationsPublics: ["AP_SOUTH_1"],
|
|
19
20
|
* period: "EVERY_MINUTE",
|
|
@@ -31,27 +32,22 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
31
32
|
* ```
|
|
32
33
|
* ##### Type: `SIMPLE BROWSER`
|
|
33
34
|
*
|
|
34
|
-
* > **NOTE:** The preferred runtime is `CHROME_BROWSER_100` while configuring the `SIMPLE_BROWSER` monitor. The runtime fields `runtimeType`, `runtimeTypeVersion` and `scriptLanguage` are required. Other runtime may be deprecated in the future and receive fewer product updates.
|
|
35
|
-
*
|
|
36
35
|
* ```typescript
|
|
37
36
|
* import * as pulumi from "@pulumi/pulumi";
|
|
38
37
|
* import * as newrelic from "@pulumi/newrelic";
|
|
39
38
|
*
|
|
40
|
-
* const
|
|
39
|
+
* const monitor = new newrelic.synthetics.Monitor("monitor", {
|
|
41
40
|
* customHeaders: [{
|
|
42
|
-
* name: "
|
|
43
|
-
* value: "
|
|
41
|
+
* name: "some_name",
|
|
42
|
+
* value: "some_value",
|
|
44
43
|
* }],
|
|
45
44
|
* enableScreenshotOnFailureAndScript: true,
|
|
46
45
|
* locationsPublics: ["AP_SOUTH_1"],
|
|
47
46
|
* period: "EVERY_MINUTE",
|
|
48
|
-
* runtimeType: "CHROME_BROWSER",
|
|
49
|
-
* runtimeTypeVersion: "100",
|
|
50
|
-
* scriptLanguage: "JAVASCRIPT",
|
|
51
47
|
* status: "ENABLED",
|
|
52
48
|
* tags: [{
|
|
53
|
-
* key: "
|
|
54
|
-
* values: ["
|
|
49
|
+
* key: "some_key",
|
|
50
|
+
* values: ["some_value"],
|
|
55
51
|
* }],
|
|
56
52
|
* type: "BROWSER",
|
|
57
53
|
* uri: "https://www.one.newrelic.com",
|
|
@@ -74,17 +70,17 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
74
70
|
* import * as pulumi from "@pulumi/pulumi";
|
|
75
71
|
* import * as newrelic from "@pulumi/newrelic";
|
|
76
72
|
*
|
|
77
|
-
* const
|
|
78
|
-
* description: "
|
|
73
|
+
* const location = new newrelic.synthetics.PrivateLocation("location", {
|
|
74
|
+
* description: "Example private location",
|
|
79
75
|
* verifiedScriptExecution: false,
|
|
80
76
|
* });
|
|
81
77
|
* const monitor = new newrelic.synthetics.Monitor("monitor", {
|
|
82
78
|
* bypassHeadRequest: true,
|
|
83
79
|
* customHeaders: [{
|
|
84
|
-
* name: "
|
|
85
|
-
* value: "
|
|
80
|
+
* name: "some_name",
|
|
81
|
+
* value: "some_value",
|
|
86
82
|
* }],
|
|
87
|
-
*
|
|
83
|
+
* locationsPrivates: ["newrelic_synthetics_private_location.location.id"],
|
|
88
84
|
* period: "EVERY_MINUTE",
|
|
89
85
|
* status: "ENABLED",
|
|
90
86
|
* tags: [{
|
|
@@ -104,17 +100,17 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
104
100
|
* import * as pulumi from "@pulumi/pulumi";
|
|
105
101
|
* import * as newrelic from "@pulumi/newrelic";
|
|
106
102
|
*
|
|
107
|
-
* const
|
|
108
|
-
* description: "
|
|
103
|
+
* const location = new newrelic.synthetics.PrivateLocation("location", {
|
|
104
|
+
* description: "Example private location",
|
|
109
105
|
* verifiedScriptExecution: false,
|
|
110
106
|
* });
|
|
111
107
|
* const monitor = new newrelic.synthetics.Monitor("monitor", {
|
|
112
108
|
* customHeaders: [{
|
|
113
|
-
* name: "
|
|
114
|
-
* value: "
|
|
109
|
+
* name: "some_name",
|
|
110
|
+
* value: "some_value",
|
|
115
111
|
* }],
|
|
116
112
|
* enableScreenshotOnFailureAndScript: true,
|
|
117
|
-
* locationsPrivates: ["newrelic_synthetics_private_location.
|
|
113
|
+
* locationsPrivates: ["newrelic_synthetics_private_location.location.id"],
|
|
118
114
|
* period: "EVERY_MINUTE",
|
|
119
115
|
* runtimeType: "CHROME_BROWSER",
|
|
120
116
|
* runtimeTypeVersion: "100",
|
|
@@ -136,7 +132,7 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
136
132
|
* Synthetics monitor can be imported using the `guid`, e.g. bash
|
|
137
133
|
*
|
|
138
134
|
* ```sh
|
|
139
|
-
* $ pulumi import newrelic:synthetics/monitor:Monitor
|
|
135
|
+
* $ pulumi import newrelic:synthetics/monitor:Monitor monitor <guid>
|
|
140
136
|
* ```
|
|
141
137
|
*/
|
|
142
138
|
export declare class Monitor extends pulumi.CustomResource {
|
|
@@ -164,7 +160,7 @@ export declare class Monitor extends pulumi.CustomResource {
|
|
|
164
160
|
*/
|
|
165
161
|
readonly bypassHeadRequest: pulumi.Output<boolean | undefined>;
|
|
166
162
|
/**
|
|
167
|
-
* Custom headers to use in monitor job. See Nested
|
|
163
|
+
* Custom headers to use in monitor job. See Nested customHeader blocks below for details.
|
|
168
164
|
*/
|
|
169
165
|
readonly customHeaders: pulumi.Output<outputs.synthetics.MonitorCustomHeader[] | undefined>;
|
|
170
166
|
/**
|
|
@@ -212,11 +208,11 @@ export declare class Monitor extends pulumi.CustomResource {
|
|
|
212
208
|
*/
|
|
213
209
|
readonly treatRedirectAsFailure: pulumi.Output<boolean | undefined>;
|
|
214
210
|
/**
|
|
215
|
-
*
|
|
211
|
+
* The monitor type. Valid values are `SIMPLE` and `BROWSER`.
|
|
216
212
|
*/
|
|
217
213
|
readonly type: pulumi.Output<string>;
|
|
218
214
|
/**
|
|
219
|
-
* The
|
|
215
|
+
* The URI the monitor runs against.
|
|
220
216
|
*/
|
|
221
217
|
readonly uri: pulumi.Output<string | undefined>;
|
|
222
218
|
/**
|
|
@@ -249,7 +245,7 @@ export interface MonitorState {
|
|
|
249
245
|
*/
|
|
250
246
|
bypassHeadRequest?: pulumi.Input<boolean>;
|
|
251
247
|
/**
|
|
252
|
-
* Custom headers to use in monitor job. See Nested
|
|
248
|
+
* Custom headers to use in monitor job. See Nested customHeader blocks below for details.
|
|
253
249
|
*/
|
|
254
250
|
customHeaders?: pulumi.Input<pulumi.Input<inputs.synthetics.MonitorCustomHeader>[]>;
|
|
255
251
|
/**
|
|
@@ -297,11 +293,11 @@ export interface MonitorState {
|
|
|
297
293
|
*/
|
|
298
294
|
treatRedirectAsFailure?: pulumi.Input<boolean>;
|
|
299
295
|
/**
|
|
300
|
-
*
|
|
296
|
+
* The monitor type. Valid values are `SIMPLE` and `BROWSER`.
|
|
301
297
|
*/
|
|
302
298
|
type?: pulumi.Input<string>;
|
|
303
299
|
/**
|
|
304
|
-
* The
|
|
300
|
+
* The URI the monitor runs against.
|
|
305
301
|
*/
|
|
306
302
|
uri?: pulumi.Input<string>;
|
|
307
303
|
/**
|
|
@@ -326,7 +322,7 @@ export interface MonitorArgs {
|
|
|
326
322
|
*/
|
|
327
323
|
bypassHeadRequest?: pulumi.Input<boolean>;
|
|
328
324
|
/**
|
|
329
|
-
* Custom headers to use in monitor job. See Nested
|
|
325
|
+
* Custom headers to use in monitor job. See Nested customHeader blocks below for details.
|
|
330
326
|
*/
|
|
331
327
|
customHeaders?: pulumi.Input<pulumi.Input<inputs.synthetics.MonitorCustomHeader>[]>;
|
|
332
328
|
/**
|
|
@@ -374,11 +370,11 @@ export interface MonitorArgs {
|
|
|
374
370
|
*/
|
|
375
371
|
treatRedirectAsFailure?: pulumi.Input<boolean>;
|
|
376
372
|
/**
|
|
377
|
-
*
|
|
373
|
+
* The monitor type. Valid values are `SIMPLE` and `BROWSER`.
|
|
378
374
|
*/
|
|
379
375
|
type: pulumi.Input<string>;
|
|
380
376
|
/**
|
|
381
|
-
* The
|
|
377
|
+
* The URI the monitor runs against.
|
|
382
378
|
*/
|
|
383
379
|
uri?: pulumi.Input<string>;
|
|
384
380
|
/**
|
package/synthetics/monitor.js
CHANGED
|
@@ -17,8 +17,8 @@ const utilities = require("../utilities");
|
|
|
17
17
|
* const monitor = new newrelic.synthetics.Monitor("monitor", {
|
|
18
18
|
* bypassHeadRequest: true,
|
|
19
19
|
* customHeaders: [{
|
|
20
|
-
* name: "
|
|
21
|
-
* value: "
|
|
20
|
+
* name: "some_name",
|
|
21
|
+
* value: "some_value",
|
|
22
22
|
* }],
|
|
23
23
|
* locationsPublics: ["AP_SOUTH_1"],
|
|
24
24
|
* period: "EVERY_MINUTE",
|
|
@@ -36,27 +36,22 @@ const utilities = require("../utilities");
|
|
|
36
36
|
* ```
|
|
37
37
|
* ##### Type: `SIMPLE BROWSER`
|
|
38
38
|
*
|
|
39
|
-
* > **NOTE:** The preferred runtime is `CHROME_BROWSER_100` while configuring the `SIMPLE_BROWSER` monitor. The runtime fields `runtimeType`, `runtimeTypeVersion` and `scriptLanguage` are required. Other runtime may be deprecated in the future and receive fewer product updates.
|
|
40
|
-
*
|
|
41
39
|
* ```typescript
|
|
42
40
|
* import * as pulumi from "@pulumi/pulumi";
|
|
43
41
|
* import * as newrelic from "@pulumi/newrelic";
|
|
44
42
|
*
|
|
45
|
-
* const
|
|
43
|
+
* const monitor = new newrelic.synthetics.Monitor("monitor", {
|
|
46
44
|
* customHeaders: [{
|
|
47
|
-
* name: "
|
|
48
|
-
* value: "
|
|
45
|
+
* name: "some_name",
|
|
46
|
+
* value: "some_value",
|
|
49
47
|
* }],
|
|
50
48
|
* enableScreenshotOnFailureAndScript: true,
|
|
51
49
|
* locationsPublics: ["AP_SOUTH_1"],
|
|
52
50
|
* period: "EVERY_MINUTE",
|
|
53
|
-
* runtimeType: "CHROME_BROWSER",
|
|
54
|
-
* runtimeTypeVersion: "100",
|
|
55
|
-
* scriptLanguage: "JAVASCRIPT",
|
|
56
51
|
* status: "ENABLED",
|
|
57
52
|
* tags: [{
|
|
58
|
-
* key: "
|
|
59
|
-
* values: ["
|
|
53
|
+
* key: "some_key",
|
|
54
|
+
* values: ["some_value"],
|
|
60
55
|
* }],
|
|
61
56
|
* type: "BROWSER",
|
|
62
57
|
* uri: "https://www.one.newrelic.com",
|
|
@@ -79,17 +74,17 @@ const utilities = require("../utilities");
|
|
|
79
74
|
* import * as pulumi from "@pulumi/pulumi";
|
|
80
75
|
* import * as newrelic from "@pulumi/newrelic";
|
|
81
76
|
*
|
|
82
|
-
* const
|
|
83
|
-
* description: "
|
|
77
|
+
* const location = new newrelic.synthetics.PrivateLocation("location", {
|
|
78
|
+
* description: "Example private location",
|
|
84
79
|
* verifiedScriptExecution: false,
|
|
85
80
|
* });
|
|
86
81
|
* const monitor = new newrelic.synthetics.Monitor("monitor", {
|
|
87
82
|
* bypassHeadRequest: true,
|
|
88
83
|
* customHeaders: [{
|
|
89
|
-
* name: "
|
|
90
|
-
* value: "
|
|
84
|
+
* name: "some_name",
|
|
85
|
+
* value: "some_value",
|
|
91
86
|
* }],
|
|
92
|
-
*
|
|
87
|
+
* locationsPrivates: ["newrelic_synthetics_private_location.location.id"],
|
|
93
88
|
* period: "EVERY_MINUTE",
|
|
94
89
|
* status: "ENABLED",
|
|
95
90
|
* tags: [{
|
|
@@ -109,17 +104,17 @@ const utilities = require("../utilities");
|
|
|
109
104
|
* import * as pulumi from "@pulumi/pulumi";
|
|
110
105
|
* import * as newrelic from "@pulumi/newrelic";
|
|
111
106
|
*
|
|
112
|
-
* const
|
|
113
|
-
* description: "
|
|
107
|
+
* const location = new newrelic.synthetics.PrivateLocation("location", {
|
|
108
|
+
* description: "Example private location",
|
|
114
109
|
* verifiedScriptExecution: false,
|
|
115
110
|
* });
|
|
116
111
|
* const monitor = new newrelic.synthetics.Monitor("monitor", {
|
|
117
112
|
* customHeaders: [{
|
|
118
|
-
* name: "
|
|
119
|
-
* value: "
|
|
113
|
+
* name: "some_name",
|
|
114
|
+
* value: "some_value",
|
|
120
115
|
* }],
|
|
121
116
|
* enableScreenshotOnFailureAndScript: true,
|
|
122
|
-
* locationsPrivates: ["newrelic_synthetics_private_location.
|
|
117
|
+
* locationsPrivates: ["newrelic_synthetics_private_location.location.id"],
|
|
123
118
|
* period: "EVERY_MINUTE",
|
|
124
119
|
* runtimeType: "CHROME_BROWSER",
|
|
125
120
|
* runtimeTypeVersion: "100",
|
|
@@ -141,10 +136,32 @@ const utilities = require("../utilities");
|
|
|
141
136
|
* Synthetics monitor can be imported using the `guid`, e.g. bash
|
|
142
137
|
*
|
|
143
138
|
* ```sh
|
|
144
|
-
* $ pulumi import newrelic:synthetics/monitor:Monitor
|
|
139
|
+
* $ pulumi import newrelic:synthetics/monitor:Monitor monitor <guid>
|
|
145
140
|
* ```
|
|
146
141
|
*/
|
|
147
142
|
class Monitor extends pulumi.CustomResource {
|
|
143
|
+
/**
|
|
144
|
+
* Get an existing Monitor resource's state with the given name, ID, and optional extra
|
|
145
|
+
* properties used to qualify the lookup.
|
|
146
|
+
*
|
|
147
|
+
* @param name The _unique_ name of the resulting resource.
|
|
148
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
149
|
+
* @param state Any extra arguments used during the lookup.
|
|
150
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
151
|
+
*/
|
|
152
|
+
static get(name, id, state, opts) {
|
|
153
|
+
return new Monitor(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Returns true if the given object is an instance of Monitor. This is designed to work even
|
|
157
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
158
|
+
*/
|
|
159
|
+
static isInstance(obj) {
|
|
160
|
+
if (obj === undefined || obj === null) {
|
|
161
|
+
return false;
|
|
162
|
+
}
|
|
163
|
+
return obj['__pulumiType'] === Monitor.__pulumiType;
|
|
164
|
+
}
|
|
148
165
|
constructor(name, argsOrState, opts) {
|
|
149
166
|
let resourceInputs = {};
|
|
150
167
|
opts = opts || {};
|
|
@@ -199,28 +216,6 @@ class Monitor extends pulumi.CustomResource {
|
|
|
199
216
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
200
217
|
super(Monitor.__pulumiType, name, resourceInputs, opts);
|
|
201
218
|
}
|
|
202
|
-
/**
|
|
203
|
-
* Get an existing Monitor resource's state with the given name, ID, and optional extra
|
|
204
|
-
* properties used to qualify the lookup.
|
|
205
|
-
*
|
|
206
|
-
* @param name The _unique_ name of the resulting resource.
|
|
207
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
208
|
-
* @param state Any extra arguments used during the lookup.
|
|
209
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
210
|
-
*/
|
|
211
|
-
static get(name, id, state, opts) {
|
|
212
|
-
return new Monitor(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* Returns true if the given object is an instance of Monitor. This is designed to work even
|
|
216
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
217
|
-
*/
|
|
218
|
-
static isInstance(obj) {
|
|
219
|
-
if (obj === undefined || obj === null) {
|
|
220
|
-
return false;
|
|
221
|
-
}
|
|
222
|
-
return obj['__pulumiType'] === Monitor.__pulumiType;
|
|
223
|
-
}
|
|
224
219
|
}
|
|
225
220
|
exports.Monitor = Monitor;
|
|
226
221
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitor.js","sourceRoot":"","sources":["../../synthetics/monitor.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"monitor.js","sourceRoot":"","sources":["../../synthetics/monitor.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqIG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;IAmFD,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC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C,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1F,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;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;;AAjKL,0BAkKC;AApJG,gBAAgB;AACO,oBAAY,GAAG,qCAAqC,CAAC"}
|
|
@@ -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 Synthetics Location Alerts.
|
|
5
6
|
*
|
|
@@ -50,6 +50,28 @@ const utilities = require("../utilities");
|
|
|
50
50
|
* ```
|
|
51
51
|
*/
|
|
52
52
|
class MultiLocationAlertCondition extends pulumi.CustomResource {
|
|
53
|
+
/**
|
|
54
|
+
* Get an existing MultiLocationAlertCondition resource's state with the given name, ID, and optional extra
|
|
55
|
+
* properties used to qualify the lookup.
|
|
56
|
+
*
|
|
57
|
+
* @param name The _unique_ name of the resulting resource.
|
|
58
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
59
|
+
* @param state Any extra arguments used during the lookup.
|
|
60
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
61
|
+
*/
|
|
62
|
+
static get(name, id, state, opts) {
|
|
63
|
+
return new MultiLocationAlertCondition(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Returns true if the given object is an instance of MultiLocationAlertCondition. This is designed to work even
|
|
67
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
68
|
+
*/
|
|
69
|
+
static isInstance(obj) {
|
|
70
|
+
if (obj === undefined || obj === null) {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
return obj['__pulumiType'] === MultiLocationAlertCondition.__pulumiType;
|
|
74
|
+
}
|
|
53
75
|
constructor(name, argsOrState, opts) {
|
|
54
76
|
let resourceInputs = {};
|
|
55
77
|
opts = opts || {};
|
|
@@ -90,28 +112,6 @@ class MultiLocationAlertCondition extends pulumi.CustomResource {
|
|
|
90
112
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
91
113
|
super(MultiLocationAlertCondition.__pulumiType, name, resourceInputs, opts);
|
|
92
114
|
}
|
|
93
|
-
/**
|
|
94
|
-
* Get an existing MultiLocationAlertCondition resource's state with the given name, ID, and optional extra
|
|
95
|
-
* properties used to qualify the lookup.
|
|
96
|
-
*
|
|
97
|
-
* @param name The _unique_ name of the resulting resource.
|
|
98
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
99
|
-
* @param state Any extra arguments used during the lookup.
|
|
100
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
101
|
-
*/
|
|
102
|
-
static get(name, id, state, opts) {
|
|
103
|
-
return new MultiLocationAlertCondition(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Returns true if the given object is an instance of MultiLocationAlertCondition. This is designed to work even
|
|
107
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
108
|
-
*/
|
|
109
|
-
static isInstance(obj) {
|
|
110
|
-
if (obj === undefined || obj === null) {
|
|
111
|
-
return false;
|
|
112
|
-
}
|
|
113
|
-
return obj['__pulumiType'] === MultiLocationAlertCondition.__pulumiType;
|
|
114
|
-
}
|
|
115
115
|
}
|
|
116
116
|
exports.MultiLocationAlertCondition = MultiLocationAlertCondition;
|
|
117
117
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multiLocationAlertCondition.js","sourceRoot":"","sources":["../../synthetics/multiLocationAlertCondition.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"multiLocationAlertCondition.js","sourceRoot":"","sources":["../../synthetics/multiLocationAlertCondition.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAa,2BAA4B,SAAQ,MAAM,CAAC,cAAc;IAClE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwC,EAAE,IAAmC;QACtI,OAAO,IAAI,2BAA2B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClF,CAAC;IAKD;;;OAG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AU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,2BAA2B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChG,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,2BAA2B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChF,CAAC;;AA3GL,kEA4GC;AA9FG,gBAAgB;AACO,wCAAY,GAAG,6EAA6E,CAAC"}
|
|
@@ -8,8 +8,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
9
9
|
* import * as newrelic from "@pulumi/newrelic";
|
|
10
10
|
*
|
|
11
|
-
* const
|
|
12
|
-
* accountId: "NewRelic account ID",
|
|
11
|
+
* const location = new newrelic.synthetics.PrivateLocation("location", {
|
|
13
12
|
* description: "The private location description",
|
|
14
13
|
* });
|
|
15
14
|
* ```
|
|
@@ -19,7 +18,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
19
18
|
* A Synthetics private location can be imported using the `guid`
|
|
20
19
|
*
|
|
21
20
|
* ```sh
|
|
22
|
-
* $ pulumi import newrelic:synthetics/privateLocation:PrivateLocation
|
|
21
|
+
* $ pulumi import newrelic:synthetics/privateLocation:PrivateLocation location GUID
|
|
23
22
|
* ```
|
|
24
23
|
*/
|
|
25
24
|
export declare class PrivateLocation extends pulumi.CustomResource {
|
|
@@ -39,7 +38,7 @@ export declare class PrivateLocation extends pulumi.CustomResource {
|
|
|
39
38
|
*/
|
|
40
39
|
static isInstance(obj: any): obj is PrivateLocation;
|
|
41
40
|
/**
|
|
42
|
-
*
|
|
41
|
+
* The account in which the private location will be created.
|
|
43
42
|
*/
|
|
44
43
|
readonly accountId: pulumi.Output<number>;
|
|
45
44
|
/**
|
|
@@ -51,7 +50,7 @@ export declare class PrivateLocation extends pulumi.CustomResource {
|
|
|
51
50
|
*/
|
|
52
51
|
readonly domainId: pulumi.Output<string>;
|
|
53
52
|
/**
|
|
54
|
-
* The unique client identifier for the
|
|
53
|
+
* The unique client identifier for the private location in New Relic. Same as `id`.
|
|
55
54
|
*/
|
|
56
55
|
readonly guid: pulumi.Output<string>;
|
|
57
56
|
/**
|
|
@@ -84,7 +83,7 @@ export declare class PrivateLocation extends pulumi.CustomResource {
|
|
|
84
83
|
*/
|
|
85
84
|
export interface PrivateLocationState {
|
|
86
85
|
/**
|
|
87
|
-
*
|
|
86
|
+
* The account in which the private location will be created.
|
|
88
87
|
*/
|
|
89
88
|
accountId?: pulumi.Input<number>;
|
|
90
89
|
/**
|
|
@@ -96,7 +95,7 @@ export interface PrivateLocationState {
|
|
|
96
95
|
*/
|
|
97
96
|
domainId?: pulumi.Input<string>;
|
|
98
97
|
/**
|
|
99
|
-
* The unique client identifier for the
|
|
98
|
+
* The unique client identifier for the private location in New Relic. Same as `id`.
|
|
100
99
|
*/
|
|
101
100
|
guid?: pulumi.Input<string>;
|
|
102
101
|
/**
|
|
@@ -121,7 +120,7 @@ export interface PrivateLocationState {
|
|
|
121
120
|
*/
|
|
122
121
|
export interface PrivateLocationArgs {
|
|
123
122
|
/**
|
|
124
|
-
*
|
|
123
|
+
* The account in which the private location will be created.
|
|
125
124
|
*/
|
|
126
125
|
accountId?: pulumi.Input<number>;
|
|
127
126
|
/**
|