@pulumi/newrelic 5.58.0-alpha.1762410892 → 5.58.0-alpha.1763072040

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.
@@ -15,7 +15,7 @@ import * as pulumi from "@pulumi/pulumi";
15
15
  *
16
16
  * ### Workload Identity Federation (WIF) Attributes
17
17
  *
18
- * The following arguments rely on an OCI Identity Domain OAuth2 client set up for workload identity federation (identity propagation): `ociClientId`, `ociClientSecret`, `ociDomainUrl`, and `ociSvcUserName`.
18
+ * The following arguments rely on an OCI Identity Domain OAuth2 client set up for workload identity federation (identity propagation): `ociClientId`, `ociClientSecret` and `ociDomainUrl`.
19
19
  *
20
20
  * To create and retrieve these values, follow Oracle's guidance for configuring identity propagation / JWT token exchange:
21
21
  *
@@ -25,8 +25,7 @@ import * as pulumi from "@pulumi/pulumi";
25
25
  * 1. Create (or identify) an Identity Domain and register an OAuth2 confidential application (client) to represent New Relic ingestion.
26
26
  * 2. Generate / record the client ID (`ociClientId`) and client secret (`ociClientSecret`). Store the secret securely (e.g., in OCI Vault; reference its OCID via `ingestVaultOcid` / `userVaultOcid` if desired).
27
27
  * 3. Use the Identity Domain base URL as `ociDomainUrl` (format: `https://idcs-<hash>.identity.oraclecloud.com`).
28
- * 4. Provide / map a service user (or principal) used for workload identity federation as `ociSvcUserName`.
29
- * 5. Ensure the client has the required scopes and the tenancy policies allow the token exchange.
28
+ * 4. Ensure the client has the required scopes and the tenancy policies allow the token exchange.
30
29
  *
31
30
  * > TIP: Rotating the OAuth2 client secret only requires updating `ociClientSecret`; it does not force resource replacement.
32
31
  *
@@ -47,7 +46,6 @@ import * as pulumi from "@pulumi/pulumi";
47
46
  * ociClientSecret: ociClientSecret,
48
47
  * ociDomainUrl: "https://idcs-1234567890abcdef.identity.oraclecloud.com",
49
48
  * ociHomeRegion: "us-ashburn-1",
50
- * ociSvcUserName: "svc-newrelic-collector",
51
49
  * });
