@pulumi/newrelic 5.0.0-alpha.1663005924 → 5.0.0-alpha.1768024869
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/README.md +4 -4
- package/accountManagement.d.ts +96 -0
- package/accountManagement.js +84 -0
- package/accountManagement.js.map +1 -0
- package/alertChannel.d.ts +38 -22
- package/alertChannel.js +58 -43
- package/alertChannel.js.map +1 -1
- package/alertCondition.d.ts +99 -144
- package/alertCondition.js +109 -59
- package/alertCondition.js.map +1 -1
- package/alertMutingRule.d.ts +29 -14
- package/alertMutingRule.js +43 -39
- package/alertMutingRule.js.map +1 -1
- package/alertPolicy.d.ts +45 -15
- package/alertPolicy.js +55 -31
- package/alertPolicy.js.map +1 -1
- package/alertPolicyChannel.d.ts +20 -15
- package/alertPolicyChannel.js +37 -32
- package/alertPolicyChannel.js.map +1 -1
- package/apiAccessKey.d.ts +48 -59
- package/apiAccessKey.js +48 -61
- package/apiAccessKey.js.map +1 -1
- package/browserApplication.d.ts +131 -0
- package/browserApplication.js +74 -0
- package/browserApplication.js.map +1 -0
- package/cloud/awsGovcloudIntegrations.d.ts +26 -9
- package/cloud/awsGovcloudIntegrations.js +79 -63
- package/cloud/awsGovcloudIntegrations.js.map +1 -1
- package/cloud/awsGovcloudLinkAccount.d.ts +43 -49
- package/cloud/awsGovcloudLinkAccount.js +41 -42
- package/cloud/awsGovcloudLinkAccount.js.map +1 -1
- package/cloud/awsIntegrations.d.ts +573 -30
- package/cloud/awsIntegrations.js +131 -39
- package/cloud/awsIntegrations.js.map +1 -1
- package/cloud/awsLinkAccount.d.ts +35 -8
- package/cloud/awsLinkAccount.js +54 -27
- package/cloud/awsLinkAccount.js.map +1 -1
- package/cloud/azureIntegrations.d.ts +317 -72
- package/cloud/azureIntegrations.js +258 -81
- package/cloud/azureIntegrations.js.map +1 -1
- package/cloud/azureLinkAccount.d.ts +53 -23
- package/cloud/azureLinkAccount.js +72 -40
- package/cloud/azureLinkAccount.js.map +1 -1
- package/cloud/gcpIntegrations.d.ts +137 -12
- package/cloud/gcpIntegrations.js +181 -73
- package/cloud/gcpIntegrations.js.map +1 -1
- package/cloud/gcpLinkAccount.d.ts +45 -14
- package/cloud/gcpLinkAccount.js +56 -25
- package/cloud/gcpLinkAccount.js.map +1 -1
- package/cloud/index.d.ts +27 -8
- package/cloud/index.js +31 -41
- package/cloud/index.js.map +1 -1
- package/cloud/ociLinkAccount.d.ts +287 -0
- package/cloud/ociLinkAccount.js +178 -0
- package/cloud/ociLinkAccount.js.map +1 -0
- package/config/index.js +1 -1
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +1 -1
- package/config/vars.js +3 -5
- package/config/vars.js.map +1 -1
- package/dataPartitionRule.d.ts +148 -0
- package/dataPartitionRule.js +105 -0
- package/dataPartitionRule.js.map +1 -0
- package/entityTags.d.ts +45 -6
- package/entityTags.js +67 -29
- package/entityTags.js.map +1 -1
- package/eventsToMetricsRule.d.ts +9 -6
- package/eventsToMetricsRule.js +35 -32
- package/eventsToMetricsRule.js.map +1 -1
- package/getAccount.d.ts +35 -20
- package/getAccount.js +35 -12
- package/getAccount.js.map +1 -1
- package/getAlertChannel.d.ts +51 -6
- package/getAlertChannel.js +52 -6
- package/getAlertChannel.js.map +1 -1
- package/getAlertPolicy.d.ts +55 -7
- package/getAlertPolicy.js +47 -6
- package/getAlertPolicy.js.map +1 -1
- package/getApplication.d.ts +39 -6
- package/getApplication.js +42 -9
- package/getApplication.js.map +1 -1
- package/getAuthenticationDomain.d.ts +69 -0
- package/getAuthenticationDomain.js +60 -0
- package/getAuthenticationDomain.js.map +1 -0
- package/getCloudAccount.d.ts +24 -7
- package/getCloudAccount.js +28 -9
- package/getCloudAccount.js.map +1 -1
- package/getEntity.d.ts +58 -18
- package/getEntity.js +17 -10
- package/getEntity.js.map +1 -1
- package/getGroup.d.ts +138 -0
- package/getGroup.js +114 -0
- package/getGroup.js.map +1 -0
- package/getKeyTransaction.d.ts +68 -4
- package/getKeyTransaction.js +44 -9
- package/getKeyTransaction.js.map +1 -1
- package/getNotificationDestination.d.ts +86 -0
- package/getNotificationDestination.js +30 -0
- package/getNotificationDestination.js.map +1 -0
- package/getObfuscationExpression.d.ts +92 -0
- package/getObfuscationExpression.js +76 -0
- package/getObfuscationExpression.js.map +1 -0
- package/getServiceLevelAlertHelper.d.ts +339 -0
- package/getServiceLevelAlertHelper.js +272 -0
- package/getServiceLevelAlertHelper.js.map +1 -0
- package/getTestGrokPattern.d.ts +88 -0
- package/getTestGrokPattern.js +60 -0
- package/getTestGrokPattern.js.map +1 -0
- package/getUser.d.ts +107 -0
- package/getUser.js +72 -0
- package/getUser.js.map +1 -0
- package/group.d.ts +93 -0
- package/group.js +65 -0
- package/group.js.map +1 -0
- package/index.d.ts +129 -24
- package/index.js +157 -63
- package/index.js.map +1 -1
- package/infraAlertCondition.d.ts +97 -24
- package/infraAlertCondition.js +119 -65
- package/infraAlertCondition.js.map +1 -1
- package/insights/event.d.ts +23 -23
- package/insights/event.js +40 -41
- package/insights/event.js.map +1 -1
- package/insights/index.d.ts +3 -1
- package/insights/index.js +5 -20
- package/insights/index.js.map +1 -1
- package/keyTransaction.d.ts +148 -0
- package/keyTransaction.js +103 -0
- package/keyTransaction.js.map +1 -0
- package/logParsingRule.d.ts +193 -0
- package/logParsingRule.js +130 -0
- package/logParsingRule.js.map +1 -0
- package/monitorDowntime.d.ts +334 -0
- package/monitorDowntime.js +255 -0
- package/monitorDowntime.js.map +1 -0
- package/notificationChannel.d.ts +220 -38
- package/notificationChannel.js +254 -76
- package/notificationChannel.js.map +1 -1
- package/notificationDestination.d.ts +95 -128
- package/notificationDestination.js +103 -157
- package/notificationDestination.js.map +1 -1
- package/nrqlAlertCondition.d.ts +268 -84
- package/nrqlAlertCondition.js +237 -98
- package/nrqlAlertCondition.js.map +1 -1
- package/nrqlDropRule.d.ts +15 -31
- package/nrqlDropRule.js +36 -58
- package/nrqlDropRule.js.map +1 -1
- package/obfuscationExpression.d.ts +111 -0
- package/obfuscationExpression.js +85 -0
- package/obfuscationExpression.js.map +1 -0
- package/obfuscationRule.d.ts +147 -0
- package/obfuscationRule.js +105 -0
- package/obfuscationRule.js.map +1 -0
- package/oneDashboard.d.ts +20 -10
- package/oneDashboard.js +36 -37
- package/oneDashboard.js.map +1 -1
- package/oneDashboardJson.d.ts +95 -0
- package/oneDashboardJson.js +71 -0
- package/oneDashboardJson.js.map +1 -0
- package/oneDashboardRaw.d.ts +64 -57
- package/oneDashboardRaw.js +90 -84
- package/oneDashboardRaw.js.map +1 -1
- package/package.json +5 -5
- package/pipelineCloudRule.d.ts +109 -0
- package/pipelineCloudRule.js +83 -0
- package/pipelineCloudRule.js.map +1 -0
- package/plugins/applicationSettings.d.ts +115 -44
- package/plugins/applicationSettings.js +40 -56
- package/plugins/applicationSettings.js.map +1 -1
- package/plugins/index.d.ts +6 -2
- package/plugins/index.js +8 -23
- package/plugins/index.js.map +1 -1
- package/plugins/workload.d.ts +147 -22
- package/plugins/workload.js +133 -39
- package/plugins/workload.js.map +1 -1
- package/provider.d.ts +16 -1
- package/provider.js +31 -22
- package/provider.js.map +1 -1
- package/serviceLevel.d.ts +62 -12
- package/serviceLevel.js +97 -48
- package/serviceLevel.js.map +1 -1
- package/synthetics/alertCondition.d.ts +92 -5
- package/synthetics/alertCondition.js +101 -32
- package/synthetics/alertCondition.js.map +1 -1
- package/synthetics/brokenLinksMonitor.d.ts +83 -33
- package/synthetics/brokenLinksMonitor.js +68 -52
- package/synthetics/brokenLinksMonitor.js.map +1 -1
- package/synthetics/certCheckMonitor.d.ts +82 -31
- package/synthetics/certCheckMonitor.js +73 -56
- package/synthetics/certCheckMonitor.js.map +1 -1
- package/synthetics/getPrivateLocation.d.ts +77 -1
- package/synthetics/getPrivateLocation.js +65 -6
- package/synthetics/getPrivateLocation.js.map +1 -1
- package/synthetics/getSecureCredential.d.ts +28 -3
- package/synthetics/getSecureCredential.js +26 -8
- package/synthetics/getSecureCredential.js.map +1 -1
- package/synthetics/index.d.ts +33 -11
- package/synthetics/index.js +35 -46
- package/synthetics/index.js.map +1 -1
- package/synthetics/monitor.d.ts +193 -92
- package/synthetics/monitor.js +146 -117
- package/synthetics/monitor.js.map +1 -1
- package/synthetics/multiLocationAlertCondition.d.ts +95 -13
- package/synthetics/multiLocationAlertCondition.js +109 -46
- package/synthetics/multiLocationAlertCondition.js.map +1 -1
- package/synthetics/privateLocation.d.ts +11 -11
- package/synthetics/privateLocation.js +36 -36
- package/synthetics/privateLocation.js.map +1 -1
- package/synthetics/scriptMonitor.d.ts +185 -69
- package/synthetics/scriptMonitor.js +149 -93
- package/synthetics/scriptMonitor.js.map +1 -1
- package/synthetics/secureCredential.d.ts +6 -6
- package/synthetics/secureCredential.js +35 -33
- package/synthetics/secureCredential.js.map +1 -1
- package/synthetics/stepMonitor.d.ts +144 -23
- package/synthetics/stepMonitor.js +115 -48
- package/synthetics/stepMonitor.js.map +1 -1
- package/types/index.js +1 -1
- package/types/index.js.map +1 -1
- package/types/input.d.ts +3868 -844
- package/types/input.js +1 -1
- package/types/input.js.map +1 -1
- package/types/output.d.ts +3890 -833
- package/types/output.js +1 -1
- package/types/output.js.map +1 -1
- package/user.d.ts +124 -0
- package/user.js +89 -0
- package/user.js.map +1 -0
- package/utilities.js +36 -2
- package/utilities.js.map +1 -1
- package/workflow.d.ts +168 -107
- package/workflow.js +154 -109
- package/workflow.js.map +1 -1
- package/package.json.bak +0 -28
- package/package.json.dev +0 -28
- package/scripts/install-pulumi-plugin.js +0 -21
package/README.md
CHANGED
|
@@ -48,20 +48,20 @@ To use from .NET, install using `dotnet add package`:
|
|
|
48
48
|
|
|
49
49
|
The following configuration points are available:
|
|
50
50
|
|
|
51
|
-
- `newrelic:apiKey` - Your New Relic API key. The `
|
|
51
|
+
- `newrelic:apiKey` - Your New Relic API key. The `NEW_RELIC_API_KEY` environment variable can also be used.
|
|
52
52
|
- `newrelic:adminApiKey` - Your New Relic Admin API key. The `NEW_RELIC_ADMIN_API_KEY` environment variable can also be used.
|
|
53
53
|
- `newrelic:region` - The region for the data center for which your New Relic account is configured. The New Relic region
|
|
54
54
|
can also be set via the environment variable `NEW_RELIC_REGION`. Valid values are `US` or `EU`. Only one region per
|
|
55
55
|
provider block can be configured. If you have accounts in both regions, you must instantiate two providers -
|
|
56
56
|
one for US and one for EU
|
|
57
|
-
- `newrelic:insecureSkipVerify` - Trust self-signed SSL certificates. If omitted, the `
|
|
57
|
+
- `newrelic:insecureSkipVerify` - Trust self-signed SSL certificates. If omitted, the `NEW_RELIC_API_SKIP_VERIFY` environment
|
|
58
58
|
variable is used.
|
|
59
59
|
- `newrelic:insightsInsertKey` - Your Insights insert key used when inserting Insights events via the `insights.Event` resource.
|
|
60
|
-
Can also use `
|
|
60
|
+
Can also use `NEW_RELIC_INSIGHTS_INSERT_KEY` environment variable.
|
|
61
61
|
- `newrelic:insightsInsertUrl` - This argument changes the Insights insert URL (default is `https://insights-collector.newrelic.com/v1/accounts`).
|
|
62
62
|
If the New Relic account is in the EU, the Insights API URL must be set to `https://insights-collector.eu.newrelic.com/v1`.
|
|
63
63
|
- `newrelic:caCerts` - A path to a PEM-encoded certificate authority used to verify the remote agent's certificate. The
|
|
64
|
-
`
|
|
64
|
+
`NEW_RELIC_API_CACERT` environment variable can also be used.
|
|
65
65
|
|
|
66
66
|
## Reference
|
|
67
67
|
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Use this resource to create and manage New Relic sub accounts.
|
|
4
|
+
*
|
|
5
|
+
* > **WARNING:** The `newrelic.AccountManagement` resource will only create/update but won't delete a sub account. Please visit our documentation on [`Account Management`](https://docs.newrelic.com/docs/apis/nerdgraph/examples/manage-accounts-nerdgraph/#delete) for more information .
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ##### Create Account
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
13
|
+
*
|
|
14
|
+
* const foo = new newrelic.AccountManagement("foo", {
|
|
15
|
+
* name: "Test Account Name",
|
|
16
|
+
* region: "us01",
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ## Import
|
|
21
|
+
*
|
|
22
|
+
* Accounts can be imported using the `id`, e.g.
|
|
23
|
+
*
|
|
24
|
+
* bash
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import newrelic:index/accountManagement:AccountManagement foo <id>
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare class AccountManagement extends pulumi.CustomResource {
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing AccountManagement resource's state with the given name, ID, and optional extra
|
|
33
|
+
* properties used to qualify the lookup.
|
|
34
|
+
*
|
|
35
|
+
* @param name The _unique_ name of the resulting resource.
|
|
36
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
37
|
+
* @param state Any extra arguments used during the lookup.
|
|
38
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
39
|
+
*/
|
|
40
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AccountManagementState, opts?: pulumi.CustomResourceOptions): AccountManagement;
|
|
41
|
+
/**
|
|
42
|
+
* Returns true if the given object is an instance of AccountManagement. This is designed to work even
|
|
43
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
44
|
+
*/
|
|
45
|
+
static isInstance(obj: any): obj is AccountManagement;
|
|
46
|
+
/**
|
|
47
|
+
* The name of the Account.
|
|
48
|
+
*/
|
|
49
|
+
readonly name: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* The region code of the account. One of: `us01`, `eu01`.
|
|
52
|
+
*/
|
|
53
|
+
readonly region: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Status of the account - active or canceled
|
|
56
|
+
*/
|
|
57
|
+
readonly status: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* Create a AccountManagement resource with the given unique name, arguments, and options.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resource.
|
|
62
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
63
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
64
|
+
*/
|
|
65
|
+
constructor(name: string, args: AccountManagementArgs, opts?: pulumi.CustomResourceOptions);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Input properties used for looking up and filtering AccountManagement resources.
|
|
69
|
+
*/
|
|
70
|
+
export interface AccountManagementState {
|
|
71
|
+
/**
|
|
72
|
+
* The name of the Account.
|
|
73
|
+
*/
|
|
74
|
+
name?: pulumi.Input<string>;
|
|
75
|
+
/**
|
|
76
|
+
* The region code of the account. One of: `us01`, `eu01`.
|
|
77
|
+
*/
|
|
78
|
+
region?: pulumi.Input<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Status of the account - active or canceled
|
|
81
|
+
*/
|
|
82
|
+
status?: pulumi.Input<string>;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* The set of arguments for constructing a AccountManagement resource.
|
|
86
|
+
*/
|
|
87
|
+
export interface AccountManagementArgs {
|
|
88
|
+
/**
|
|
89
|
+
* The name of the Account.
|
|
90
|
+
*/
|
|
91
|
+
name?: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* The region code of the account. One of: `us01`, `eu01`.
|
|
94
|
+
*/
|
|
95
|
+
region: pulumi.Input<string>;
|
|
96
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.AccountManagement = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this resource to create and manage New Relic sub accounts.
|
|
10
|
+
*
|
|
11
|
+
* > **WARNING:** The `newrelic.AccountManagement` resource will only create/update but won't delete a sub account. Please visit our documentation on [`Account Management`](https://docs.newrelic.com/docs/apis/nerdgraph/examples/manage-accounts-nerdgraph/#delete) for more information .
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ##### Create Account
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
19
|
+
*
|
|
20
|
+
* const foo = new newrelic.AccountManagement("foo", {
|
|
21
|
+
* name: "Test Account Name",
|
|
22
|
+
* region: "us01",
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ## Import
|
|
27
|
+
*
|
|
28
|
+
* Accounts can be imported using the `id`, e.g.
|
|
29
|
+
*
|
|
30
|
+
* bash
|
|
31
|
+
*
|
|
32
|
+
* ```sh
|
|
33
|
+
* $ pulumi import newrelic:index/accountManagement:AccountManagement foo <id>
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
class AccountManagement extends pulumi.CustomResource {
|
|
37
|
+
/**
|
|
38
|
+
* Get an existing AccountManagement resource's state with the given name, ID, and optional extra
|
|
39
|
+
* properties used to qualify the lookup.
|
|
40
|
+
*
|
|
41
|
+
* @param name The _unique_ name of the resulting resource.
|
|
42
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
43
|
+
* @param state Any extra arguments used during the lookup.
|
|
44
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
45
|
+
*/
|
|
46
|
+
static get(name, id, state, opts) {
|
|
47
|
+
return new AccountManagement(name, state, { ...opts, id: id });
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Returns true if the given object is an instance of AccountManagement. This is designed to work even
|
|
51
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
52
|
+
*/
|
|
53
|
+
static isInstance(obj) {
|
|
54
|
+
if (obj === undefined || obj === null) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
return obj['__pulumiType'] === AccountManagement.__pulumiType;
|
|
58
|
+
}
|
|
59
|
+
constructor(name, argsOrState, opts) {
|
|
60
|
+
let resourceInputs = {};
|
|
61
|
+
opts = opts || {};
|
|
62
|
+
if (opts.id) {
|
|
63
|
+
const state = argsOrState;
|
|
64
|
+
resourceInputs["name"] = state?.name;
|
|
65
|
+
resourceInputs["region"] = state?.region;
|
|
66
|
+
resourceInputs["status"] = state?.status;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
const args = argsOrState;
|
|
70
|
+
if (args?.region === undefined && !opts.urn) {
|
|
71
|
+
throw new Error("Missing required property 'region'");
|
|
72
|
+
}
|
|
73
|
+
resourceInputs["name"] = args?.name;
|
|
74
|
+
resourceInputs["region"] = args?.region;
|
|
75
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
76
|
+
}
|
|
77
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
78
|
+
super(AccountManagement.__pulumiType, name, resourceInputs, opts);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.AccountManagement = AccountManagement;
|
|
82
|
+
/** @internal */
|
|
83
|
+
AccountManagement.__pulumiType = 'newrelic:index/accountManagement:AccountManagement';
|
|
84
|
+
//# sourceMappingURL=accountManagement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountManagement.js","sourceRoot":"","sources":["../accountManagement.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACxE,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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;IAuBD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiD,CAAC;YAChE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;SAC5C;aAAM;YACH,MAAM,IAAI,GAAG,WAAgD,CAAC;YAC9D,IAAI,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AApEL,8CAqEC;AAvDG,gBAAgB;AACO,8BAAY,GAAG,oDAAoD,CAAC"}
|
package/alertChannel.d.ts
CHANGED
|
@@ -1,22 +1,28 @@
|
|
|
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 and manage New Relic alert channels.
|
|
5
6
|
*
|
|
7
|
+
* > **WARNING:** The `newrelic.AlertChannel` resource is **deprecated** and will be **removed in a future major release**. As an alternative, you can set up channels using a combination of the newer resources `newrelic.NotificationDestination` and `newrelic.NotificationChannel`. We **strongly recommend** migrating to these new resources at the earliest. Please refer to this example for a detailed illustration on setting up channels with these resources.
|
|
8
|
+
*
|
|
6
9
|
* ## Example Usage
|
|
10
|
+
*
|
|
7
11
|
* ### Email
|
|
8
12
|
* ```typescript
|
|
9
13
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
14
|
* import * as newrelic from "@pulumi/newrelic";
|
|
11
15
|
*
|
|
12
16
|
* const foo = new newrelic.AlertChannel("foo", {
|
|
17
|
+
* name: "foo",
|
|
18
|
+
* type: "email",
|
|
13
19
|
* config: {
|
|
14
|
-
* includeJsonAttachment: "true",
|
|
15
20
|
* recipients: "foo@example.com",
|
|
21
|
+
* includeJsonAttachment: "true",
|
|
16
22
|
* },
|
|
17
|
-
* type: "email",
|
|
18
23
|
* });
|
|
19
24
|
* ```
|
|
25
|
+
*
|
|
20
26
|
* ## Additional Examples
|
|
21
27
|
*
|
|
22
28
|
* ##### Slack
|
|
@@ -25,27 +31,31 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
25
31
|
* import * as newrelic from "@pulumi/newrelic";
|
|
26
32
|
*
|
|
27
33
|
* const foo = new newrelic.AlertChannel("foo", {
|
|
34
|
+
* name: "slack-example",
|
|
35
|
+
* type: "slack",
|
|
28
36
|
* config: {
|
|
29
|
-
* channel: "example-alerts-channel",
|
|
30
37
|
* url: "https://hooks.slack.com/services/XXXXXXX/XXXXXXX/XXXXXXXXXX",
|
|
38
|
+
* channel: "example-alerts-channel",
|
|
31
39
|
* },
|
|
32
|
-
* type: "slack",
|
|
33
40
|
* });
|
|
34
41
|
* ```
|
|
35
42
|
*
|
|
43
|
+
* > **NOTE:** For instructions on setting up Webhooks with Slack, please visit the article linked under the argument `slack` in the aforementioned configuration, or [this article](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-notifications/notification-channels-control-where-send-alerts/#slack) in New Relic's docs for additional details on setting up the `New Relic Alerts` Slack application, and subsequently using the generated Webhook URL.
|
|
44
|
+
*
|
|
36
45
|
* ### OpsGenie
|
|
37
46
|
* ```typescript
|
|
38
47
|
* import * as pulumi from "@pulumi/pulumi";
|
|
39
48
|
* import * as newrelic from "@pulumi/newrelic";
|
|
40
49
|
*
|
|
41
50
|
* const foo = new newrelic.AlertChannel("foo", {
|
|
51
|
+
* name: "opsgenie-example",
|
|
52
|
+
* type: "opsgenie",
|
|
42
53
|
* config: {
|
|
43
54
|
* apiKey: "abc123",
|
|
44
|
-
* recipients: "user1@domain.com, user2@domain.com",
|
|
45
|
-
* tags: "tag1, tag2",
|
|
46
55
|
* teams: "team1, team2",
|
|
56
|
+
* tags: "tag1, tag2",
|
|
57
|
+
* recipients: "user1@domain.com, user2@domain.com",
|
|
47
58
|
* },
|
|
48
|
-
* type: "opsgenie",
|
|
49
59
|
* });
|
|
50
60
|
* ```
|
|
51
61
|
*
|
|
@@ -55,10 +65,11 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
55
65
|
* import * as newrelic from "@pulumi/newrelic";
|
|
56
66
|
*
|
|
57
67
|
* const foo = new newrelic.AlertChannel("foo", {
|
|
68
|
+
* name: "pagerduty-example",
|
|
69
|
+
* type: "pagerduty",
|
|
58
70
|
* config: {
|
|
59
71
|
* serviceKey: "abc123",
|
|
60
72
|
* },
|
|
61
|
-
* type: "pagerduty",
|
|
62
73
|
* });
|
|
63
74
|
* ```
|
|
64
75
|
*
|
|
@@ -68,11 +79,12 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
68
79
|
* import * as newrelic from "@pulumi/newrelic";
|
|
69
80
|
*
|
|
70
81
|
* const foo = new newrelic.AlertChannel("foo", {
|
|
82
|
+
* name: "victorops-example",
|
|
83
|
+
* type: "victorops",
|
|
71
84
|
* config: {
|
|
72
85
|
* key: "abc123",
|
|
73
86
|
* routeKey: "/example",
|
|
74
87
|
* },
|
|
75
|
-
* type: "victorops",
|
|
76
88
|
* });
|
|
77
89
|
* ```
|
|
78
90
|
*
|
|
@@ -82,13 +94,14 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
82
94
|
* import * as newrelic from "@pulumi/newrelic";
|
|
83
95
|
*
|
|
84
96
|
* const foo = new newrelic.AlertChannel("foo", {
|
|
97
|
+
* name: "webhook-example",
|
|
85
98
|
* type: "webhook",
|
|
86
99
|
* config: {
|
|
87
100
|
* baseUrl: "http://www.test.com",
|
|
88
101
|
* payloadType: "application/json",
|
|
89
102
|
* payload: {
|
|
90
|
-
* condition_name:
|
|
91
|
-
* policy_name:
|
|
103
|
+
* condition_name: "$CONDITION_NAME",
|
|
104
|
+
* policy_name: "$POLICY_NAME",
|
|
92
105
|
* },
|
|
93
106
|
* headers: {
|
|
94
107
|
* header1: value1,
|
|
@@ -104,27 +117,30 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
104
117
|
* import * as newrelic from "@pulumi/newrelic";
|
|
105
118
|
*
|
|
106
119
|
* const foo = new newrelic.AlertChannel("foo", {
|
|
120
|
+
* name: "webhook-example",
|
|
121
|
+
* type: "webhook",
|
|
107
122
|
* config: {
|
|
108
123
|
* baseUrl: "http://www.test.com",
|
|
124
|
+
* payloadType: "application/json",
|
|
109
125
|
* payloadString: `{
|
|
110
|
-
* "my_custom_values": {
|
|
111
|
-
* "condition_name": "
|
|
112
|
-
* "policy_name": "
|
|
126
|
+
* \\"my_custom_values\\": {
|
|
127
|
+
* \\"condition_name\\": \\"CONDITION_NAME\\",
|
|
128
|
+
* \\"policy_name\\": \\"POLICY_NAME\\"
|
|
113
129
|
* }
|
|
114
130
|
* }
|
|
115
131
|
* `,
|
|
116
|
-
* payloadType: "application/json",
|
|
117
132
|
* },
|
|
118
|
-
* type: "webhook",
|
|
119
133
|
* });
|
|
120
134
|
* ```
|
|
121
135
|
*
|
|
122
136
|
* ## Import
|
|
123
137
|
*
|
|
124
|
-
* Alert channels can be imported using the `id`, e.g.
|
|
138
|
+
* Alert channels can be imported using the `id`, e.g.
|
|
139
|
+
*
|
|
140
|
+
* bash
|
|
125
141
|
*
|
|
126
142
|
* ```sh
|
|
127
|
-
*
|
|
143
|
+
* $ pulumi import newrelic:index/alertChannel:AlertChannel main <id>
|
|
128
144
|
* ```
|
|
129
145
|
*/
|
|
130
146
|
export declare class AlertChannel extends pulumi.CustomResource {
|
|
@@ -146,7 +162,7 @@ export declare class AlertChannel extends pulumi.CustomResource {
|
|
|
146
162
|
/**
|
|
147
163
|
* Determines the New Relic account where the alert channel will be created. Defaults to the account associated with the API key used.
|
|
148
164
|
*/
|
|
149
|
-
readonly accountId: pulumi.Output<
|
|
165
|
+
readonly accountId: pulumi.Output<string>;
|
|
150
166
|
/**
|
|
151
167
|
* A nested block that describes an alert channel configuration. Only one config block is permitted per alert channel definition. See Nested config blocks below for details.
|
|
152
168
|
*/
|
|
@@ -175,7 +191,7 @@ export interface AlertChannelState {
|
|
|
175
191
|
/**
|
|
176
192
|
* Determines the New Relic account where the alert channel will be created. Defaults to the account associated with the API key used.
|
|
177
193
|
*/
|
|
178
|
-
accountId?: pulumi.Input<
|
|
194
|
+
accountId?: pulumi.Input<string>;
|
|
179
195
|
/**
|
|
180
196
|
* A nested block that describes an alert channel configuration. Only one config block is permitted per alert channel definition. See Nested config blocks below for details.
|
|
181
197
|
*/
|
|
@@ -196,7 +212,7 @@ export interface AlertChannelArgs {
|
|
|
196
212
|
/**
|
|
197
213
|
* Determines the New Relic account where the alert channel will be created. Defaults to the account associated with the API key used.
|
|
198
214
|
*/
|
|
199
|
-
accountId?: pulumi.Input<
|
|
215
|
+
accountId?: pulumi.Input<string>;
|
|
200
216
|
/**
|
|
201
217
|
* A nested block that describes an alert channel configuration. Only one config block is permitted per alert channel definition. See Nested config blocks below for details.
|
|
202
218
|
*/
|
package/alertChannel.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.AlertChannel = void 0;
|
|
@@ -8,20 +8,25 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* Use this resource to create and manage New Relic alert channels.
|
|
10
10
|
*
|
|
11
|
+
* > **WARNING:** The `newrelic.AlertChannel` resource is **deprecated** and will be **removed in a future major release**. As an alternative, you can set up channels using a combination of the newer resources `newrelic.NotificationDestination` and `newrelic.NotificationChannel`. We **strongly recommend** migrating to these new resources at the earliest. Please refer to this example for a detailed illustration on setting up channels with these resources.
|
|
12
|
+
*
|
|
11
13
|
* ## Example Usage
|
|
14
|
+
*
|
|
12
15
|
* ### Email
|
|
13
16
|
* ```typescript
|
|
14
17
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
18
|
* import * as newrelic from "@pulumi/newrelic";
|
|
16
19
|
*
|
|
17
20
|
* const foo = new newrelic.AlertChannel("foo", {
|
|
21
|
+
* name: "foo",
|
|
22
|
+
* type: "email",
|
|
18
23
|
* config: {
|
|
19
|
-
* includeJsonAttachment: "true",
|
|
20
24
|
* recipients: "foo@example.com",
|
|
25
|
+
* includeJsonAttachment: "true",
|
|
21
26
|
* },
|
|
22
|
-
* type: "email",
|
|
23
27
|
* });
|
|
24
28
|
* ```
|
|
29
|
+
*
|
|
25
30
|
* ## Additional Examples
|
|
26
31
|
*
|
|
27
32
|
* ##### Slack
|
|
@@ -30,27 +35,31 @@ const utilities = require("./utilities");
|
|
|
30
35
|
* import * as newrelic from "@pulumi/newrelic";
|
|
31
36
|
*
|
|
32
37
|
* const foo = new newrelic.AlertChannel("foo", {
|
|
38
|
+
* name: "slack-example",
|
|
39
|
+
* type: "slack",
|
|
33
40
|
* config: {
|
|
34
|
-
* channel: "example-alerts-channel",
|
|
35
41
|
* url: "https://hooks.slack.com/services/XXXXXXX/XXXXXXX/XXXXXXXXXX",
|
|
42
|
+
* channel: "example-alerts-channel",
|
|
36
43
|
* },
|
|
37
|
-
* type: "slack",
|
|
38
44
|
* });
|
|
39
45
|
* ```
|
|
40
46
|
*
|
|
47
|
+
* > **NOTE:** For instructions on setting up Webhooks with Slack, please visit the article linked under the argument `slack` in the aforementioned configuration, or [this article](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-notifications/notification-channels-control-where-send-alerts/#slack) in New Relic's docs for additional details on setting up the `New Relic Alerts` Slack application, and subsequently using the generated Webhook URL.
|
|
48
|
+
*
|
|
41
49
|
* ### OpsGenie
|
|
42
50
|
* ```typescript
|
|
43
51
|
* import * as pulumi from "@pulumi/pulumi";
|
|
44
52
|
* import * as newrelic from "@pulumi/newrelic";
|
|
45
53
|
*
|
|
46
54
|
* const foo = new newrelic.AlertChannel("foo", {
|
|
55
|
+
* name: "opsgenie-example",
|
|
56
|
+
* type: "opsgenie",
|
|
47
57
|
* config: {
|
|
48
58
|
* apiKey: "abc123",
|
|
49
|
-
* recipients: "user1@domain.com, user2@domain.com",
|
|
50
|
-
* tags: "tag1, tag2",
|
|
51
59
|
* teams: "team1, team2",
|
|
60
|
+
* tags: "tag1, tag2",
|
|
61
|
+
* recipients: "user1@domain.com, user2@domain.com",
|
|
52
62
|
* },
|
|
53
|
-
* type: "opsgenie",
|
|
54
63
|
* });
|
|
55
64
|
* ```
|
|
56
65
|
*
|
|
@@ -60,10 +69,11 @@ const utilities = require("./utilities");
|
|
|
60
69
|
* import * as newrelic from "@pulumi/newrelic";
|
|
61
70
|
*
|
|
62
71
|
* const foo = new newrelic.AlertChannel("foo", {
|
|
72
|
+
* name: "pagerduty-example",
|
|
73
|
+
* type: "pagerduty",
|
|
63
74
|
* config: {
|
|
64
75
|
* serviceKey: "abc123",
|
|
65
76
|
* },
|
|
66
|
-
* type: "pagerduty",
|
|
67
77
|
* });
|
|
68
78
|
* ```
|
|
69
79
|
*
|
|
@@ -73,11 +83,12 @@ const utilities = require("./utilities");
|
|
|
73
83
|
* import * as newrelic from "@pulumi/newrelic";
|
|
74
84
|
*
|
|
75
85
|
* const foo = new newrelic.AlertChannel("foo", {
|
|
86
|
+
* name: "victorops-example",
|
|
87
|
+
* type: "victorops",
|
|
76
88
|
* config: {
|
|
77
89
|
* key: "abc123",
|
|
78
90
|
* routeKey: "/example",
|
|
79
91
|
* },
|
|
80
|
-
* type: "victorops",
|
|
81
92
|
* });
|
|
82
93
|
* ```
|
|
83
94
|
*
|
|
@@ -87,13 +98,14 @@ const utilities = require("./utilities");
|
|
|
87
98
|
* import * as newrelic from "@pulumi/newrelic";
|
|
88
99
|
*
|
|
89
100
|
* const foo = new newrelic.AlertChannel("foo", {
|
|
101
|
+
* name: "webhook-example",
|
|
90
102
|
* type: "webhook",
|
|
91
103
|
* config: {
|
|
92
104
|
* baseUrl: "http://www.test.com",
|
|
93
105
|
* payloadType: "application/json",
|
|
94
106
|
* payload: {
|
|
95
|
-
* condition_name:
|
|
96
|
-
* policy_name:
|
|
107
|
+
* condition_name: "$CONDITION_NAME",
|
|
108
|
+
* policy_name: "$POLICY_NAME",
|
|
97
109
|
* },
|
|
98
110
|
* headers: {
|
|
99
111
|
* header1: value1,
|
|
@@ -109,53 +121,33 @@ const utilities = require("./utilities");
|
|
|
109
121
|
* import * as newrelic from "@pulumi/newrelic";
|
|
110
122
|
*
|
|
111
123
|
* const foo = new newrelic.AlertChannel("foo", {
|
|
124
|
+
* name: "webhook-example",
|
|
125
|
+
* type: "webhook",
|
|
112
126
|
* config: {
|
|
113
127
|
* baseUrl: "http://www.test.com",
|
|
128
|
+
* payloadType: "application/json",
|
|
114
129
|
* payloadString: `{
|
|
115
|
-
* "my_custom_values": {
|
|
116
|
-
* "condition_name": "
|
|
117
|
-
* "policy_name": "
|
|
130
|
+
* \\"my_custom_values\\": {
|
|
131
|
+
* \\"condition_name\\": \\"CONDITION_NAME\\",
|
|
132
|
+
* \\"policy_name\\": \\"POLICY_NAME\\"
|
|
118
133
|
* }
|
|
119
134
|
* }
|
|
120
135
|
* `,
|
|
121
|
-
* payloadType: "application/json",
|
|
122
136
|
* },
|
|
123
|
-
* type: "webhook",
|
|
124
137
|
* });
|
|
125
138
|
* ```
|
|
126
139
|
*
|
|
127
140
|
* ## Import
|
|
128
141
|
*
|
|
129
|
-
* Alert channels can be imported using the `id`, e.g.
|
|
142
|
+
* Alert channels can be imported using the `id`, e.g.
|
|
143
|
+
*
|
|
144
|
+
* bash
|
|
130
145
|
*
|
|
131
146
|
* ```sh
|
|
132
|
-
*
|
|
147
|
+
* $ pulumi import newrelic:index/alertChannel:AlertChannel main <id>
|
|
133
148
|
* ```
|
|
134
149
|
*/
|
|
135
150
|
class AlertChannel extends pulumi.CustomResource {
|
|
136
|
-
constructor(name, argsOrState, opts) {
|
|
137
|
-
let resourceInputs = {};
|
|
138
|
-
opts = opts || {};
|
|
139
|
-
if (opts.id) {
|
|
140
|
-
const state = argsOrState;
|
|
141
|
-
resourceInputs["accountId"] = state ? state.accountId : undefined;
|
|
142
|
-
resourceInputs["config"] = state ? state.config : undefined;
|
|
143
|
-
resourceInputs["name"] = state ? state.name : undefined;
|
|
144
|
-
resourceInputs["type"] = state ? state.type : undefined;
|
|
145
|
-
}
|
|
146
|
-
else {
|
|
147
|
-
const args = argsOrState;
|
|
148
|
-
if ((!args || args.type === undefined) && !opts.urn) {
|
|
149
|
-
throw new Error("Missing required property 'type'");
|
|
150
|
-
}
|
|
151
|
-
resourceInputs["accountId"] = args ? args.accountId : undefined;
|
|
152
|
-
resourceInputs["config"] = args ? args.config : undefined;
|
|
153
|
-
resourceInputs["name"] = args ? args.name : undefined;
|
|
154
|
-
resourceInputs["type"] = args ? args.type : undefined;
|
|
155
|
-
}
|
|
156
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
157
|
-
super(AlertChannel.__pulumiType, name, resourceInputs, opts);
|
|
158
|
-
}
|
|
159
151
|
/**
|
|
160
152
|
* Get an existing AlertChannel resource's state with the given name, ID, and optional extra
|
|
161
153
|
* properties used to qualify the lookup.
|
|
@@ -166,7 +158,7 @@ class AlertChannel extends pulumi.CustomResource {
|
|
|
166
158
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
167
159
|
*/
|
|
168
160
|
static get(name, id, state, opts) {
|
|
169
|
-
return new AlertChannel(name, state,
|
|
161
|
+
return new AlertChannel(name, state, { ...opts, id: id });
|
|
170
162
|
}
|
|
171
163
|
/**
|
|
172
164
|
* Returns true if the given object is an instance of AlertChannel. This is designed to work even
|
|
@@ -178,6 +170,29 @@ class AlertChannel extends pulumi.CustomResource {
|
|
|
178
170
|
}
|
|
179
171
|
return obj['__pulumiType'] === AlertChannel.__pulumiType;
|
|
180
172
|
}
|
|
173
|
+
constructor(name, argsOrState, opts) {
|
|
174
|
+
let resourceInputs = {};
|
|
175
|
+
opts = opts || {};
|
|
176
|
+
if (opts.id) {
|
|
177
|
+
const state = argsOrState;
|
|
178
|
+
resourceInputs["accountId"] = state?.accountId;
|
|
179
|
+
resourceInputs["config"] = state?.config;
|
|
180
|
+
resourceInputs["name"] = state?.name;
|
|
181
|
+
resourceInputs["type"] = state?.type;
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
const args = argsOrState;
|
|
185
|
+
if (args?.type === undefined && !opts.urn) {
|
|
186
|
+
throw new Error("Missing required property 'type'");
|
|
187
|
+
}
|
|
188
|
+
resourceInputs["accountId"] = args?.accountId;
|
|
189
|
+
resourceInputs["config"] = args?.config;
|
|
190
|
+
resourceInputs["name"] = args?.name;
|
|
191
|
+
resourceInputs["type"] = args?.type;
|
|
192
|
+
}
|
|
193
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
194
|
+
super(AlertChannel.__pulumiType, name, resourceInputs, opts);
|
|
195
|
+
}
|
|
181
196
|
}
|
|
182
197
|
exports.AlertChannel = AlertChannel;
|
|
183
198
|
/** @internal */
|
package/alertChannel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alertChannel.js","sourceRoot":"","sources":["../alertChannel.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"alertChannel.js","sourceRoot":"","sources":["../alertChannel.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6IG;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,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,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;IA2BD,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,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;SACxC;aAAM;YACH,MAAM,IAAI,GAAG,WAA2C,CAAC;YACzD,IAAI,IAAI,EAAE,IAAI,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;SACvC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AA1EL,oCA2EC;AA7DG,gBAAgB;AACO,yBAAY,GAAG,0CAA0C,CAAC"}
|