@pulumi/newrelic 4.19.0 → 5.0.0-alpha.1663005924

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.
Files changed (89) hide show
  1. package/README.md +2 -2
  2. package/alertPolicyChannel.d.ts +1 -1
  3. package/alertPolicyChannel.js +1 -1
  4. package/cloud/awsIntegrations.d.ts +24 -0
  5. package/cloud/awsIntegrations.js +4 -0
  6. package/cloud/awsIntegrations.js.map +1 -1
  7. package/getAlertChannel.d.ts +9 -0
  8. package/getAlertChannel.js +1 -0
  9. package/getAlertChannel.js.map +1 -1
  10. package/getAlertPolicy.d.ts +6 -0
  11. package/getAlertPolicy.js.map +1 -1
  12. package/index.d.ts +1 -1
  13. package/index.js +5 -5
  14. package/index.js.map +1 -1
  15. package/notificationChannel.d.ts +236 -20
  16. package/notificationChannel.js +199 -0
  17. package/notificationChannel.js.map +1 -1
  18. package/notificationDestination.d.ts +204 -26
  19. package/notificationDestination.js +144 -2
  20. package/notificationDestination.js.map +1 -1
  21. package/nrqlAlertCondition.d.ts +12 -15
  22. package/nrqlAlertCondition.js +0 -3
  23. package/nrqlAlertCondition.js.map +1 -1
  24. package/package.json +4 -3
  25. package/package.json.bak +2 -1
  26. package/package.json.dev +4 -3
  27. package/plugins/index.d.ts +0 -3
  28. package/plugins/index.js +0 -7
  29. package/plugins/index.js.map +1 -1
  30. package/synthetics/alertCondition.d.ts +3 -19
  31. package/synthetics/alertCondition.js +0 -16
  32. package/synthetics/alertCondition.js.map +1 -1
  33. package/synthetics/brokenLinksMonitor.d.ts +198 -0
  34. package/synthetics/brokenLinksMonitor.js +131 -0
  35. package/synthetics/brokenLinksMonitor.js.map +1 -0
  36. package/synthetics/certCheckMonitor.d.ts +203 -0
  37. package/synthetics/certCheckMonitor.js +135 -0
  38. package/synthetics/certCheckMonitor.js.map +1 -0
  39. package/synthetics/getPrivateLocation.d.ts +34 -0
  40. package/synthetics/getPrivateLocation.js +25 -0
  41. package/synthetics/getPrivateLocation.js.map +1 -0
  42. package/synthetics/getSecureCredential.d.ts +0 -4
  43. package/synthetics/getSecureCredential.js.map +1 -1
  44. package/synthetics/index.d.ts +6 -3
  45. package/synthetics/index.js +26 -7
  46. package/synthetics/index.js.map +1 -1
  47. package/synthetics/monitor.d.ts +221 -77
  48. package/synthetics/monitor.js +114 -47
  49. package/synthetics/monitor.js.map +1 -1
  50. package/synthetics/multiLocationAlertCondition.d.ts +32 -3
  51. package/synthetics/multiLocationAlertCondition.js +29 -0
  52. package/synthetics/multiLocationAlertCondition.js.map +1 -1
  53. package/synthetics/privateLocation.d.ts +139 -0
  54. package/synthetics/privateLocation.js +89 -0
  55. package/synthetics/privateLocation.js.map +1 -0
  56. package/synthetics/scriptMonitor.d.ts +341 -0
  57. package/synthetics/scriptMonitor.js +224 -0
  58. package/synthetics/scriptMonitor.js.map +1 -0
  59. package/synthetics/secureCredential.d.ts +6 -6
  60. package/synthetics/secureCredential.js +2 -2
  61. package/synthetics/stepMonitor.d.ts +192 -0
  62. package/synthetics/stepMonitor.js +115 -0
  63. package/synthetics/stepMonitor.js.map +1 -0
  64. package/types/input.d.ts +217 -130
  65. package/types/output.d.ts +213 -126
  66. package/workflow.d.ts +291 -0
  67. package/workflow.js +208 -0
  68. package/workflow.js.map +1 -0
  69. package/dashboard.d.ts +0 -139
  70. package/dashboard.js +0 -73
  71. package/dashboard.js.map +0 -1
  72. package/plugins/alertCondition.d.ts +0 -167
  73. package/plugins/alertCondition.js +0 -100
  74. package/plugins/alertCondition.js.map +0 -1
  75. package/plugins/getPlugin.d.ts +0 -29
  76. package/plugins/getPlugin.js +0 -29
  77. package/plugins/getPlugin.js.map +0 -1
  78. package/plugins/getPluginComponent.d.ts +0 -33
  79. package/plugins/getPluginComponent.js +0 -30
  80. package/plugins/getPluginComponent.js.map +0 -1
  81. package/synthetics/getMonitor.d.ts +0 -54
  82. package/synthetics/getMonitor.js +0 -41
  83. package/synthetics/getMonitor.js.map +0 -1
  84. package/synthetics/getMonitorLocation.d.ts +0 -71
  85. package/synthetics/getMonitorLocation.js +0 -46
  86. package/synthetics/getMonitorLocation.js.map +0 -1
  87. package/synthetics/monitorScript.d.ts +0 -107
  88. package/synthetics/monitorScript.js +0 -93
  89. package/synthetics/monitorScript.js.map +0 -1
