pulumi-newrelic 5.22.0__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.

Files changed (92) hide show
  1. pulumi_newrelic/__init__.py +28 -1
  2. pulumi_newrelic/_inputs.py +10385 -2976
  3. pulumi_newrelic/_utilities.py +50 -10
  4. pulumi_newrelic/account_management.py +48 -42
  5. pulumi_newrelic/alert_channel.py +165 -175
  6. pulumi_newrelic/alert_condition.py +307 -319
  7. pulumi_newrelic/alert_muting_rule.py +193 -140
  8. pulumi_newrelic/alert_policy.py +121 -117
  9. pulumi_newrelic/alert_policy_channel.py +89 -79
  10. pulumi_newrelic/api_access_key.py +195 -193
  11. pulumi_newrelic/browser_application.py +120 -114
  12. pulumi_newrelic/cloud/__init__.py +3 -1
  13. pulumi_newrelic/cloud/_inputs.py +4267 -2714
  14. pulumi_newrelic/cloud/aws_govcloud_integrations.py +206 -196
  15. pulumi_newrelic/cloud/aws_govcloud_link_account.py +143 -228
  16. pulumi_newrelic/cloud/aws_integrations.py +510 -1490
  17. pulumi_newrelic/cloud/aws_link_account.py +80 -76
  18. pulumi_newrelic/cloud/azure_integrations.py +673 -587
  19. pulumi_newrelic/cloud/azure_link_account.py +121 -117
  20. pulumi_newrelic/cloud/gcp_integrations.py +428 -408
  21. pulumi_newrelic/cloud/gcp_link_account.py +65 -61
  22. pulumi_newrelic/cloud/oci_link_account.py +926 -0
  23. pulumi_newrelic/cloud/outputs.py +1678 -2321
  24. pulumi_newrelic/config/__init__.py +2 -1
  25. pulumi_newrelic/config/__init__.pyi +8 -3
  26. pulumi_newrelic/config/vars.py +22 -17
  27. pulumi_newrelic/data_partition_rule.py +119 -117
  28. pulumi_newrelic/entity_tags.py +111 -53
  29. pulumi_newrelic/events_to_metrics_rule.py +106 -102
  30. pulumi_newrelic/get_account.py +41 -33
  31. pulumi_newrelic/get_alert_channel.py +73 -28
  32. pulumi_newrelic/get_alert_policy.py +82 -33
  33. pulumi_newrelic/get_application.py +51 -43
  34. pulumi_newrelic/get_authentication_domain.py +27 -23
  35. pulumi_newrelic/get_cloud_account.py +43 -35
  36. pulumi_newrelic/get_entity.py +126 -183
  37. pulumi_newrelic/get_group.py +76 -31
  38. pulumi_newrelic/get_key_transaction.py +117 -42
  39. pulumi_newrelic/get_notification_destination.py +75 -38
  40. pulumi_newrelic/get_obfuscation_expression.py +47 -39
  41. pulumi_newrelic/get_service_level_alert_helper.py +189 -171
  42. pulumi_newrelic/get_test_grok_pattern.py +47 -36
  43. pulumi_newrelic/get_user.py +39 -31
  44. pulumi_newrelic/group.py +59 -199
  45. pulumi_newrelic/infra_alert_condition.py +399 -405
  46. pulumi_newrelic/insights/__init__.py +2 -1
  47. pulumi_newrelic/insights/_inputs.py +71 -28
  48. pulumi_newrelic/insights/event.py +54 -52
  49. pulumi_newrelic/insights/outputs.py +28 -23
  50. pulumi_newrelic/key_transaction.py +465 -0
  51. pulumi_newrelic/log_parsing_rule.py +159 -157
  52. pulumi_newrelic/monitor_downtime.py +311 -331
  53. pulumi_newrelic/notification_channel.py +534 -464
  54. pulumi_newrelic/notification_destination.py +238 -141
  55. pulumi_newrelic/nrql_alert_condition.py +820 -614
  56. pulumi_newrelic/nrql_drop_rule.py +113 -151
  57. pulumi_newrelic/obfuscation_expression.py +80 -76
  58. pulumi_newrelic/obfuscation_rule.py +115 -109
  59. pulumi_newrelic/one_dashboard.py +110 -104
  60. pulumi_newrelic/one_dashboard_json.py +69 -63
  61. pulumi_newrelic/one_dashboard_raw.py +212 -206
  62. pulumi_newrelic/outputs.py +4936 -2234
  63. pulumi_newrelic/pipeline_cloud_rule.py +335 -0
  64. pulumi_newrelic/plugins/__init__.py +2 -1
  65. pulumi_newrelic/plugins/_inputs.py +519 -89
  66. pulumi_newrelic/plugins/application_settings.py +463 -187
  67. pulumi_newrelic/plugins/outputs.py +336 -74
  68. pulumi_newrelic/plugins/workload.py +313 -189
  69. pulumi_newrelic/provider.py +156 -142
  70. pulumi_newrelic/pulumi-plugin.json +2 -1
  71. pulumi_newrelic/service_level.py +263 -263
  72. pulumi_newrelic/synthetics/__init__.py +2 -1
  73. pulumi_newrelic/synthetics/_inputs.py +265 -108
  74. pulumi_newrelic/synthetics/alert_condition.py +170 -180
  75. pulumi_newrelic/synthetics/broken_links_monitor.py +297 -249
  76. pulumi_newrelic/synthetics/cert_check_monitor.py +306 -258
  77. pulumi_newrelic/synthetics/get_private_location.py +51 -47
  78. pulumi_newrelic/synthetics/get_secure_credential.py +39 -31
  79. pulumi_newrelic/synthetics/monitor.py +658 -460
  80. pulumi_newrelic/synthetics/multi_location_alert_condition.py +211 -205
  81. pulumi_newrelic/synthetics/outputs.py +92 -87
  82. pulumi_newrelic/synthetics/private_location.py +118 -112
  83. pulumi_newrelic/synthetics/script_monitor.py +613 -373
  84. pulumi_newrelic/synthetics/secure_credential.py +97 -95
  85. pulumi_newrelic/synthetics/step_monitor.py +445 -275
  86. pulumi_newrelic/user.py +84 -80
  87. pulumi_newrelic/workflow.py +336 -322
  88. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +7 -6
  89. pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
  90. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
  91. pulumi_newrelic-5.22.0.dist-info/RECORD +0 -89
  92. {pulumi_newrelic-5.22.0.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 the Pulumi Terraform Bridge (tfgen) Tool. ***
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 copy
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__ = ['AwsGovcloudLinkAccountArgs', 'AwsGovcloudLinkAccount']
@@ -14,24 +19,21 @@ __all__ = ['AwsGovcloudLinkAccountArgs', 'AwsGovcloudLinkAccount']
14
19
  @pulumi.input_type
15
20
  class AwsGovcloudLinkAccountArgs:
16
21
  def __init__(__self__, *,
17
- access_key_id: pulumi.Input[str],
18
- aws_account_id: pulumi.Input[str],
19
- secret_access_key: pulumi.Input[str],
20
- account_id: Optional[pulumi.Input[int]] = None,
21
- metric_collection_mode: Optional[pulumi.Input[str]] = None,
22
- 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):
23
26
  """
24
27
  The set of arguments for constructing a AwsGovcloudLinkAccount resource.
25
- :param pulumi.Input[str] access_key_id: The access key of the AwsGovCloud.
26
- :param pulumi.Input[str] aws_account_id: The AwsGovCloud account ID.
27
- :param pulumi.Input[str] secret_access_key: The secret key of the AwsGovCloud.
28
- :param pulumi.Input[int] 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`.
29
- :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.
30
- :param pulumi.Input[str] name: The linked account name
31
- """
32
- pulumi.set(__self__, "access_key_id", access_key_id)
33
- pulumi.set(__self__, "aws_account_id", aws_account_id)
34
- pulumi.set(__self__, "secret_access_key", secret_access_key)
28
+ :param pulumi.Input[_builtins.str] arn: The Amazon Resource Name (ARN) of the IAM role.
29
+
30
+ > **NOTE:** Altering the `account_id` (or) `metric_collection_mode` of an already applied `cloud.AwsGovcloudLinkAccount` resource shall trigger a recreation of the resource, instead of an update.
31
+ :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`, if not specified in the configuration.
32
+ :param pulumi.Input[_builtins.str] metric_collection_mode: The mode by which metric data is to be collected from the linked AWS GovCloud account. Defaults to `PULL`, if not specified in the configuration.
33
+ - Use `PUSH` for Metric Streams and `PULL` for API Polling based metric collection respectively.
34
+ :param pulumi.Input[_builtins.str] name: The name/identifier of the AWS GovCloud - New Relic 'linked' account.
35
+ """
36
+ pulumi.set(__self__, "arn", arn)
35
37
  if account_id is not None:
36
38
  pulumi.set(__self__, "account_id", account_id)
37
39
  if metric_collection_mode is not None:
@@ -39,227 +41,172 @@ class AwsGovcloudLinkAccountArgs:
39
41
  if name is not None:
40
42
  pulumi.set(__self__, "name", name)
41
43
 
42
- @property
43
- @pulumi.getter(name="accessKeyId")
44
- def access_key_id(self) -> pulumi.Input[str]:
45
- """
46
- The access key of the AwsGovCloud.
47
- """
48
- return pulumi.get(self, "access_key_id")
49
-
50
- @access_key_id.setter
51
- def access_key_id(self, value: pulumi.Input[str]):
52
- pulumi.set(self, "access_key_id", value)
53
-
54
- @property
55
- @pulumi.getter(name="awsAccountId")
56
- def aws_account_id(self) -> pulumi.Input[str]:
57
- """
58
- The AwsGovCloud account ID.
44
+ @_builtins.property
45
+ @pulumi.getter
46
+ def arn(self) -> pulumi.Input[_builtins.str]:
59
47
  """
60
- return pulumi.get(self, "aws_account_id")
48
+ The Amazon Resource Name (ARN) of the IAM role.
61
49
 
62
- @aws_account_id.setter
63
- def aws_account_id(self, value: pulumi.Input[str]):
64
- pulumi.set(self, "aws_account_id", value)
65
-
66
- @property
67
- @pulumi.getter(name="secretAccessKey")
68
- def secret_access_key(self) -> pulumi.Input[str]:
69
- """
70
- The secret key of the AwsGovCloud.
50
+ > **NOTE:** Altering the `account_id` (or) `metric_collection_mode` of an already applied `cloud.AwsGovcloudLinkAccount` resource shall trigger a recreation of the resource, instead of an update.
71
51
  """
72
- return pulumi.get(self, "secret_access_key")
52
+ return pulumi.get(self, "arn")
73
53
 
74
- @secret_access_key.setter
75
- def secret_access_key(self, value: pulumi.Input[str]):
76
- pulumi.set(self, "secret_access_key", value)
54
+ @arn.setter
55
+ def arn(self, value: pulumi.Input[_builtins.str]):
56
+ pulumi.set(self, "arn", value)
77
57
 
78
- @property
58
+ @_builtins.property
79
59
  @pulumi.getter(name="accountId")
80
- def account_id(self) -> Optional[pulumi.Input[int]]:
60
+ def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
81
61
  """
82
- 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`.
62
+ 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`, if not specified in the configuration.
83
63
  """
84
64
  return pulumi.get(self, "account_id")
85
65
 
86
66
  @account_id.setter
87
- def account_id(self, value: Optional[pulumi.Input[int]]):
67
+ def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
88
68
  pulumi.set(self, "account_id", value)
89
69
 
90
- @property
70
+ @_builtins.property
91
71
  @pulumi.getter(name="metricCollectionMode")
92
- def metric_collection_mode(self) -> Optional[pulumi.Input[str]]:
72
+ def metric_collection_mode(self) -> Optional[pulumi.Input[_builtins.str]]:
93
73
  """
94
- How metrics will be collected. Use `PUSH` for a metric stream or `PULL` to integrate with individual services.
74
+ The mode by which metric data is to be collected from the linked AWS GovCloud account. Defaults to `PULL`, if not specified in the configuration.
75
+ - Use `PUSH` for Metric Streams and `PULL` for API Polling based metric collection respectively.
95
76
  """
96
77
  return pulumi.get(self, "metric_collection_mode")
97
78
 
98
79
  @metric_collection_mode.setter
99
- def metric_collection_mode(self, value: Optional[pulumi.Input[str]]):
80
+ def metric_collection_mode(self, value: Optional[pulumi.Input[_builtins.str]]):
100
81
  pulumi.set(self, "metric_collection_mode", value)
101
82
 
102
- @property
83
+ @_builtins.property
103
84
  @pulumi.getter
104
- def name(self) -> Optional[pulumi.Input[str]]:
85
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
105
86
  """
106
- The linked account name
87
+ The name/identifier of the AWS GovCloud - New Relic 'linked' account.
107
88
  """
108
89
  return pulumi.get(self, "name")
109
90
 
110
91
  @name.setter
111
- def name(self, value: Optional[pulumi.Input[str]]):
92
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
112
93
  pulumi.set(self, "name", value)
113
94
 
114
95
 
115
96
  @pulumi.input_type
116
97
  class _AwsGovcloudLinkAccountState:
117
98
  def __init__(__self__, *,
118
- access_key_id: Optional[pulumi.Input[str]] = None,
119
- account_id: Optional[pulumi.Input[int]] = None,
120
- aws_account_id: Optional[pulumi.Input[str]] = None,
121
- metric_collection_mode: Optional[pulumi.Input[str]] = None,
122
- name: Optional[pulumi.Input[str]] = None,
123
- secret_access_key: Optional[pulumi.Input[str]] = None):
99
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
100
+ arn: Optional[pulumi.Input[_builtins.str]] = None,
101
+ metric_collection_mode: Optional[pulumi.Input[_builtins.str]] = None,
102
+ name: Optional[pulumi.Input[_builtins.str]] = None):
124
103
  """
125
104
  Input properties used for looking up and filtering AwsGovcloudLinkAccount resources.
126
- :param pulumi.Input[str] access_key_id: The access key of the AwsGovCloud.
127
- :param pulumi.Input[int] 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`.
128
- :param pulumi.Input[str] aws_account_id: The AwsGovCloud account ID.
129
- :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.
130
- :param pulumi.Input[str] name: The linked account name
131
- :param pulumi.Input[str] secret_access_key: The secret key of the AwsGovCloud.
132
- """
133
- if access_key_id is not None:
134
- pulumi.set(__self__, "access_key_id", access_key_id)
105
+ :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`, if not specified in the configuration.
106
+ :param pulumi.Input[_builtins.str] arn: The Amazon Resource Name (ARN) of the IAM role.
107
+
108
+ > **NOTE:** Altering the `account_id` (or) `metric_collection_mode` of an already applied `cloud.AwsGovcloudLinkAccount` resource shall trigger a recreation of the resource, instead of an update.
109
+ :param pulumi.Input[_builtins.str] metric_collection_mode: The mode by which metric data is to be collected from the linked AWS GovCloud account. Defaults to `PULL`, if not specified in the configuration.
110
+ - Use `PUSH` for Metric Streams and `PULL` for API Polling based metric collection respectively.
111
+ :param pulumi.Input[_builtins.str] name: The name/identifier of the AWS GovCloud - New Relic 'linked' account.
112
+ """
135
113
  if account_id is not None:
136
114
  pulumi.set(__self__, "account_id", account_id)
137
- if aws_account_id is not None:
138
- pulumi.set(__self__, "aws_account_id", aws_account_id)
115
+ if arn is not None:
116
+ pulumi.set(__self__, "arn", arn)
139
117
  if metric_collection_mode is not None:
140
118
  pulumi.set(__self__, "metric_collection_mode", metric_collection_mode)
141
119
  if name is not None:
142
120
  pulumi.set(__self__, "name", name)
143
- if secret_access_key is not None:
144
- pulumi.set(__self__, "secret_access_key", secret_access_key)
145
-
146
- @property
147
- @pulumi.getter(name="accessKeyId")
148
- def access_key_id(self) -> Optional[pulumi.Input[str]]:
149
- """
150
- The access key of the AwsGovCloud.
151
- """
152
- return pulumi.get(self, "access_key_id")
153
121
 
154
- @access_key_id.setter
155
- def access_key_id(self, value: Optional[pulumi.Input[str]]):
156
- pulumi.set(self, "access_key_id", value)
157
-
158
- @property
122
+ @_builtins.property
159
123
  @pulumi.getter(name="accountId")
160
- def account_id(self) -> Optional[pulumi.Input[int]]:
124
+ def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
161
125
  """
162
- 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`.
126
+ 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`, if not specified in the configuration.
163
127
  """
164
128
  return pulumi.get(self, "account_id")
165
129
 
166
130
  @account_id.setter
167
- def account_id(self, value: Optional[pulumi.Input[int]]):
131
+ def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
168
132
  pulumi.set(self, "account_id", value)
169
133
 
170
- @property
171
- @pulumi.getter(name="awsAccountId")
172
- def aws_account_id(self) -> Optional[pulumi.Input[str]]:
134
+ @_builtins.property
135
+ @pulumi.getter
136
+ def arn(self) -> Optional[pulumi.Input[_builtins.str]]:
173
137
  """
174
- The AwsGovCloud account ID.
138
+ The Amazon Resource Name (ARN) of the IAM role.
139
+
140
+ > **NOTE:** Altering the `account_id` (or) `metric_collection_mode` of an already applied `cloud.AwsGovcloudLinkAccount` resource shall trigger a recreation of the resource, instead of an update.
175
141
  """
176
- return pulumi.get(self, "aws_account_id")
142
+ return pulumi.get(self, "arn")
177
143
 
178
- @aws_account_id.setter
179
- def aws_account_id(self, value: Optional[pulumi.Input[str]]):
180
- pulumi.set(self, "aws_account_id", value)
144
+ @arn.setter
145
+ def arn(self, value: Optional[pulumi.Input[_builtins.str]]):
146
+ pulumi.set(self, "arn", value)
181
147
 
182
- @property
148
+ @_builtins.property
183
149
  @pulumi.getter(name="metricCollectionMode")
184
- def metric_collection_mode(self) -> Optional[pulumi.Input[str]]:
150
+ def metric_collection_mode(self) -> Optional[pulumi.Input[_builtins.str]]:
185
151
  """
186
- How metrics will be collected. Use `PUSH` for a metric stream or `PULL` to integrate with individual services.
152
+ The mode by which metric data is to be collected from the linked AWS GovCloud account. Defaults to `PULL`, if not specified in the configuration.
153
+ - Use `PUSH` for Metric Streams and `PULL` for API Polling based metric collection respectively.
187
154
  """
188
155
  return pulumi.get(self, "metric_collection_mode")
189
156
 
190
157
  @metric_collection_mode.setter
191
- def metric_collection_mode(self, value: Optional[pulumi.Input[str]]):
158
+ def metric_collection_mode(self, value: Optional[pulumi.Input[_builtins.str]]):
192
159
  pulumi.set(self, "metric_collection_mode", value)
193
160
 
194
- @property
161
+ @_builtins.property
195
162
  @pulumi.getter
196
- def name(self) -> Optional[pulumi.Input[str]]:
163
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
197
164
  """
198
- The linked account name
165
+ The name/identifier of the AWS GovCloud - New Relic 'linked' account.
199
166
  """
200
167
  return pulumi.get(self, "name")
201
168
 
202
169
  @name.setter
203
- def name(self, value: Optional[pulumi.Input[str]]):
170
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
204
171
  pulumi.set(self, "name", value)
205
172
 
206
- @property
207
- @pulumi.getter(name="secretAccessKey")
208
- def secret_access_key(self) -> Optional[pulumi.Input[str]]:
209
- """
210
- The secret key of the AwsGovCloud.
211
- """
212
- return pulumi.get(self, "secret_access_key")
213
-
214
- @secret_access_key.setter
215
- def secret_access_key(self, value: Optional[pulumi.Input[str]]):
216
- pulumi.set(self, "secret_access_key", value)
217
-
218
173
 
174
+ @pulumi.type_token("newrelic:cloud/awsGovcloudLinkAccount:AwsGovcloudLinkAccount")
219
175
  class AwsGovcloudLinkAccount(pulumi.CustomResource):
220
176
  @overload
221
177
  def __init__(__self__,
222
178
  resource_name: str,
223
179
  opts: Optional[pulumi.ResourceOptions] = None,
224
- access_key_id: Optional[pulumi.Input[str]] = None,
225
- account_id: Optional[pulumi.Input[int]] = None,
226
- aws_account_id: Optional[pulumi.Input[str]] = None,
227
- metric_collection_mode: Optional[pulumi.Input[str]] = None,
228
- name: Optional[pulumi.Input[str]] = None,
229
- secret_access_key: Optional[pulumi.Input[str]] = None,
180
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
181
+ arn: Optional[pulumi.Input[_builtins.str]] = None,
182
+ metric_collection_mode: Optional[pulumi.Input[_builtins.str]] = None,
183
+ name: Optional[pulumi.Input[_builtins.str]] = None,
230
184
  __props__=None):
231
185
  """
232
- > **IMPORTANT!** This resource is in alpha state, and could still contain issues and missing functionality. If you encounter any issue please create a ticket on Github with all the required information.
233
-
234
- Use this resource to link an AWSGovCloud account to New Relic.
186
+ Use this resource to link an AWS GovCloud account to New Relic.
235
187
 
236
188
  ## Prerequisite
237
189
 
238
- Obtain the AwsGovCloud account designed to address the specific regulatory needs of United States (federal, state, and local agencies), education institutions, and the supporting ecosystem.
190
+ To link an AWS GovCloud account to New Relic, you need an AWS GovCloud account. AWS GovCloud is designed to address the specific regulatory needs of United States federal, state, and local agencies, educational institutions, and their supporting ecosystem. It is an isolated AWS region designed to host sensitive data and regulated workloads in the cloud, helping customers support their US government compliance requirements.
239
191
 
240
- It is an isolated AWS region designed to host sensitive data and regulated workloads in the cloud, helping customers support their US government compliance requirements.
241
-
242
- To pull data from AWSGovCloud, complete the [steps outlined here](https://docs.newrelic.com/docs/infrastructure/amazon-integrations/get-started/connect-aws-govcloud-new-relic).
192
+ To pull data from AWS GovCloud, follow the [steps outlined here](https://docs.newrelic.com/docs/infrastructure/amazon-integrations/get-started/connect-aws-govcloud-new-relic).
243
193
 
244
194
  ## Example Usage
245
195
 
246
- <!--Start PulumiCodeChooser -->
247
196
  ```python
248
197
  import pulumi
249
198
  import pulumi_newrelic as newrelic
250
199
 
251
200
  foo = newrelic.cloud.AwsGovcloudLinkAccount("foo",
252
- access_key_id="access-key-id of aws govcloud account",
253
- account_id="The New Relic account ID where you want to link the AWS GovCloud account",
254
- aws_account_id="aws govcloud account id",
255
- metric_collection_mode="PULL",
256
- secret_access_key="secret access key of the aws govcloud account")
201
+ account_id="1234567",
202
+ name="My New Relic - AWS GovCloud Linked Account",
203
+ metric_collection_mode="PUSH",
204
+ arn="arn:aws:service:region:account-id:resource-id")
257
205
  ```
258
- <!--End PulumiCodeChooser -->
259
206
 
260
207
  ## Import
261
208
 
262
- Linked AWSGovCloud accounts can be imported using the `id`, e.g.
209
+ Linked AWS GovCloud accounts can be imported using the `id`, e.g.
263
210
 
264
211
  bash
265
212
 
@@ -269,12 +216,13 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
269
216
 
270
217
  :param str resource_name: The name of the resource.
271
218
  :param pulumi.ResourceOptions opts: Options for the resource.
272
- :param pulumi.Input[str] access_key_id: The access key of the AwsGovCloud.
273
- :param pulumi.Input[int] 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`.
274
- :param pulumi.Input[str] aws_account_id: The AwsGovCloud account ID.
275
- :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.
276
- :param pulumi.Input[str] name: The linked account name
277
- :param pulumi.Input[str] secret_access_key: The secret key of the AwsGovCloud.
219
+ :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`, if not specified in the configuration.
220
+ :param pulumi.Input[_builtins.str] arn: The Amazon Resource Name (ARN) of the IAM role.
221
+
222
+ > **NOTE:** Altering the `account_id` (or) `metric_collection_mode` of an already applied `cloud.AwsGovcloudLinkAccount` resource shall trigger a recreation of the resource, instead of an update.
223
+ :param pulumi.Input[_builtins.str] metric_collection_mode: The mode by which metric data is to be collected from the linked AWS GovCloud account. Defaults to `PULL`, if not specified in the configuration.
224
+ - Use `PUSH` for Metric Streams and `PULL` for API Polling based metric collection respectively.
225
+ :param pulumi.Input[_builtins.str] name: The name/identifier of the AWS GovCloud - New Relic 'linked' account.
278
226
  """
279
227
  ...
280
228
  @overload
@@ -283,37 +231,30 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
283
231
  args: AwsGovcloudLinkAccountArgs,
284
232
  opts: Optional[pulumi.ResourceOptions] = None):