52
50
  * ```
53
51
  *
@@ -65,7 +63,6 @@ import * as pulumi from "@pulumi/pulumi";
65
63
  * ociClientSecret: ociClientSecret,
66
64
  * ociDomainUrl: "https://idcs-1234567890abcdef.identity.oraclecloud.com",
67
65
  * ociHomeRegion: "us-ashburn-1",
68
- * ociSvcUserName: "svc-newrelic-collector",
69
66
  * ingestVaultOcid: "ocid1.vaultsecret.oc1..ccccccccexample",
70
67
  * userVaultOcid: "ocid1.vaultsecret.oc1..ddddddddexample",
71
68
  * instrumentationType: "METRICS,LOGS",
@@ -149,10 +146,6 @@ export declare class OciLinkAccount extends pulumi.CustomResource {
149
146
  * OCI region for the linkage (ignored on create, applied on update).
150
147
  */
151
148
  readonly ociRegion: pulumi.Output<string | undefined>;
152
- /**
153
- * Service user name associated with the WIF configuration.
154
- */
155
- readonly ociSvcUserName: pulumi.Output<string>;
156
149
  /**
157
150
  * OCI tenancy OCID (root tenancy). Changing forces a new linked account.
158
151
  */
@@ -222,10 +215,6 @@ export interface OciLinkAccountState {
222
215
  * OCI region for the linkage (ignored on create, applied on update).
223
216
  */
224
217
  ociRegion?: pulumi.Input<string>;
225
- /**
226
- * Service user name associated with the WIF configuration.
227
- */
228
- ociSvcUserName?: pulumi.Input<string>;
229
218
  /**
230
219
  * OCI tenancy OCID (root tenancy). Changing forces a new linked account.
231
220
  */
@@ -287,10 +276,6 @@ export interface OciLinkAccountArgs {
287
276
  * OCI region for the linkage (ignored on create, applied on update).
288
277
  */
289
278
  ociRegion?: pulumi.Input<string>;
290
- /**
291
- * Service user name associated with the WIF configuration.
292
- */
293
- ociSvcUserName: pulumi.Input<string>;
294
279
  /**
295
280
  * OCI tenancy OCID (root tenancy). Changing forces a new linked account.
296
281
  */
@@ -21,7 +21,7 @@ const utilities = require("../utilities");
21
21
  *
22
22
  * ### Workload Identity Federation (WIF) Attributes
23
23
  *
24
- * The following arguments rely on an OCI Identity Domain OAuth2 client set up for workload identity federation (identity propagation): `ociClientId`, `ociClientSecret`, `ociDomainUrl`, and `ociSvcUserName`.
24
+ * The following arguments rely on an OCI Identity Domain OAuth2 client set up for workload identity federation (identity propagation): `ociClientId`, `ociClientSecret` and `ociDomainUrl`.
25
25
  *
26
26
  * To create and retrieve these values, follow Oracle's guidance for configuring identity propagation / JWT token exchange:
27
27
  *
@@ -31,8 +31,7 @@ const utilities = require("../utilities");
31
31
  * 1. Create (or identify) an Identity Domain and register an OAuth2 confidential application (client) to represent New Relic ingestion.
32
32
  * 2. Generate / record the client ID (`ociClientId`) and client secret (`ociClientSecret`). Store the secret securely (e.g., in OCI Vault; reference its OCID via `ingestVaultOcid` / `userVaultOcid` if desired).
33
33
  * 3. Use the Identity Domain base URL as `ociDomainUrl` (format: `https://idcs-<hash>.identity.oraclecloud.com`).
34
- * 4. Provide / map a service user (or principal) used for workload identity federation as `ociSvcUserName`.
35
- * 5. Ensure the client has the required scopes and the tenancy policies allow the token exchange.
34
+ * 4. Ensure the client has the required scopes and the tenancy policies allow the token exchange.
36
35
  *
37
36
  * > TIP: Rotating the OAuth2 client secret only requires updating `ociClientSecret`; it does not force resource replacement.
38
37
  *
@@ -53,7 +52,6 @@ const utilities = require("../utilities");
53
52
  * ociClientSecret: ociClientSecret,
54
53
  * ociDomainUrl: "https://idcs-1234567890abcdef.identity.oraclecloud.com",
55
54
  * ociHomeRegion: "us-ashburn-1",
56
- * ociSvcUserName: "svc-newrelic-collector",
57
55
  * });
