pulumi-newrelic 5.16.0a1698964311__py3-none-any.whl → 5.58.0a1763707205__py3-none-any.whl
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.
Potentially problematic release.
This version of pulumi-newrelic might be problematic. Click here for more details.
- pulumi_newrelic/__init__.py +58 -1
- pulumi_newrelic/_inputs.py +10772 -2775
- pulumi_newrelic/_utilities.py +92 -11
- pulumi_newrelic/account_management.py +56 -42
- pulumi_newrelic/alert_channel.py +177 -151
- pulumi_newrelic/alert_condition.py +313 -301
- pulumi_newrelic/alert_muting_rule.py +195 -138
- pulumi_newrelic/alert_policy.py +157 -109
- pulumi_newrelic/alert_policy_channel.py +95 -81
- pulumi_newrelic/api_access_key.py +191 -209
- pulumi_newrelic/browser_application.py +161 -153
- pulumi_newrelic/cloud/__init__.py +3 -1
- pulumi_newrelic/cloud/_inputs.py +4267 -2710
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +238 -200
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +159 -212
- pulumi_newrelic/cloud/aws_integrations.py +518 -1490
- pulumi_newrelic/cloud/aws_link_account.py +88 -76
- pulumi_newrelic/cloud/azure_integrations.py +681 -587
- pulumi_newrelic/cloud/azure_link_account.py +129 -117
- pulumi_newrelic/cloud/gcp_integrations.py +436 -408
- pulumi_newrelic/cloud/gcp_link_account.py +71 -59
- pulumi_newrelic/cloud/oci_link_account.py +926 -0
- pulumi_newrelic/cloud/outputs.py +1678 -2317
- pulumi_newrelic/config/__init__.py +2 -1
- pulumi_newrelic/config/__init__.pyi +45 -0
- pulumi_newrelic/config/vars.py +22 -17
- pulumi_newrelic/data_partition_rule.py +129 -117
- pulumi_newrelic/entity_tags.py +153 -31
- pulumi_newrelic/events_to_metrics_rule.py +114 -102
- pulumi_newrelic/get_account.py +41 -29
- pulumi_newrelic/get_alert_channel.py +73 -28
- pulumi_newrelic/get_alert_policy.py +83 -34
- pulumi_newrelic/get_application.py +51 -39
- pulumi_newrelic/get_authentication_domain.py +111 -0
- pulumi_newrelic/get_cloud_account.py +43 -31
- pulumi_newrelic/get_entity.py +126 -121
- pulumi_newrelic/get_group.py +190 -0
- pulumi_newrelic/get_key_transaction.py +117 -38
- pulumi_newrelic/get_notification_destination.py +86 -36
- pulumi_newrelic/get_obfuscation_expression.py +47 -35
- pulumi_newrelic/get_service_level_alert_helper.py +237 -137
- pulumi_newrelic/get_test_grok_pattern.py +47 -32
- pulumi_newrelic/get_user.py +165 -0
- pulumi_newrelic/group.py +286 -0
- pulumi_newrelic/infra_alert_condition.py +400 -382
- pulumi_newrelic/insights/__init__.py +2 -1
- pulumi_newrelic/insights/_inputs.py +94 -23
- pulumi_newrelic/insights/event.py +56 -48
- pulumi_newrelic/insights/outputs.py +51 -18
- pulumi_newrelic/key_transaction.py +465 -0
- pulumi_newrelic/log_parsing_rule.py +169 -153
- pulumi_newrelic/monitor_downtime.py +914 -0
- pulumi_newrelic/notification_channel.py +560 -418
- pulumi_newrelic/notification_destination.py +379 -124
- pulumi_newrelic/nrql_alert_condition.py +945 -513
- pulumi_newrelic/nrql_drop_rule.py +121 -129
- pulumi_newrelic/obfuscation_expression.py +88 -76
- pulumi_newrelic/obfuscation_rule.py +123 -109
- pulumi_newrelic/one_dashboard.py +118 -108
- pulumi_newrelic/one_dashboard_json.py +77 -67
- pulumi_newrelic/one_dashboard_raw.py +214 -202
- pulumi_newrelic/outputs.py +5491 -2141
- pulumi_newrelic/pipeline_cloud_rule.py +335 -0
- pulumi_newrelic/plugins/__init__.py +2 -1
- pulumi_newrelic/plugins/_inputs.py +520 -90
- pulumi_newrelic/plugins/application_settings.py +463 -167
- pulumi_newrelic/plugins/outputs.py +337 -75
- pulumi_newrelic/plugins/workload.py +387 -151
- pulumi_newrelic/provider.py +156 -142
- pulumi_newrelic/pulumi-plugin.json +2 -1
- pulumi_newrelic/service_level.py +277 -255
- pulumi_newrelic/synthetics/__init__.py +2 -1
- pulumi_newrelic/synthetics/_inputs.py +275 -106
- pulumi_newrelic/synthetics/alert_condition.py +174 -160
- pulumi_newrelic/synthetics/broken_links_monitor.py +367 -207
- pulumi_newrelic/synthetics/cert_check_monitor.py +380 -218
- pulumi_newrelic/synthetics/get_private_location.py +51 -39
- pulumi_newrelic/synthetics/get_secure_credential.py +39 -27
- pulumi_newrelic/synthetics/monitor.py +668 -462
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +219 -201
- pulumi_newrelic/synthetics/outputs.py +102 -85
- pulumi_newrelic/synthetics/private_location.py +120 -110
- pulumi_newrelic/synthetics/script_monitor.py +623 -375
- pulumi_newrelic/synthetics/secure_credential.py +99 -93
- pulumi_newrelic/synthetics/step_monitor.py +545 -201
- pulumi_newrelic/user.py +366 -0
- pulumi_newrelic/workflow.py +348 -312
- {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +8 -7
- pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
- {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
- pulumi_newrelic-5.16.0a1698964311.dist-info/RECORD +0 -82
- {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/top_level.txt +0 -0
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
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__ = ['AwsLinkAccountArgs', 'AwsLinkAccount']
|
|
@@ -14,16 +19,16 @@ __all__ = ['AwsLinkAccountArgs', 'AwsLinkAccount']
|
|
|
14
19
|
@pulumi.input_type
|
|
15
20
|
class AwsLinkAccountArgs:
|
|
16
21
|
def __init__(__self__, *,
|
|
17
|
-
arn: pulumi.Input[str],
|
|
18
|
-
account_id: Optional[pulumi.Input[
|
|
19
|
-
metric_collection_mode: Optional[pulumi.Input[str]] = None,
|
|
20
|
-
name: Optional[pulumi.Input[str]] = None):
|
|
22
|
+
arn: pulumi.Input[_builtins.str],
|
|
23
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
24
|
+
metric_collection_mode: Optional[pulumi.Input[_builtins.str]] = None,
|
|
25
|
+
name: Optional[pulumi.Input[_builtins.str]] = None):
|
|
21
26
|
"""
|
|
22
27
|
The set of arguments for constructing a AwsLinkAccount resource.
|
|
23
|
-
:param pulumi.Input[str] arn: The Amazon Resource Name (ARN) of the IAM role.
|
|
24
|
-
:param pulumi.Input[
|
|
25
|
-
:param pulumi.Input[str] metric_collection_mode: How metrics will be collected. Use `PUSH` for a metric stream or `PULL` to integrate with individual services.
|
|
26
|
-
:param pulumi.Input[str] name: The name of the linked account.
|
|
28
|
+
:param pulumi.Input[_builtins.str] arn: The Amazon Resource Name (ARN) of the IAM role.
|
|
29
|
+
:param pulumi.Input[_builtins.str] account_id: The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
|
30
|
+
:param pulumi.Input[_builtins.str] metric_collection_mode: How metrics will be collected. Use `PUSH` for a metric stream or `PULL` to integrate with individual services.
|
|
31
|
+
:param pulumi.Input[_builtins.str] name: The name of the linked account.
|
|
27
32
|
"""
|
|
28
33
|
pulumi.set(__self__, "arn", arn)
|
|
29
34
|
if account_id is not None:
|
|
@@ -33,68 +38,68 @@ class AwsLinkAccountArgs:
|
|
|
33
38
|
if name is not None:
|
|
34
39
|
pulumi.set(__self__, "name", name)
|
|
35
40
|
|
|
36
|
-
@property
|
|
41
|
+
@_builtins.property
|
|
37
42
|
@pulumi.getter
|
|
38
|
-
def arn(self) -> pulumi.Input[str]:
|
|
43
|
+
def arn(self) -> pulumi.Input[_builtins.str]:
|
|
39
44
|
"""
|
|
40
45
|
The Amazon Resource Name (ARN) of the IAM role.
|
|
41
46
|
"""
|
|
42
47
|
return pulumi.get(self, "arn")
|
|
43
48
|
|
|
44
49
|
@arn.setter
|
|
45
|
-
def arn(self, value: pulumi.Input[str]):
|
|
50
|
+
def arn(self, value: pulumi.Input[_builtins.str]):
|
|
46
51
|
pulumi.set(self, "arn", value)
|
|
47
52
|
|
|
48
|
-
@property
|
|
53
|
+
@_builtins.property
|
|
49
54
|
@pulumi.getter(name="accountId")
|
|
50
|
-
def account_id(self) -> Optional[pulumi.Input[
|
|
55
|
+
def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
51
56
|
"""
|
|
52
57
|
The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
|
53
58
|
"""
|
|
54
59
|
return pulumi.get(self, "account_id")
|
|
55
60
|
|
|
56
61
|
@account_id.setter
|
|
57
|
-
def account_id(self, value: Optional[pulumi.Input[
|
|
62
|
+
def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
58
63
|
pulumi.set(self, "account_id", value)
|
|
59
64
|
|
|
60
|
-
@property
|
|
65
|
+
@_builtins.property
|
|
61
66
|
@pulumi.getter(name="metricCollectionMode")
|
|
62
|
-
def metric_collection_mode(self) -> Optional[pulumi.Input[str]]:
|
|
67
|
+
def metric_collection_mode(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
63
68
|
"""
|
|
64
69
|
How metrics will be collected. Use `PUSH` for a metric stream or `PULL` to integrate with individual services.
|
|
65
70
|
"""
|
|
66
71
|
return pulumi.get(self, "metric_collection_mode")
|
|
67
72
|
|
|
68
73
|
@metric_collection_mode.setter
|
|
69
|
-
def metric_collection_mode(self, value: Optional[pulumi.Input[str]]):
|
|
74
|
+
def metric_collection_mode(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
70
75
|
pulumi.set(self, "metric_collection_mode", value)
|
|
71
76
|
|
|
72
|
-
@property
|
|
77
|
+
@_builtins.property
|
|
73
78
|
@pulumi.getter
|
|
74
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
79
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
75
80
|
"""
|
|
76
81
|
The name of the linked account.
|
|
77
82
|
"""
|
|
78
83
|
return pulumi.get(self, "name")
|
|
79
84
|
|
|
80
85
|
@name.setter
|
|
81
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
86
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
82
87
|
pulumi.set(self, "name", value)
|
|
83
88
|
|
|
84
89
|
|
|
85
90
|
@pulumi.input_type
|
|
86
91
|
class _AwsLinkAccountState:
|
|
87
92
|
def __init__(__self__, *,
|
|
88
|
-
account_id: Optional[pulumi.Input[
|
|
89
|
-
arn: Optional[pulumi.Input[str]] = None,
|
|
90
|
-
metric_collection_mode: Optional[pulumi.Input[str]] = None,
|
|
91
|
-
name: Optional[pulumi.Input[str]] = None):
|
|
93
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
94
|
+
arn: Optional[pulumi.Input[_builtins.str]] = None,
|
|
95
|
+
metric_collection_mode: Optional[pulumi.Input[_builtins.str]] = None,
|
|
96
|
+
name: Optional[pulumi.Input[_builtins.str]] = None):
|
|
92
97
|
"""
|
|
93
98
|
Input properties used for looking up and filtering AwsLinkAccount resources.
|
|
94
|
-
:param pulumi.Input[
|
|
95
|
-
:param pulumi.Input[str] arn: The Amazon Resource Name (ARN) of the IAM role.
|
|
96
|
-
:param pulumi.Input[str] metric_collection_mode: How metrics will be collected. Use `PUSH` for a metric stream or `PULL` to integrate with individual services.
|
|
97
|
-
:param pulumi.Input[str] name: The name of the linked account.
|
|
99
|
+
:param pulumi.Input[_builtins.str] account_id: The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
|
100
|
+
:param pulumi.Input[_builtins.str] arn: The Amazon Resource Name (ARN) of the IAM role.
|
|
101
|
+
:param pulumi.Input[_builtins.str] metric_collection_mode: How metrics will be collected. Use `PUSH` for a metric stream or `PULL` to integrate with individual services.
|
|
102
|
+
:param pulumi.Input[_builtins.str] name: The name of the linked account.
|
|
98
103
|
"""
|
|
99
104
|
if account_id is not None:
|
|
100
105
|
pulumi.set(__self__, "account_id", account_id)
|
|
@@ -105,64 +110,65 @@ class _AwsLinkAccountState:
|
|
|
105
110
|
if name is not None:
|
|
106
111
|
pulumi.set(__self__, "name", name)
|
|
107
112
|
|
|
108
|
-
@property
|
|
113
|
+
@_builtins.property
|
|
109
114
|
@pulumi.getter(name="accountId")
|
|
110
|
-
def account_id(self) -> Optional[pulumi.Input[
|
|
115
|
+
def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
111
116
|
"""
|
|
112
117
|
The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
|
113
118
|
"""
|
|
114
119
|
return pulumi.get(self, "account_id")
|
|
115
120
|
|
|
116
121
|
@account_id.setter
|
|
117
|
-
def account_id(self, value: Optional[pulumi.Input[
|
|
122
|
+
def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
118
123
|
pulumi.set(self, "account_id", value)
|
|
119
124
|
|
|
120
|
-
@property
|
|
125
|
+
@_builtins.property
|
|
121
126
|
@pulumi.getter
|
|
122
|
-
def arn(self) -> Optional[pulumi.Input[str]]:
|
|
127
|
+
def arn(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
123
128
|
"""
|
|
124
129
|
The Amazon Resource Name (ARN) of the IAM role.
|
|
125
130
|
"""
|
|
126
131
|
return pulumi.get(self, "arn")
|
|
127
132
|
|
|
128
133
|
@arn.setter
|
|
129
|
-
def arn(self, value: Optional[pulumi.Input[str]]):
|
|
134
|
+
def arn(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
130
135
|
pulumi.set(self, "arn", value)
|
|
131
136
|
|
|
132
|
-
@property
|
|
137
|
+
@_builtins.property
|
|
133
138
|
@pulumi.getter(name="metricCollectionMode")
|
|
134
|
-
def metric_collection_mode(self) -> Optional[pulumi.Input[str]]:
|
|
139
|
+
def metric_collection_mode(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
135
140
|
"""
|
|
136
141
|
How metrics will be collected. Use `PUSH` for a metric stream or `PULL` to integrate with individual services.
|
|
137
142
|
"""
|
|
138
143
|
return pulumi.get(self, "metric_collection_mode")
|
|
139
144
|
|
|
140
145
|
@metric_collection_mode.setter
|
|
141
|
-
def metric_collection_mode(self, value: Optional[pulumi.Input[str]]):
|
|
146
|
+
def metric_collection_mode(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
142
147
|
pulumi.set(self, "metric_collection_mode", value)
|
|
143
148
|
|
|
144
|
-
@property
|
|
149
|
+
@_builtins.property
|
|
145
150
|
@pulumi.getter
|
|
146
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
151
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
147
152
|
"""
|
|
148
153
|
The name of the linked account.
|
|
149
154
|
"""
|
|
150
155
|
return pulumi.get(self, "name")
|
|
151
156
|
|
|
152
157
|
@name.setter
|
|
153
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
158
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
154
159
|
pulumi.set(self, "name", value)
|
|
155
160
|
|
|
156
161
|
|
|
162
|
+
@pulumi.type_token("newrelic:cloud/awsLinkAccount:AwsLinkAccount")
|
|
157
163
|
class AwsLinkAccount(pulumi.CustomResource):
|
|
158
164
|
@overload
|
|
159
165
|
def __init__(__self__,
|
|
160
166
|
resource_name: str,
|
|
161
167
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
162
|
-
account_id: Optional[pulumi.Input[
|
|
163
|
-
arn: Optional[pulumi.Input[str]] = None,
|
|
164
|
-
metric_collection_mode: Optional[pulumi.Input[str]] = None,
|
|
165
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
168
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
169
|
+
arn: Optional[pulumi.Input[_builtins.str]] = None,
|
|
170
|
+
metric_collection_mode: Optional[pulumi.Input[_builtins.str]] = None,
|
|
171
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
166
172
|
__props__=None):
|
|
167
173
|
"""
|
|
168
174
|
Use this resource to link an AWS account to New Relic.
|
|
@@ -185,23 +191,26 @@ class AwsLinkAccount(pulumi.CustomResource):
|
|
|
185
191
|
|
|
186
192
|
foo = newrelic.cloud.AwsLinkAccount("foo",
|
|
187
193
|
arn="arn:aws:service:region:account-id:resource-id",
|
|
188
|
-
metric_collection_mode="PUSH"
|
|
194
|
+
metric_collection_mode="PUSH",
|
|
195
|
+
name="account name")
|
|
189
196
|
```
|
|
190
197
|
|
|
191
198
|
## Import
|
|
192
199
|
|
|
193
|
-
Linked AWS accounts can be imported using the `id`, e.g.
|
|
200
|
+
Linked AWS accounts can be imported using the `id`, e.g.
|
|
201
|
+
|
|
202
|
+
bash
|
|
194
203
|
|
|
195
204
|
```sh
|
|
196
|
-
|
|
205
|
+
$ pulumi import newrelic:cloud/awsLinkAccount:AwsLinkAccount foo <id>
|
|
197
206
|
```
|
|
198
207
|
|
|
199
208
|
:param str resource_name: The name of the resource.
|
|
200
209
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
201
|
-
:param pulumi.Input[
|
|
202
|
-
:param pulumi.Input[str] arn: The Amazon Resource Name (ARN) of the IAM role.
|
|
203
|
-
:param pulumi.Input[str] metric_collection_mode: How metrics will be collected. Use `PUSH` for a metric stream or `PULL` to integrate with individual services.
|
|
204
|
-
:param pulumi.Input[str] name: The name of the linked account.
|
|
210
|
+
:param pulumi.Input[_builtins.str] account_id: The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
|
211
|
+
:param pulumi.Input[_builtins.str] arn: The Amazon Resource Name (ARN) of the IAM role.
|
|
212
|
+
:param pulumi.Input[_builtins.str] metric_collection_mode: How metrics will be collected. Use `PUSH` for a metric stream or `PULL` to integrate with individual services.
|
|
213
|
+
:param pulumi.Input[_builtins.str] name: The name of the linked account.
|
|
205
214
|
"""
|
|
206
215
|
...
|
|
207
216
|
@overload
|
|
@@ -230,15 +239,18 @@ class AwsLinkAccount(pulumi.CustomResource):
|
|
|
230
239
|
|
|
231
240
|
foo = newrelic.cloud.AwsLinkAccount("foo",
|
|
232
241
|
arn="arn:aws:service:region:account-id:resource-id",
|
|
233
|
-
metric_collection_mode="PUSH"
|
|
242
|
+
metric_collection_mode="PUSH",
|
|
243
|
+
name="account name")
|
|
234
244
|
```
|
|
235
245
|
|
|
236
246
|
## Import
|
|
237
247
|
|
|
238
|
-
Linked AWS accounts can be imported using the `id`, e.g.
|
|
248
|
+
Linked AWS accounts can be imported using the `id`, e.g.
|
|
249
|
+
|
|
250
|
+
bash
|
|
239
251
|
|
|
240
252
|
```sh
|
|
241
|
-
|
|
253
|
+
$ pulumi import newrelic:cloud/awsLinkAccount:AwsLinkAccount foo <id>
|
|
242
254
|
```
|
|
243
255
|
|
|
244
256
|
:param str resource_name: The name of the resource.
|
|
@@ -256,10 +268,10 @@ class AwsLinkAccount(pulumi.CustomResource):
|
|
|
256
268
|
def _internal_init(__self__,
|
|
257
269
|
resource_name: str,
|
|
258
270
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
259
|
-
account_id: Optional[pulumi.Input[
|
|
260
|
-
arn: Optional[pulumi.Input[str]] = None,
|
|
261
|
-
metric_collection_mode: Optional[pulumi.Input[str]] = None,
|
|
262
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
271
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
272
|
+
arn: Optional[pulumi.Input[_builtins.str]] = None,
|
|
273
|
+
metric_collection_mode: Optional[pulumi.Input[_builtins.str]] = None,
|
|
274
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
263
275
|
__props__=None):
|
|
264
276
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
265
277
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -285,10 +297,10 @@ class AwsLinkAccount(pulumi.CustomResource):
|
|
|
285
297
|
def get(resource_name: str,
|
|
286
298
|
id: pulumi.Input[str],
|
|
287
299
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
288
|
-
account_id: Optional[pulumi.Input[
|
|
289
|
-
arn: Optional[pulumi.Input[str]] = None,
|
|
290
|
-
metric_collection_mode: Optional[pulumi.Input[str]] = None,
|
|
291
|
-
name: Optional[pulumi.Input[str]] = None) -> 'AwsLinkAccount':
|
|
300
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
301
|
+
arn: Optional[pulumi.Input[_builtins.str]] = None,
|
|
302
|
+
metric_collection_mode: Optional[pulumi.Input[_builtins.str]] = None,
|
|
303
|
+
name: Optional[pulumi.Input[_builtins.str]] = None) -> 'AwsLinkAccount':
|
|
292
304
|
"""
|
|
293
305
|
Get an existing AwsLinkAccount resource's state with the given name, id, and optional extra
|
|
294
306
|
properties used to qualify the lookup.
|
|
@@ -296,10 +308,10 @@ class AwsLinkAccount(pulumi.CustomResource):
|
|
|
296
308
|
:param str resource_name: The unique name of the resulting resource.
|
|
297
309
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
298
310
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
299
|
-
:param pulumi.Input[
|
|
300
|
-
:param pulumi.Input[str] arn: The Amazon Resource Name (ARN) of the IAM role.
|
|
301
|
-
:param pulumi.Input[str] metric_collection_mode: How metrics will be collected. Use `PUSH` for a metric stream or `PULL` to integrate with individual services.
|
|
302
|
-
:param pulumi.Input[str] name: The name of the linked account.
|
|
311
|
+
:param pulumi.Input[_builtins.str] account_id: The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
|
312
|
+
:param pulumi.Input[_builtins.str] arn: The Amazon Resource Name (ARN) of the IAM role.
|
|
313
|
+
:param pulumi.Input[_builtins.str] metric_collection_mode: How metrics will be collected. Use `PUSH` for a metric stream or `PULL` to integrate with individual services.
|
|
314
|
+
:param pulumi.Input[_builtins.str] name: The name of the linked account.
|
|
303
315
|
"""
|
|
304
316
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
305
317
|
|
|
@@ -311,33 +323,33 @@ class AwsLinkAccount(pulumi.CustomResource):
|
|
|
311
323
|
__props__.__dict__["name"] = name
|
|
312
324
|
return AwsLinkAccount(resource_name, opts=opts, __props__=__props__)
|
|
313
325
|
|
|
314
|
-
@property
|
|
326
|
+
@_builtins.property
|
|
315
327
|
@pulumi.getter(name="accountId")
|
|
316
|
-
def account_id(self) -> pulumi.Output[
|
|
328
|
+
def account_id(self) -> pulumi.Output[_builtins.str]:
|
|
317
329
|
"""
|
|
318
330
|
The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
|
|
319
331
|
"""
|
|
320
332
|
return pulumi.get(self, "account_id")
|
|
321
333
|
|
|
322
|
-
@property
|
|
334
|
+
@_builtins.property
|
|
323
335
|
@pulumi.getter
|
|
324
|
-
def arn(self) -> pulumi.Output[str]:
|
|
336
|
+
def arn(self) -> pulumi.Output[_builtins.str]:
|
|
325
337
|
"""
|
|
326
338
|
The Amazon Resource Name (ARN) of the IAM role.
|
|
327
339
|
"""
|
|
328
340
|
return pulumi.get(self, "arn")
|
|
329
341
|
|
|
330
|
-
@property
|
|
342
|
+
@_builtins.property
|
|
331
343
|
@pulumi.getter(name="metricCollectionMode")
|
|
332
|
-
def metric_collection_mode(self) -> pulumi.Output[Optional[str]]:
|
|
344
|
+
def metric_collection_mode(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
333
345
|
"""
|
|
334
346
|
How metrics will be collected. Use `PUSH` for a metric stream or `PULL` to integrate with individual services.
|
|
335
347
|
"""
|
|
336
348
|
return pulumi.get(self, "metric_collection_mode")
|
|
337
349
|
|
|
338
|
-
@property
|
|
350
|
+
@_builtins.property
|
|
339
351
|
@pulumi.getter
|
|
340
|
-
def name(self) -> pulumi.Output[str]:
|
|
352
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
341
353
|
"""
|
|
342
354
|
The name of the linked account.
|
|
343
355
|
"""
|