285
233
  """
286
- > **IMPORTANT!** This resource is in alpha state, and could still contain issues and missing functionality. If you encounter any issue please create a ticket on Github with all the required information.
287
-
288
- Use this resource to link an AWSGovCloud account to New Relic.
234
+ Use this resource to link an AWS GovCloud account to New Relic.
289
235
 
290
236
  ## Prerequisite
291
237
 
292
- Obtain the AwsGovCloud account designed to address the specific regulatory needs of United States (federal, state, and local agencies), education institutions, and the supporting ecosystem.
238
+ To link an AWS GovCloud account to New Relic, you need an AWS GovCloud account. AWS GovCloud is designed to address the specific regulatory needs of United States federal, state, and local agencies, educational institutions, and their supporting ecosystem. It is an isolated AWS region designed to host sensitive data and regulated workloads in the cloud, helping customers support their US government compliance requirements.
293
239
 
294
- It is an isolated AWS region designed to host sensitive data and regulated workloads in the cloud, helping customers support their US government compliance requirements.
295
-
296
- To pull data from AWSGovCloud, complete the [steps outlined here](https://docs.newrelic.com/docs/infrastructure/amazon-integrations/get-started/connect-aws-govcloud-new-relic).
240
+ To pull data from AWS GovCloud, follow the [steps outlined here](https://docs.newrelic.com/docs/infrastructure/amazon-integrations/get-started/connect-aws-govcloud-new-relic).
297
241
 
298
242
  ## Example Usage
299
243
 
300
- <!--Start PulumiCodeChooser -->
301
244
  ```python
302
245
  import pulumi
303
246
  import pulumi_newrelic as newrelic
304
247
 
305
248
  foo = newrelic.cloud.AwsGovcloudLinkAccount("foo",
306
- access_key_id="access-key-id of aws govcloud account",
307
- account_id="The New Relic account ID where you want to link the AWS GovCloud account",
308
- aws_account_id="aws govcloud account id",
309
- metric_collection_mode="PULL",
310
- secret_access_key="secret access key of the aws govcloud account")
249
+ account_id="1234567",
250
+ name="My New Relic - AWS GovCloud Linked Account",
251
+ metric_collection_mode="PUSH",
252
+ arn="arn:aws:service:region:account-id:resource-id")
311
253
  ```
312
- <!--End PulumiCodeChooser -->
313
254
 
314
255
  ## Import
315
256
 
316
- Linked AWSGovCloud accounts can be imported using the `id`, e.g.
257
+ Linked AWS GovCloud accounts can be imported using the `id`, e.g.
317
258
 
318
259
  bash
319
260
 
@@ -336,12 +277,10 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
336
277
  def _internal_init(__self__,
337
278
  resource_name: str,
338
279
  opts: Optional[pulumi.ResourceOptions] = None,
339
- access_key_id: Optional[pulumi.Input[str]] = None,
340
- account_id: Optional[pulumi.Input[int]] = None,
341
- aws_account_id: Optional[pulumi.Input[str]] = None,
342
- metric_collection_mode: Optional[pulumi.Input[str]] = None,
343
- name: Optional[pulumi.Input[str]] = None,
344
- secret_access_key: Optional[pulumi.Input[str]] = None,
280
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
281
+ arn: Optional[pulumi.Input[_builtins.str]] = None,
282
+ metric_collection_mode: Optional[pulumi.Input[_builtins.str]] = None,
283
+ name: Optional[pulumi.Input[_builtins.str]] = None,
345
284
  __props__=None):
346
285
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
347
286
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -351,20 +290,12 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
351
290
  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
352
291
  __props__ = AwsGovcloudLinkAccountArgs.__new__(AwsGovcloudLinkAccountArgs)
353
292
 
354
- if access_key_id is None and not opts.urn:
355
- raise TypeError("Missing required property 'access_key_id'")
356
- __props__.__dict__["access_key_id"] = None if access_key_id is None else pulumi.Output.secret(access_key_id)
357
293
  __props__.__dict__["account_id"] = account_id
358
- if aws_account_id is None and not opts.urn:
359
- raise TypeError("Missing required property 'aws_account_id'")
360
- __props__.__dict__["aws_account_id"] = aws_account_id
294
+ if arn is None and not opts.urn:
295
+ raise TypeError("Missing required property 'arn'")
296
+ __props__.__dict__["arn"] = arn
361
297
  __props__.__dict__["metric_collection_mode"] = metric_collection_mode
362
298
  __props__.__dict__["name"] = name
363
- if secret_access_key is None and not opts.urn:
364
- raise TypeError("Missing required property 'secret_access_key'")
365
- __props__.__dict__["secret_access_key"] = None if secret_access_key is None else pulumi.Output.secret(secret_access_key)
366
- secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["accessKeyId", "secretAccessKey"])
367
- opts = pulumi.ResourceOptions.merge(opts, secret_opts)
368
299
  super(AwsGovcloudLinkAccount, __self__).__init__(
369
300
  'newrelic:cloud/awsGovcloudLinkAccount:AwsGovcloudLinkAccount',
370
301
  resource_name,
@@ -375,12 +306,10 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
375
306
  def get(resource_name: str,
376
307
  id: pulumi.Input[str],
377
308
  opts: Optional[pulumi.ResourceOptions] = None,
378
- access_key_id: Optional[pulumi.Input[str]] = None,
379
- account_id: Optional[pulumi.Input[int]] = None,
380
- aws_account_id: Optional[pulumi.Input[str]] = None,
381
- metric_collection_mode: Optional[pulumi.Input[str]] = None,
382
- name: Optional[pulumi.Input[str]] = None,
383
- secret_access_key: Optional[pulumi.Input[str]] = None) -> 'AwsGovcloudLinkAccount':
309
+ account_id: Optional[pulumi.Input[_builtins.str]] = None,
310
+ arn: Optional[pulumi.Input[_builtins.str]] = None,
311
+ metric_collection_mode: Optional[pulumi.Input[_builtins.str]] = None,
312
+ name: Optional[pulumi.Input[_builtins.str]] = None) -> 'AwsGovcloudLinkAccount':
384
313
  """
