pulumi-newrelic 5.20.0a1709643785__py3-none-any.whl → 5.39.0a1736834464__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- pulumi_newrelic/__init__.py +9 -0
- pulumi_newrelic/_inputs.py +7153 -461
- pulumi_newrelic/_utilities.py +41 -5
- pulumi_newrelic/account_management.py +13 -4
- pulumi_newrelic/alert_channel.py +122 -101
- pulumi_newrelic/alert_condition.py +120 -109
- pulumi_newrelic/alert_muting_rule.py +130 -74
- pulumi_newrelic/alert_policy.py +88 -67
- pulumi_newrelic/alert_policy_channel.py +81 -68
- pulumi_newrelic/api_access_key.py +49 -52
- pulumi_newrelic/browser_application.py +79 -76
- pulumi_newrelic/cloud/_inputs.py +2527 -1082
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +135 -130
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +25 -18
- pulumi_newrelic/cloud/aws_integrations.py +300 -1324
- pulumi_newrelic/cloud/aws_link_account.py +25 -18
- pulumi_newrelic/cloud/azure_integrations.py +523 -481
- pulumi_newrelic/cloud/azure_link_account.py +36 -29
- pulumi_newrelic/cloud/gcp_integrations.py +343 -320
- pulumi_newrelic/cloud/gcp_link_account.py +25 -18
- pulumi_newrelic/cloud/outputs.py +327 -1072
- pulumi_newrelic/config/__init__.pyi +6 -1
- pulumi_newrelic/config/vars.py +7 -2
- pulumi_newrelic/data_partition_rule.py +23 -16
- pulumi_newrelic/entity_tags.py +36 -31
- pulumi_newrelic/events_to_metrics_rule.py +27 -20
- pulumi_newrelic/get_account.py +24 -12
- pulumi_newrelic/get_alert_channel.py +26 -13
- pulumi_newrelic/get_alert_policy.py +35 -12
- pulumi_newrelic/get_application.py +39 -27
- pulumi_newrelic/get_authentication_domain.py +17 -9
- pulumi_newrelic/get_cloud_account.py +26 -14
- pulumi_newrelic/get_entity.py +90 -85
- pulumi_newrelic/get_group.py +58 -9
- pulumi_newrelic/get_key_transaction.py +109 -30
- pulumi_newrelic/get_notification_destination.py +64 -14
- pulumi_newrelic/get_obfuscation_expression.py +36 -24
- pulumi_newrelic/get_service_level_alert_helper.py +135 -105
- pulumi_newrelic/get_test_grok_pattern.py +29 -14
- pulumi_newrelic/get_user.py +17 -5
- pulumi_newrelic/group.py +5 -132
- pulumi_newrelic/infra_alert_condition.py +157 -140
- pulumi_newrelic/insights/_inputs.py +43 -0
- pulumi_newrelic/insights/event.py +50 -43
- pulumi_newrelic/insights/outputs.py +5 -0
- pulumi_newrelic/key_transaction.py +464 -0
- pulumi_newrelic/log_parsing_rule.py +29 -18
- pulumi_newrelic/monitor_downtime.py +215 -203
- pulumi_newrelic/notification_channel.py +387 -326
- pulumi_newrelic/notification_destination.py +248 -118
- pulumi_newrelic/nrql_alert_condition.py +353 -246
- pulumi_newrelic/nrql_drop_rule.py +57 -30
- pulumi_newrelic/obfuscation_expression.py +25 -18
- pulumi_newrelic/obfuscation_rule.py +40 -31
- pulumi_newrelic/one_dashboard.py +31 -26
- pulumi_newrelic/one_dashboard_json.py +21 -16
- pulumi_newrelic/one_dashboard_raw.py +112 -101
- pulumi_newrelic/outputs.py +2446 -245
- pulumi_newrelic/plugins/_inputs.py +145 -10
- pulumi_newrelic/plugins/application_settings.py +29 -20
- pulumi_newrelic/plugins/outputs.py +15 -10
- pulumi_newrelic/plugins/workload.py +285 -54
- pulumi_newrelic/provider.py +27 -33
- pulumi_newrelic/pulumi-plugin.json +2 -1
- pulumi_newrelic/service_level.py +193 -180
- pulumi_newrelic/synthetics/_inputs.py +159 -2
- pulumi_newrelic/synthetics/alert_condition.py +91 -78
- pulumi_newrelic/synthetics/broken_links_monitor.py +220 -93
- pulumi_newrelic/synthetics/cert_check_monitor.py +223 -94
- pulumi_newrelic/synthetics/get_private_location.py +34 -22
- pulumi_newrelic/synthetics/get_secure_credential.py +24 -12
- pulumi_newrelic/synthetics/monitor.py +352 -179
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +109 -96
- pulumi_newrelic/synthetics/outputs.py +7 -2
- pulumi_newrelic/synthetics/private_location.py +27 -18
- pulumi_newrelic/synthetics/script_monitor.py +321 -168
- pulumi_newrelic/synthetics/secure_credential.py +25 -20
- pulumi_newrelic/synthetics/step_monitor.py +409 -98
- pulumi_newrelic/user.py +13 -6
- pulumi_newrelic/workflow.py +215 -184
- {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/METADATA +7 -6
- pulumi_newrelic-5.39.0a1736834464.dist-info/RECORD +90 -0
- {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/WHEEL +1 -1
- pulumi_newrelic-5.20.0a1709643785.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/top_level.txt +0 -0
pulumi_newrelic/one_dashboard.py
CHANGED
@@ -4,9 +4,14 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
+
import sys
|
7
8
|
import pulumi
|
8
9
|
import pulumi.runtime
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
10
15
|
from . import _utilities
|
11
16
|
from . import outputs
|
12
17
|
from ._inputs import *
|
@@ -17,7 +22,7 @@ __all__ = ['OneDashboardArgs', 'OneDashboard']
|
|
17
22
|
class OneDashboardArgs:
|
18
23
|
def __init__(__self__, *,
|
19
24
|
pages: pulumi.Input[Sequence[pulumi.Input['OneDashboardPageArgs']]],
|
20
|
-
account_id: Optional[pulumi.Input[
|
25
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
21
26
|
description: Optional[pulumi.Input[str]] = None,
|
22
27
|
name: Optional[pulumi.Input[str]] = None,
|
23
28
|
permissions: Optional[pulumi.Input[str]] = None,
|
@@ -25,7 +30,7 @@ class OneDashboardArgs:
|
|
25
30
|
"""
|
26
31
|
The set of arguments for constructing a OneDashboard resource.
|
27
32
|
:param pulumi.Input[Sequence[pulumi.Input['OneDashboardPageArgs']]] pages: A nested block that describes a page. See Nested page blocks below for details.
|
28
|
-
:param pulumi.Input[
|
33
|
+
:param pulumi.Input[str] account_id: Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
|
29
34
|
:param pulumi.Input[str] description: Brief text describing the dashboard.
|
30
35
|
:param pulumi.Input[str] name: The title of the dashboard.
|
31
36
|
:param pulumi.Input[str] permissions: Determines who can see the dashboard in an account. Valid values are `private`, `public_read_only`, or `public_read_write`. Defaults to `public_read_only`.
|
@@ -57,14 +62,14 @@ class OneDashboardArgs:
|
|
57
62
|
|
58
63
|
@property
|
59
64
|
@pulumi.getter(name="accountId")
|
60
|
-
def account_id(self) -> Optional[pulumi.Input[
|
65
|
+
def account_id(self) -> Optional[pulumi.Input[str]]:
|
61
66
|
"""
|
62
67
|
Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
|
63
68
|
"""
|
64
69
|
return pulumi.get(self, "account_id")
|
65
70
|
|
66
71
|
@account_id.setter
|
67
|
-
def account_id(self, value: Optional[pulumi.Input[
|
72
|
+
def account_id(self, value: Optional[pulumi.Input[str]]):
|
68
73
|
pulumi.set(self, "account_id", value)
|
69
74
|
|
70
75
|
@property
|
@@ -119,7 +124,7 @@ class OneDashboardArgs:
|
|
119
124
|
@pulumi.input_type
|
120
125
|
class _OneDashboardState:
|
121
126
|
def __init__(__self__, *,
|
122
|
-
account_id: Optional[pulumi.Input[
|
127
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
123
128
|
description: Optional[pulumi.Input[str]] = None,
|
124
129
|
guid: Optional[pulumi.Input[str]] = None,
|
125
130
|
name: Optional[pulumi.Input[str]] = None,
|
@@ -129,7 +134,7 @@ class _OneDashboardState:
|
|
129
134
|
variables: Optional[pulumi.Input[Sequence[pulumi.Input['OneDashboardVariableArgs']]]] = None):
|
130
135
|
"""
|
131
136
|
Input properties used for looking up and filtering OneDashboard resources.
|
132
|
-
:param pulumi.Input[
|
137
|
+
:param pulumi.Input[str] account_id: Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
|
133
138
|
:param pulumi.Input[str] description: Brief text describing the dashboard.
|
134
139
|
:param pulumi.Input[str] guid: The unique entity identifier of the dashboard page in New Relic.
|
135
140
|
:param pulumi.Input[str] name: The title of the dashboard.
|
@@ -157,14 +162,14 @@ class _OneDashboardState:
|
|
157
162
|
|
158
163
|
@property
|
159
164
|
@pulumi.getter(name="accountId")
|
160
|
-
def account_id(self) -> Optional[pulumi.Input[
|
165
|
+
def account_id(self) -> Optional[pulumi.Input[str]]:
|
161
166
|
"""
|
162
167
|
Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
|
163
168
|
"""
|
164
169
|
return pulumi.get(self, "account_id")
|
165
170
|
|
166
171
|
@account_id.setter
|
167
|
-
def account_id(self, value: Optional[pulumi.Input[
|
172
|
+
def account_id(self, value: Optional[pulumi.Input[str]]):
|
168
173
|
pulumi.set(self, "account_id", value)
|
169
174
|
|
170
175
|
@property
|
@@ -257,19 +262,19 @@ class OneDashboard(pulumi.CustomResource):
|
|
257
262
|
def __init__(__self__,
|
258
263
|
resource_name: str,
|
259
264
|
opts: Optional[pulumi.ResourceOptions] = None,
|
260
|
-
account_id: Optional[pulumi.Input[
|
265
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
261
266
|
description: Optional[pulumi.Input[str]] = None,
|
262
267
|
name: Optional[pulumi.Input[str]] = None,
|
263
|
-
pages: Optional[pulumi.Input[Sequence[pulumi.Input[
|
268
|
+
pages: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OneDashboardPageArgs', 'OneDashboardPageArgsDict']]]]] = None,
|
264
269
|
permissions: Optional[pulumi.Input[str]] = None,
|
265
|
-
variables: Optional[pulumi.Input[Sequence[pulumi.Input[
|
270
|
+
variables: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OneDashboardVariableArgs', 'OneDashboardVariableArgsDict']]]]] = None,
|
266
271
|
__props__=None):
|
267
272
|
"""
|
268
273
|
## Import
|
269
274
|
|
270
275
|
New Relic dashboards can be imported using their GUID, e.g.
|
271
276
|
|
272
|
-
|
277
|
+
bash
|
273
278
|
|
274
279
|
```sh
|
275
280
|
$ pulumi import newrelic:index/oneDashboard:OneDashboard my_dashboard <dashboard GUID>
|
@@ -277,12 +282,12 @@ class OneDashboard(pulumi.CustomResource):
|
|
277
282
|
|
278
283
|
:param str resource_name: The name of the resource.
|
279
284
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
280
|
-
:param pulumi.Input[
|
285
|
+
:param pulumi.Input[str] account_id: Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
|
281
286
|
:param pulumi.Input[str] description: Brief text describing the dashboard.
|
282
287
|
:param pulumi.Input[str] name: The title of the dashboard.
|
283
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
288
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['OneDashboardPageArgs', 'OneDashboardPageArgsDict']]]] pages: A nested block that describes a page. See Nested page blocks below for details.
|
284
289
|
:param pulumi.Input[str] permissions: Determines who can see the dashboard in an account. Valid values are `private`, `public_read_only`, or `public_read_write`. Defaults to `public_read_only`.
|
285
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
290
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['OneDashboardVariableArgs', 'OneDashboardVariableArgsDict']]]] variables: A nested block that describes a dashboard-local variable. See Nested variable blocks below for details.
|
286
291
|
"""
|
287
292
|
...
|
288
293
|
@overload
|
@@ -295,7 +300,7 @@ class OneDashboard(pulumi.CustomResource):
|
|
295
300
|
|
296
301
|
New Relic dashboards can be imported using their GUID, e.g.
|
297
302
|
|
298
|
-
|
303
|
+
bash
|
299
304
|
|
300
305
|
```sh
|
301
306
|
$ pulumi import newrelic:index/oneDashboard:OneDashboard my_dashboard <dashboard GUID>
|
@@ -316,12 +321,12 @@ class OneDashboard(pulumi.CustomResource):
|
|
316
321
|
def _internal_init(__self__,
|
317
322
|
resource_name: str,
|
318
323
|
opts: Optional[pulumi.ResourceOptions] = None,
|
319
|
-
account_id: Optional[pulumi.Input[
|
324
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
320
325
|
description: Optional[pulumi.Input[str]] = None,
|
321
326
|
name: Optional[pulumi.Input[str]] = None,
|
322
|
-
pages: Optional[pulumi.Input[Sequence[pulumi.Input[
|
327
|
+
pages: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OneDashboardPageArgs', 'OneDashboardPageArgsDict']]]]] = None,
|
323
328
|
permissions: Optional[pulumi.Input[str]] = None,
|
324
|
-
variables: Optional[pulumi.Input[Sequence[pulumi.Input[
|
329
|
+
variables: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OneDashboardVariableArgs', 'OneDashboardVariableArgsDict']]]]] = None,
|
325
330
|
__props__=None):
|
326
331
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
327
332
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -351,14 +356,14 @@ class OneDashboard(pulumi.CustomResource):
|
|
351
356
|
def get(resource_name: str,
|
352
357
|
id: pulumi.Input[str],
|
353
358
|
opts: Optional[pulumi.ResourceOptions] = None,
|
354
|
-
account_id: Optional[pulumi.Input[
|
359
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
355
360
|
description: Optional[pulumi.Input[str]] = None,
|
356
361
|
guid: Optional[pulumi.Input[str]] = None,
|
357
362
|
name: Optional[pulumi.Input[str]] = None,
|
358
|
-
pages: Optional[pulumi.Input[Sequence[pulumi.Input[
|
363
|
+
pages: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OneDashboardPageArgs', 'OneDashboardPageArgsDict']]]]] = None,
|
359
364
|
permalink: Optional[pulumi.Input[str]] = None,
|
360
365
|
permissions: Optional[pulumi.Input[str]] = None,
|
361
|
-
variables: Optional[pulumi.Input[Sequence[pulumi.Input[
|
366
|
+
variables: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OneDashboardVariableArgs', 'OneDashboardVariableArgsDict']]]]] = None) -> 'OneDashboard':
|
362
367
|
"""
|
363
368
|
Get an existing OneDashboard resource's state with the given name, id, and optional extra
|
364
369
|
properties used to qualify the lookup.
|
@@ -366,14 +371,14 @@ class OneDashboard(pulumi.CustomResource):
|
|
366
371
|
:param str resource_name: The unique name of the resulting resource.
|
367
372
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
368
373
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
369
|
-
:param pulumi.Input[
|
374
|
+
:param pulumi.Input[str] account_id: Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
|
370
375
|
:param pulumi.Input[str] description: Brief text describing the dashboard.
|
371
376
|
:param pulumi.Input[str] guid: The unique entity identifier of the dashboard page in New Relic.
|
372
377
|
:param pulumi.Input[str] name: The title of the dashboard.
|
373
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
378
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['OneDashboardPageArgs', 'OneDashboardPageArgsDict']]]] pages: A nested block that describes a page. See Nested page blocks below for details.
|
374
379
|
:param pulumi.Input[str] permalink: The URL for viewing the dashboard.
|
375
380
|
:param pulumi.Input[str] permissions: Determines who can see the dashboard in an account. Valid values are `private`, `public_read_only`, or `public_read_write`. Defaults to `public_read_only`.
|
376
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
381
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['OneDashboardVariableArgs', 'OneDashboardVariableArgsDict']]]] variables: A nested block that describes a dashboard-local variable. See Nested variable blocks below for details.
|
377
382
|
"""
|
378
383
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
379
384
|
|
@@ -391,7 +396,7 @@ class OneDashboard(pulumi.CustomResource):
|
|
391
396
|
|
392
397
|
@property
|
393
398
|
@pulumi.getter(name="accountId")
|
394
|
-
def account_id(self) -> pulumi.Output[
|
399
|
+
def account_id(self) -> pulumi.Output[str]:
|
395
400
|
"""
|
396
401
|
Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
|
397
402
|
"""
|
@@ -4,9 +4,14 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
+
import sys
|
7
8
|
import pulumi
|
8
9
|
import pulumi.runtime
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
10
15
|
from . import _utilities
|
11
16
|
|
12
17
|
__all__ = ['OneDashboardJsonArgs', 'OneDashboardJson']
|
@@ -15,11 +20,11 @@ __all__ = ['OneDashboardJsonArgs', 'OneDashboardJson']
|
|
15
20
|
class OneDashboardJsonArgs:
|
16
21
|
def __init__(__self__, *,
|
17
22
|
json: pulumi.Input[str],
|
18
|
-
account_id: Optional[pulumi.Input[
|
23
|
+
account_id: Optional[pulumi.Input[str]] = None):
|
19
24
|
"""
|
20
25
|
The set of arguments for constructing a OneDashboardJson resource.
|
21
26
|
:param pulumi.Input[str] json: The JSON export of a dashboard. [The JSON can be exported from the UI](https://docs.newrelic.com/docs/query-your-data/explore-query-data/dashboards/dashboards-charts-import-export-data/#dashboards)
|
22
|
-
:param pulumi.Input[
|
27
|
+
:param pulumi.Input[str] account_id: Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
|
23
28
|
"""
|
24
29
|
pulumi.set(__self__, "json", json)
|
25
30
|
if account_id is not None:
|
@@ -39,28 +44,28 @@ class OneDashboardJsonArgs:
|
|
39
44
|
|
40
45
|
@property
|
41
46
|
@pulumi.getter(name="accountId")
|
42
|
-
def account_id(self) -> Optional[pulumi.Input[
|
47
|
+
def account_id(self) -> Optional[pulumi.Input[str]]:
|
43
48
|
"""
|
44
49
|
Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
|
45
50
|
"""
|
46
51
|
return pulumi.get(self, "account_id")
|
47
52
|
|
48
53
|
@account_id.setter
|
49
|
-
def account_id(self, value: Optional[pulumi.Input[
|
54
|
+
def account_id(self, value: Optional[pulumi.Input[str]]):
|
50
55
|
pulumi.set(self, "account_id", value)
|
51
56
|
|
52
57
|
|
53
58
|
@pulumi.input_type
|
54
59
|
class _OneDashboardJsonState:
|
55
60
|
def __init__(__self__, *,
|
56
|
-
account_id: Optional[pulumi.Input[
|
61
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
57
62
|
guid: Optional[pulumi.Input[str]] = None,
|
58
63
|
json: Optional[pulumi.Input[str]] = None,
|
59
64
|
permalink: Optional[pulumi.Input[str]] = None,
|
60
65
|
updated_at: Optional[pulumi.Input[str]] = None):
|
61
66
|
"""
|
62
67
|
Input properties used for looking up and filtering OneDashboardJson resources.
|
63
|
-
:param pulumi.Input[
|
68
|
+
:param pulumi.Input[str] account_id: Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
|
64
69
|
:param pulumi.Input[str] guid: The unique entity identifier of the dashboard in New Relic.
|
65
70
|
:param pulumi.Input[str] json: The JSON export of a dashboard. [The JSON can be exported from the UI](https://docs.newrelic.com/docs/query-your-data/explore-query-data/dashboards/dashboards-charts-import-export-data/#dashboards)
|
66
71
|
:param pulumi.Input[str] permalink: The URL for viewing the dashboard.
|
@@ -79,14 +84,14 @@ class _OneDashboardJsonState:
|
|
79
84
|
|
80
85
|
@property
|
81
86
|
@pulumi.getter(name="accountId")
|
82
|
-
def account_id(self) -> Optional[pulumi.Input[
|
87
|
+
def account_id(self) -> Optional[pulumi.Input[str]]:
|
83
88
|
"""
|
84
89
|
Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
|
85
90
|
"""
|
86
91
|
return pulumi.get(self, "account_id")
|
87
92
|
|
88
93
|
@account_id.setter
|
89
|
-
def account_id(self, value: Optional[pulumi.Input[
|
94
|
+
def account_id(self, value: Optional[pulumi.Input[str]]):
|
90
95
|
pulumi.set(self, "account_id", value)
|
91
96
|
|
92
97
|
@property
|
@@ -143,7 +148,7 @@ class OneDashboardJson(pulumi.CustomResource):
|
|
143
148
|
def __init__(__self__,
|
144
149
|
resource_name: str,
|
145
150
|
opts: Optional[pulumi.ResourceOptions] = None,
|
146
|
-
account_id: Optional[pulumi.Input[
|
151
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
147
152
|
json: Optional[pulumi.Input[str]] = None,
|
148
153
|
__props__=None):
|
149
154
|
"""
|
@@ -151,7 +156,7 @@ class OneDashboardJson(pulumi.CustomResource):
|
|
151
156
|
|
152
157
|
New Relic dashboards can be imported using their GUID, e.g.
|
153
158
|
|
154
|
-
|
159
|
+
bash
|
155
160
|
|
156
161
|
```sh
|
157
162
|
$ pulumi import newrelic:index/oneDashboardJson:OneDashboardJson my_dashboard <dashboard GUID>
|
@@ -159,7 +164,7 @@ class OneDashboardJson(pulumi.CustomResource):
|
|
159
164
|
|
160
165
|
:param str resource_name: The name of the resource.
|
161
166
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
162
|
-
:param pulumi.Input[
|
167
|
+
:param pulumi.Input[str] account_id: Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
|
163
168
|
:param pulumi.Input[str] json: The JSON export of a dashboard. [The JSON can be exported from the UI](https://docs.newrelic.com/docs/query-your-data/explore-query-data/dashboards/dashboards-charts-import-export-data/#dashboards)
|
164
169
|
"""
|
165
170
|
...
|
@@ -173,7 +178,7 @@ class OneDashboardJson(pulumi.CustomResource):
|
|
173
178
|
|
174
179
|
New Relic dashboards can be imported using their GUID, e.g.
|
175
180
|
|
176
|
-
|
181
|
+
bash
|
177
182
|
|
178
183
|
```sh
|
179
184
|
$ pulumi import newrelic:index/oneDashboardJson:OneDashboardJson my_dashboard <dashboard GUID>
|
@@ -194,7 +199,7 @@ class OneDashboardJson(pulumi.CustomResource):
|
|
194
199
|
def _internal_init(__self__,
|
195
200
|
resource_name: str,
|
196
201
|
opts: Optional[pulumi.ResourceOptions] = None,
|
197
|
-
account_id: Optional[pulumi.Input[
|
202
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
198
203
|
json: Optional[pulumi.Input[str]] = None,
|
199
204
|
__props__=None):
|
200
205
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
@@ -222,7 +227,7 @@ class OneDashboardJson(pulumi.CustomResource):
|
|
222
227
|
def get(resource_name: str,
|
223
228
|
id: pulumi.Input[str],
|
224
229
|
opts: Optional[pulumi.ResourceOptions] = None,
|
225
|
-
account_id: Optional[pulumi.Input[
|
230
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
226
231
|
guid: Optional[pulumi.Input[str]] = None,
|
227
232
|
json: Optional[pulumi.Input[str]] = None,
|
228
233
|
permalink: Optional[pulumi.Input[str]] = None,
|
@@ -234,7 +239,7 @@ class OneDashboardJson(pulumi.CustomResource):
|
|
234
239
|
:param str resource_name: The unique name of the resulting resource.
|
235
240
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
236
241
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
237
|
-
:param pulumi.Input[
|
242
|
+
:param pulumi.Input[str] account_id: Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
|
238
243
|
:param pulumi.Input[str] guid: The unique entity identifier of the dashboard in New Relic.
|
239
244
|
:param pulumi.Input[str] json: The JSON export of a dashboard. [The JSON can be exported from the UI](https://docs.newrelic.com/docs/query-your-data/explore-query-data/dashboards/dashboards-charts-import-export-data/#dashboards)
|
240
245
|
:param pulumi.Input[str] permalink: The URL for viewing the dashboard.
|
@@ -253,7 +258,7 @@ class OneDashboardJson(pulumi.CustomResource):
|
|
253
258
|
|
254
259
|
@property
|
255
260
|
@pulumi.getter(name="accountId")
|
256
|
-
def account_id(self) -> pulumi.Output[
|
261
|
+
def account_id(self) -> pulumi.Output[str]:
|
257
262
|
"""
|
258
263
|
Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
|
259
264
|
"""
|