58
56
  * ```
59
57
  *
@@ -71,7 +69,6 @@ const utilities = require("../utilities");
71
69
  * ociClientSecret: ociClientSecret,
72
70
  * ociDomainUrl: "https://idcs-1234567890abcdef.identity.oraclecloud.com",
73
71
  * ociHomeRegion: "us-ashburn-1",
74
- * ociSvcUserName: "svc-newrelic-collector",
75
72
  * ingestVaultOcid: "ocid1.vaultsecret.oc1..ccccccccexample",
76
73
  * userVaultOcid: "ocid1.vaultsecret.oc1..ddddddddexample",
77
74
  * instrumentationType: "METRICS,LOGS",
@@ -131,7 +128,6 @@ class OciLinkAccount extends pulumi.CustomResource {
131
128
  resourceInputs["ociDomainUrl"] = state?.ociDomainUrl;
132
129
  resourceInputs["ociHomeRegion"] = state?.ociHomeRegion;
133
130
  resourceInputs["ociRegion"] = state?.ociRegion;
134
- resourceInputs["ociSvcUserName"] = state?.ociSvcUserName;
135
131
  resourceInputs["tenantId"] = state?.tenantId;
136
132
  resourceInputs["userVaultOcid"] = state?.userVaultOcid;
137
133
  }
@@ -152,9 +148,6 @@ class OciLinkAccount extends pulumi.CustomResource {
152
148
  if (args?.ociHomeRegion === undefined && !opts.urn) {
153
149
  throw new Error("Missing required property 'ociHomeRegion'");
154
150
  }
155
- if (args?.ociSvcUserName === undefined && !opts.urn) {
156
- throw new Error("Missing required property 'ociSvcUserName'");
157
- }
158
151
  if (args?.tenantId === undefined && !opts.urn) {
159
152
  throw new Error("Missing required property 'tenantId'");
160
153
  }
@@ -170,7 +163,6 @@ class OciLinkAccount extends pulumi.CustomResource {
170
163
  resourceInputs["ociDomainUrl"] = args?.ociDomainUrl;
171
164
  resourceInputs["ociHomeRegion"] = args?.ociHomeRegion;
172
165
  resourceInputs["ociRegion"] = args?.ociRegion;
173
- resourceInputs["ociSvcUserName"] = args?.ociSvcUserName;
174
166
  resourceInputs["tenantId"] = args?.tenantId;
175
167
  resourceInputs["userVaultOcid"] = args?.userVaultOcid;
176
168
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ociLinkAccount.js","sourceRoot":"","sources":["../../cloud/ociLinkAccount.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqFG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc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AAE,SAAS,CAAC;YAC9C,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,iBAAiB,CAAC,EAAE,CAAC;QACpE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAvJL,wCAwJC;AA1IG,gBAAgB;AACO,2BAAY,GAAG,8CAA8C,CAAC"}
@@ -6,6 +6,23 @@ import * as outputs from "./types/output";
6
6
  * > **WARNING:** The `newrelic.AlertChannel` data source is deprecated and will be removed in the next major release.
7
7
  *
8
8
  * ## Example Usage
9
+ *
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as newrelic from "@pulumi/newrelic";
13
+ *
14
+ * // Data source
15
+ * const foo = newrelic.getAlertChannel({
16
+ * name: "foo@example.com",
17
+ * });
18
+ * // Resource
19
+ * const fooAlertPolicy = new newrelic.AlertPolicy("foo", {name: "foo"});
20
+ * // Using the data source and resource together
21
+ * const fooAlertPolicyChannel = new newrelic.AlertPolicyChannel("foo", {
22
+ * policyId: fooAlertPolicy.id,
23
+ * channelId: foo.then(foo => foo.id),
24
+ * });
25
+ * ```
9
26
  */
10
27
  export declare function getAlertChannel(args: GetAlertChannelArgs, opts?: pulumi.InvokeOptions): Promise<GetAlertChannelResult>;
11
28
  /**
@@ -50,6 +67,23 @@ export interface GetAlertChannelResult {
50
67
  * > **WARNING:** The `newrelic.AlertChannel` data source is deprecated and will be removed in the next major release.
51
68
  *
52
69
  * ## Example Usage
70
+ *
71
+ * ```typescript
72
+ * import * as pulumi from "@pulumi/pulumi";
73
+ * import * as newrelic from "@pulumi/newrelic";
74
+ *
75
+ * // Data source
76
+ * const foo = newrelic.getAlertChannel({
77
+ * name: "foo@example.com",
78
+ * });
79
+ * // Resource
80
+ * const fooAlertPolicy = new newrelic.AlertPolicy("foo", {name: "foo"});
81
+ * // Using the data source and resource together
82
+ * const fooAlertPolicyChannel = new newrelic.AlertPolicyChannel("foo", {
83
+ * policyId: fooAlertPolicy.id,
84
+ * channelId: foo.then(foo => foo.id),
85
+ * });
86
+ * ```
53
87
  */