385
314
  Get an existing AwsGovcloudLinkAccount resource's state with the given name, id, and optional extra
386
315
  properties used to qualify the lookup.
@@ -388,70 +317,56 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
388
317
  :param str resource_name: The unique name of the resulting resource.
389
318
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
390
319
  :param pulumi.ResourceOptions opts: Options for the resource.
391
- :param pulumi.Input[str] access_key_id: The access key of the AwsGovCloud.
392
- :param pulumi.Input[int] 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`.
393
- :param pulumi.Input[str] aws_account_id: The AwsGovCloud account ID.
394
- :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.
395
- :param pulumi.Input[str] name: The linked account name
396
- :param pulumi.Input[str] secret_access_key: The secret key of the AwsGovCloud.
320
+ :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`, if not specified in the configuration.
321
+ :param pulumi.Input[_builtins.str] arn: The Amazon Resource Name (ARN) of the IAM role.
322
+
323
+ > **NOTE:** Altering the `account_id` (or) `metric_collection_mode` of an already applied `cloud.AwsGovcloudLinkAccount` resource shall trigger a recreation of the resource, instead of an update.
324
+ :param pulumi.Input[_builtins.str] metric_collection_mode: The mode by which metric data is to be collected from the linked AWS GovCloud account. Defaults to `PULL`, if not specified in the configuration.
325
+ - Use `PUSH` for Metric Streams and `PULL` for API Polling based metric collection respectively.
326
+ :param pulumi.Input[_builtins.str] name: The name/identifier of the AWS GovCloud - New Relic 'linked' account.
397
327
  """
398
328
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
399
329
 
400
330
  __props__ = _AwsGovcloudLinkAccountState.__new__(_AwsGovcloudLinkAccountState)
401
331
 
402
- __props__.__dict__["access_key_id"] = access_key_id
403
332
  __props__.__dict__["account_id"] = account_id
404
- __props__.__dict__["aws_account_id"] = aws_account_id
333
+ __props__.__dict__["arn"] = arn
405
334
  __props__.__dict__["metric_collection_mode"] = metric_collection_mode
406
335
  __props__.__dict__["name"] = name
407
- __props__.__dict__["secret_access_key"] = secret_access_key
408
336
  return AwsGovcloudLinkAccount(resource_name, opts=opts, __props__=__props__)
409
337
 
410
- @property
411
- @pulumi.getter(name="accessKeyId")
412
- def access_key_id(self) -> pulumi.Output[str]:
413
- """
414
- The access key of the AwsGovCloud.
415
- """
416
- return pulumi.get(self, "access_key_id")
417
-
418
- @property
338
+ @_builtins.property
419
339
  @pulumi.getter(name="accountId")
420
- def account_id(self) -> pulumi.Output[int]:
340
+ def account_id(self) -> pulumi.Output[_builtins.str]:
421
341
  """