@@ -1,46 +0,0 @@
1
- "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
- // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.getMonitorLocationOutput = exports.getMonitorLocation = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("../utilities");
8
- /**
9
- * Use this data source to get information about a specific Synthetics monitor location in New Relic that already exists.
10
- *
11
- * ## Example Usage
12
- *
13
- * ```typescript
14
- * import * as pulumi from "@pulumi/pulumi";
15
- * import * as newrelic from "@pulumi/newrelic";
16
- *
17
- * const bar = newrelic.synthetics.getMonitorLocation({
18
- * label: "My private location",
19
- * });
20
- * const foo = new newrelic.synthetics.Monitor("foo", {
21
- * type: "SIMPLE",
22
- * frequency: 5,
23
- * status: "ENABLED",
24
- * locations: [bar.then(bar => bar.name)],
25
- * uri: "https://example.com",
26
- * validationString: "add example validation check here",
27
- * verifySsl: true,
28
- * });
29
- * // Optional for type "SIMPLE" and "BROWSER"
30
- * ```
31
- */
32
- function getMonitorLocation(args, opts) {
33
- if (!opts) {
34
- opts = {};
35
- }
36
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
37
- return pulumi.runtime.invoke("newrelic:synthetics/getMonitorLocation:getMonitorLocation", {
38
- "label": args.label,
39
- }, opts);
40
- }
41
- exports.getMonitorLocation = getMonitorLocation;
42
- function getMonitorLocationOutput(args, opts) {
43
- return pulumi.output(args).apply(a => getMonitorLocation(a, opts));
44
- }
45
- exports.getMonitorLocationOutput = getMonitorLocationOutput;
46
- //# sourceMappingURL=getMonitorLocation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getMonitorLocation.js","sourceRoot":"","sources":["../../synthetics/getMonitorLocation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2DAA2D,EAAE;QACtF,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,gDASC;AAuCD,SAAgB,wBAAwB,CAAC,IAAkC,EAAE,IAA2B;IACpG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,4DAEC"}
@@ -1,107 +0,0 @@
1
- import * as pulumi from "@pulumi/pulumi";
2
- import { input as inputs, output as outputs } from "../types";
3
- /**
4
- * Use this resource to update a synthetics monitor script in New Relic.
5
- *
6
- * ## Example Usage
7
- *
8
- * ```typescript
9
- * import * as pulumi from "@pulumi/pulumi";
10
- * import * as newrelic from "@pulumi/newrelic";
11
- * import * from "fs";
12
- *
13
- * const foo = new newrelic.synthetics.Monitor("foo", {
14
- * type: "SCRIPT_BROWSER",
15
- * frequency: 5,
16
- * status: "ENABLED",
17
- * locations: ["AWS_US_EAST_1"],
18
- * });
19
- * const fooScript = new newrelic.synthetics.MonitorScript("fooScript", {
20
- * monitorId: foo.id,
21
- * text: fs.readFileSync(`${path.module}/foo_script.js`),
22
- * locations: [{
23
- * name: "YWJjZAo=",
24
- * hmac: "ZmFrZWxvY2F0aW9uc2NyaXB0ZmFrZQ==",
25
- * }],
26
- * });
27
- * ```
28
- *
29
- * ## Import
30
- *
31
- * Synthetics monitor scripts can be imported using the `id`, e.g. bash
32
- *
33
- * ```sh
34
- * $ pulumi import newrelic:synthetics/monitorScript:MonitorScript main <id>
35
- * ```
36
- */
37
- export declare class MonitorScript extends pulumi.CustomResource {
38
- /**
39
- * Get an existing MonitorScript resource's state with the given name, ID, and optional extra
40
- * properties used to qualify the lookup.
41
- *
42
- * @param name The _unique_ name of the resulting resource.
43
- * @param id The _unique_ provider ID of the resource to lookup.
44
- * @param state Any extra arguments used during the lookup.
45
- * @param opts Optional settings to control the behavior of the CustomResource.
46
- */
47
- static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MonitorScriptState, opts?: pulumi.CustomResourceOptions): MonitorScript;
48
- /**
49
- * Returns true if the given object is an instance of MonitorScript. This is designed to work even
50
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
51
- */
52
- static isInstance(obj: any): obj is MonitorScript;
53
- /**
54
- * A nested block that describes a monitor script location. See Nested location blocks below for details
55
- */
56
- readonly locations: pulumi.Output<outputs.synthetics.MonitorScriptLocation[] | undefined>;
57
- /**
58
- * The ID of the monitor to attach the script to.
59
- */
60
- readonly monitorId: pulumi.Output<string>;
61
- /**
62
- * The plaintext representing the monitor script.
63
- */
64
- readonly text: pulumi.Output<string>;
65
- /**
66
- * Create a MonitorScript resource with the given unique name, arguments, and options.
67
- *
68
- * @param name The _unique_ name of the resource.
69
- * @param args The arguments to use to populate this resource's properties.
70
- * @param opts A bag of options that control this resource's behavior.
71
- */
72
- constructor(name: string, args: MonitorScriptArgs, opts?: pulumi.CustomResourceOptions);
73
- }
74
- /**
75
- * Input properties used for looking up and filtering MonitorScript resources.
76
- */
77
- export interface MonitorScriptState {
78
- /**
79
- * A nested block that describes a monitor script location. See Nested location blocks below for details
80
- */
81
- locations?: pulumi.Input<pulumi.Input<inputs.synthetics.MonitorScriptLocation>[]>;
82
- /**
83
- * The ID of the monitor to attach the script to.
84
- */
85
- monitorId?: pulumi.Input<string>;
86
- /**
87
- * The plaintext representing the monitor script.
88
- */
89
- text?: pulumi.Input<string>;
90
- }
91
- /**
92
- * The set of arguments for constructing a MonitorScript resource.
93
- */
94
- export interface MonitorScriptArgs {
95
- /**
96
- * A nested block that describes a monitor script location. See Nested location blocks below for details
97
- */
98
- locations?: pulumi.Input<pulumi.Input<inputs.synthetics.MonitorScriptLocation>[]>;
99
- /**
100
- * The ID of the monitor to attach the script to.
101
- */
102
- monitorId: pulumi.Input<string>;
103
- /**
104
- * The plaintext representing the monitor script.
105
- */
106
- text: pulumi.Input<string>;
107
- }
@@ -1,93 +0,0 @@
1
- "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
- // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.MonitorScript = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("../utilities");
8
- /**
9
- * Use this resource to update a synthetics monitor script in New Relic.
10
- *
11
- * ## Example Usage
12
- *
13
- * ```typescript
14
- * import * as pulumi from "@pulumi/pulumi";
15
- * import * as newrelic from "@pulumi/newrelic";
16
- * import * from "fs";
17
- *
18
- * const foo = new newrelic.synthetics.Monitor("foo", {
19
- * type: "SCRIPT_BROWSER",
20
- * frequency: 5,
21
- * status: "ENABLED",
22
- * locations: ["AWS_US_EAST_1"],
23
- * });
24
- * const fooScript = new newrelic.synthetics.MonitorScript("fooScript", {
25
- * monitorId: foo.id,
26
- * text: fs.readFileSync(`${path.module}/foo_script.js`),
27
- * locations: [{
28
- * name: "YWJjZAo=",
29
- * hmac: "ZmFrZWxvY2F0aW9uc2NyaXB0ZmFrZQ==",
30
- * }],
31
- * });
32
- * ```
33
- *
34
- * ## Import
35
- *
36
- * Synthetics monitor scripts can be imported using the `id`, e.g. bash
37
- *
38
- * ```sh
39
- * $ pulumi import newrelic:synthetics/monitorScript:MonitorScript main <id>
40
- * ```
41
- */
42
- class MonitorScript extends pulumi.CustomResource {
43
- constructor(name, argsOrState, opts) {
44
- let resourceInputs = {};
45
- opts = opts || {};
46
- if (opts.id) {
47
- const state = argsOrState;
48
- resourceInputs["locations"] = state ? state.locations : undefined;
49
- resourceInputs["monitorId"] = state ? state.monitorId : undefined;
50
- resourceInputs["text"] = state ? state.text : undefined;
51
- }
52
- else {
53
- const args = argsOrState;
54
- if ((!args || args.monitorId === undefined) && !opts.urn) {
55
- throw new Error("Missing required property 'monitorId'");
56
- }
57
- if ((!args || args.text === undefined) && !opts.urn) {
58
- throw new Error("Missing required property 'text'");
59
- }
60
- resourceInputs["locations"] = args ? args.locations : undefined;
61
- resourceInputs["monitorId"] = args ? args.monitorId : undefined;
62
- resourceInputs["text"] = args ? args.text : undefined;
63
- }
64
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
65
- super(MonitorScript.__pulumiType, name, resourceInputs, opts);
66
- }
67
- /**
68
- * Get an existing MonitorScript resource's state with the given name, ID, and optional extra
69
- * properties used to qualify the lookup.
70
- *
71
- * @param name The _unique_ name of the resulting resource.
72
- * @param id The _unique_ provider ID of the resource to lookup.
73
- * @param state Any extra arguments used during the lookup.
74
- * @param opts Optional settings to control the behavior of the CustomResource.
75
- */
76
- static get(name, id, state, opts) {
77
- return new MonitorScript(name, state, Object.assign(Object.assign({}, opts), { id: id }));
78
- }
79
- /**
80
- * Returns true if the given object is an instance of MonitorScript. This is designed to work even
81
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
82
- */
83
- static isInstance(obj) {
84
- if (obj === undefined || obj === null) {
85
- return false;
86
- }
87
- return obj['__pulumiType'] === MonitorScript.__pulumiType;
88
- }
89
- }
90
- exports.MonitorScript = MonitorScript;
91
- /** @internal */
92
- MonitorScript.__pulumiType = 'newrelic:synthetics/monitorScript:MonitorScript';
93
- //# sourceMappingURL=monitorScript.js.map
@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