54
88
  export declare function getAlertChannelOutput(args: GetAlertChannelOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAlertChannelResult>;
55
89
  /**
@@ -11,6 +11,23 @@ const utilities = require("./utilities");
11
11
  * > **WARNING:** The `newrelic.AlertChannel` data source is deprecated and will be removed in the next major release.
12
12
  *
13
13
  * ## Example Usage
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as newrelic from "@pulumi/newrelic";
18
+ *
19
+ * // Data source
20
+ * const foo = newrelic.getAlertChannel({
21
+ * name: "foo@example.com",
22
+ * });
23
+ * // Resource
24
+ * const fooAlertPolicy = new newrelic.AlertPolicy("foo", {name: "foo"});
25
+ * // Using the data source and resource together
26
+ * const fooAlertPolicyChannel = new newrelic.AlertPolicyChannel("foo", {
27
+ * policyId: fooAlertPolicy.id,
28
+ * channelId: foo.then(foo => foo.id),
29
+ * });
30
+ * ```
14
31
  */
15
32
  function getAlertChannel(args, opts) {
16
33
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -26,6 +43,23 @@ exports.getAlertChannel = getAlertChannel;
26
43
  * > **WARNING:** The `newrelic.AlertChannel` data source is deprecated and will be removed in the next major release.
27
44
  *
28
45
  * ## Example Usage
46
+ *
47
+ * ```typescript
48
+ * import * as pulumi from "@pulumi/pulumi";
49
+ * import * as newrelic from "@pulumi/newrelic";
50
+ *
51
+ * // Data source
52
+ * const foo = newrelic.getAlertChannel({
53
+ * name: "foo@example.com",
54
+ * });
55
+ * // Resource
56
+ * const fooAlertPolicy = new newrelic.AlertPolicy("foo", {name: "foo"});
57
+ * // Using the data source and resource together
58
+ * const fooAlertPolicyChannel = new newrelic.AlertPolicyChannel("foo", {
59
+ * policyId: fooAlertPolicy.id,
60
+ * channelId: foo.then(foo => foo.id),
61
+ * });
62
+ * ```
29
63
  */
30
64
  function getAlertChannelOutput(args, opts) {
31
65
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -1 +1 @@
1
- {"version":3,"file":"getAlertChannel.js","sourceRoot":"","sources":["../getAlertChannel.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;GAMG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE;QAC3E,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,0CAMC;AAuCD;;;;;;GAMG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAAiC;IACpG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,gDAAgD,EAAE;QACjF,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,sDAMC"}
1
+ {"version":3,"file":"getAlertChannel.js","sourceRoot":"","sources":["../getAlertChannel.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE;QAC3E,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,0CAMC;AAuCD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAAiC;IACpG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,gDAAgD,EAAE;QACjF,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,sDAMC"}
@@ -3,6 +3,22 @@ import * as pulumi from "@pulumi/pulumi";
3
3
  * Use this data source to get information about a specific alert policy in New Relic that already exists.
4
4
  *
5
5
  * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as newrelic from "@pulumi/newrelic";
10
+ *
11
+ * const foo = newrelic.getAlertChannel({
12
+ * name: "foo@example.com",
13
+ * });
14
+ * const fooGetAlertPolicy = newrelic.getAlertPolicy({
15
+ * name: "foo policy",
16
+ * });
17
+ * const fooAlertPolicyChannel = new newrelic.AlertPolicyChannel("foo", {
18
+ * policyId: fooGetAlertPolicy.then(fooGetAlertPolicy => fooGetAlertPolicy.id),
19
+ * channelId: foo.then(foo => foo.id),
20
+ * });
21
+ * ```
6
22
  */
7
23
  export declare function getAlertPolicy(args: GetAlertPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetAlertPolicyResult>;
8
24
  /**
@@ -55,6 +71,22 @@ export interface GetAlertPolicyResult {
55
71
  * Use this data source to get information about a specific alert policy in New Relic that already exists.
56
72
  *
57
73
  * ## Example Usage
74
+ *
75
+ * ```typescript
76
+ * import * as pulumi from "@pulumi/pulumi";
77
+ * import * as newrelic from "@pulumi/newrelic";
78
+ *
79
+ * const foo = newrelic.getAlertChannel({
80
+ * name: "foo@example.com",
81
+ * });
82
+ * const fooGetAlertPolicy = newrelic.getAlertPolicy({
83
+ * name: "foo policy",
84
+ * });
85
+ * const fooAlertPolicyChannel = new newrelic.AlertPolicyChannel("foo", {
86
+ * policyId: fooGetAlertPolicy.then(fooGetAlertPolicy => fooGetAlertPolicy.id),
87
+ * channelId: foo.then(foo => foo.id),
88
+ * });
89
+ * ```
58
90
  */
59
91
  export declare function getAlertPolicyOutput(args: GetAlertPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAlertPolicyResult>;
60
92
  /**
package/getAlertPolicy.js CHANGED
@@ -9,6 +9,22 @@ const utilities = require("./utilities");
9
9
  * Use this data source to get information about a specific alert policy in New Relic that already exists.
10
10
  *
11
11
  * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as newrelic from "@pulumi/newrelic";
16
+ *
17
+ * const foo = newrelic.getAlertChannel({
18
+ * name: "foo@example.com",
19
+ * });
20
+ * const fooGetAlertPolicy = newrelic.getAlertPolicy({
21
+ * name: "foo policy",
22
+ * });
23
+ * const fooAlertPolicyChannel = new newrelic.AlertPolicyChannel("foo", {
24
+ * policyId: fooGetAlertPolicy.then(fooGetAlertPolicy => fooGetAlertPolicy.id),
25
+ * channelId: foo.then(foo => foo.id),
26
+ * });
27
+ * ```
12
28
  */
13
29
  function getAlertPolicy(args, opts) {
14
30
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -23,6 +39,22 @@ exports.getAlertPolicy = getAlertPolicy;
23
39
  * Use this data source to get information about a specific alert policy in New Relic that already exists.
24
40
  *
25
41
  * ## Example Usage
42
+ *
43
+ * ```typescript
44
+ * import * as pulumi from "@pulumi/pulumi";
45
+ * import * as newrelic from "@pulumi/newrelic";
46
+ *
47
+ * const foo = newrelic.getAlertChannel({
48
+ * name: "foo@example.com",
49
+ * });
50
+ * const fooGetAlertPolicy = newrelic.getAlertPolicy({
51
+ * name: "foo policy",
52
+ * });
53
+ * const fooAlertPolicyChannel = new newrelic.AlertPolicyChannel("foo", {
54
+ * policyId: fooGetAlertPolicy.then(fooGetAlertPolicy => fooGetAlertPolicy.id),
55
+ * channelId: foo.then(foo => foo.id),
56
+ * });
57
+ * ```
26
58
  */
27
59
  function getAlertPolicyOutput(args, opts) {
28
60
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -1 +1 @@
1
- {"version":3,"file":"getAlertPolicy.js","sourceRoot":"","sources":["../getAlertPolicy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;GAIG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE;QACzE,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,oBAAoB,EAAE,IAAI,CAAC,kBAAkB;QAC7C,MAAM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E,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,8CAA8C,EAAE;QAC/E,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,oBAAoB,EAAE,IAAI,CAAC,kBAAkB;QAC7C,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,oDAOC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/newrelic",
3
- "version": "5.58.0-alpha.1762410892",
3
+ "version": "5.58.0-alpha.1763072040",
4
4
  "description": "A Pulumi package for creating and managing New Relic resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -23,6 +23,6 @@
23
23
  "pulumi": {
24
24
  "resource": true,
25
25
  "name": "newrelic",
26
- "version": "5.58.0-alpha.1762410892"
26
+ "version": "5.58.0-alpha.1763072040"
27
27
  }
28
28
  }