422
- 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`.
342
+ 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`, if not specified in the configuration.
423
343
  """
424
344
  return pulumi.get(self, "account_id")
425
345
 
426
- @property
427
- @pulumi.getter(name="awsAccountId")
428
- def aws_account_id(self) -> pulumi.Output[str]:
346
+ @_builtins.property
347
+ @pulumi.getter
348
+ def arn(self) -> pulumi.Output[_builtins.str]:
429
349
  """
430
- The AwsGovCloud account ID.
350
+ The Amazon Resource Name (ARN) of the IAM role.
351
+
352
+ > **NOTE:** Altering the `account_id` (or) `metric_collection_mode` of an already applied `cloud.AwsGovcloudLinkAccount` resource shall trigger a recreation of the resource, instead of an update.
431
353
  """
432
- return pulumi.get(self, "aws_account_id")
354
+ return pulumi.get(self, "arn")
433
355
 
434
- @property
356
+ @_builtins.property
435
357
  @pulumi.getter(name="metricCollectionMode")
436
- def metric_collection_mode(self) -> pulumi.Output[Optional[str]]:
358
+ def metric_collection_mode(self) -> pulumi.Output[Optional[_builtins.str]]:
437
359
  """
438
- How metrics will be collected. Use `PUSH` for a metric stream or `PULL` to integrate with individual services.
360
+ The mode by which metric data is to be collected from the linked AWS GovCloud account. Defaults to `PULL`, if not specified in the configuration.
361
+ - Use `PUSH` for Metric Streams and `PULL` for API Polling based metric collection respectively.
439
362
  """
440
363
  return pulumi.get(self, "metric_collection_mode")
441
364
 
442
- @property
365
+ @_builtins.property
443
366
  @pulumi.getter
444
- def name(self) -> pulumi.Output[str]:
367
+ def name(self) -> pulumi.Output[_builtins.str]:
445
368
  """
446
- The linked account name
369
+ The name/identifier of the AWS GovCloud - New Relic 'linked' account.
447
370
  """
448
371
  return pulumi.get(self, "name")
449
372
 
450
- @property
451
- @pulumi.getter(name="secretAccessKey")
452
- def secret_access_key(self) -> pulumi.Output[str]:
453
- """
454
- The secret key of the AwsGovCloud.
455
- """
456
- return pulumi.get(self, "secret_access_key")
457
-