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.

Files changed (92) hide show
  1. pulumi_newrelic/__init__.py +58 -1
  2. pulumi_newrelic/_inputs.py +10772 -2775
  3. pulumi_newrelic/_utilities.py +92 -11
  4. pulumi_newrelic/account_management.py +56 -42
  5. pulumi_newrelic/alert_channel.py +177 -151
  6. pulumi_newrelic/alert_condition.py +313 -301
  7. pulumi_newrelic/alert_muting_rule.py +195 -138
  8. pulumi_newrelic/alert_policy.py +157 -109
  9. pulumi_newrelic/alert_policy_channel.py +95 -81
  10. pulumi_newrelic/api_access_key.py +191 -209
  11. pulumi_newrelic/browser_application.py +161 -153
  12. pulumi_newrelic/cloud/__init__.py +3 -1
  13. pulumi_newrelic/cloud/_inputs.py +4267 -2710
  14. pulumi_newrelic/cloud/aws_govcloud_integrations.py +238 -200
  15. pulumi_newrelic/cloud/aws_govcloud_link_account.py +159 -212
  16. pulumi_newrelic/cloud/aws_integrations.py +518 -1490
  17. pulumi_newrelic/cloud/aws_link_account.py +88 -76
  18. pulumi_newrelic/cloud/azure_integrations.py +681 -587
  19. pulumi_newrelic/cloud/azure_link_account.py +129 -117
  20. pulumi_newrelic/cloud/gcp_integrations.py +436 -408
  21. pulumi_newrelic/cloud/gcp_link_account.py +71 -59
  22. pulumi_newrelic/cloud/oci_link_account.py +926 -0
  23. pulumi_newrelic/cloud/outputs.py +1678 -2317
  24. pulumi_newrelic/config/__init__.py +2 -1
  25. pulumi_newrelic/config/__init__.pyi +45 -0
  26. pulumi_newrelic/config/vars.py +22 -17
  27. pulumi_newrelic/data_partition_rule.py +129 -117
  28. pulumi_newrelic/entity_tags.py +153 -31
  29. pulumi_newrelic/events_to_metrics_rule.py +114 -102
  30. pulumi_newrelic/get_account.py +41 -29
  31. pulumi_newrelic/get_alert_channel.py +73 -28
  32. pulumi_newrelic/get_alert_policy.py +83 -34
  33. pulumi_newrelic/get_application.py +51 -39
  34. pulumi_newrelic/get_authentication_domain.py +111 -0
  35. pulumi_newrelic/get_cloud_account.py +43 -31
  36. pulumi_newrelic/get_entity.py +126 -121
  37. pulumi_newrelic/get_group.py +190 -0
  38. pulumi_newrelic/get_key_transaction.py +117 -38
  39. pulumi_newrelic/get_notification_destination.py +86 -36
  40. pulumi_newrelic/get_obfuscation_expression.py +47 -35
  41. pulumi_newrelic/get_service_level_alert_helper.py +237 -137
  42. pulumi_newrelic/get_test_grok_pattern.py +47 -32
  43. pulumi_newrelic/get_user.py +165 -0
  44. pulumi_newrelic/group.py +286 -0
  45. pulumi_newrelic/infra_alert_condition.py +400 -382
  46. pulumi_newrelic/insights/__init__.py +2 -1
  47. pulumi_newrelic/insights/_inputs.py +94 -23
  48. pulumi_newrelic/insights/event.py +56 -48
  49. pulumi_newrelic/insights/outputs.py +51 -18
  50. pulumi_newrelic/key_transaction.py +465 -0
  51. pulumi_newrelic/log_parsing_rule.py +169 -153
  52. pulumi_newrelic/monitor_downtime.py +914 -0
  53. pulumi_newrelic/notification_channel.py +560 -418
  54. pulumi_newrelic/notification_destination.py +379 -124
  55. pulumi_newrelic/nrql_alert_condition.py +945 -513
  56. pulumi_newrelic/nrql_drop_rule.py +121 -129
  57. pulumi_newrelic/obfuscation_expression.py +88 -76
  58. pulumi_newrelic/obfuscation_rule.py +123 -109
  59. pulumi_newrelic/one_dashboard.py +118 -108
  60. pulumi_newrelic/one_dashboard_json.py +77 -67
  61. pulumi_newrelic/one_dashboard_raw.py +214 -202
  62. pulumi_newrelic/outputs.py +5491 -2141
  63. pulumi_newrelic/pipeline_cloud_rule.py +335 -0
  64. pulumi_newrelic/plugins/__init__.py +2 -1
  65. pulumi_newrelic/plugins/_inputs.py +520 -90
  66. pulumi_newrelic/plugins/application_settings.py +463 -167
  67. pulumi_newrelic/plugins/outputs.py +337 -75
  68. pulumi_newrelic/plugins/workload.py +387 -151
  69. pulumi_newrelic/provider.py +156 -142
  70. pulumi_newrelic/pulumi-plugin.json +2 -1
  71. pulumi_newrelic/service_level.py +277 -255
  72. pulumi_newrelic/synthetics/__init__.py +2 -1
  73. pulumi_newrelic/synthetics/_inputs.py +275 -106
  74. pulumi_newrelic/synthetics/alert_condition.py +174 -160
  75. pulumi_newrelic/synthetics/broken_links_monitor.py +367 -207
  76. pulumi_newrelic/synthetics/cert_check_monitor.py +380 -218
  77. pulumi_newrelic/synthetics/get_private_location.py +51 -39
  78. pulumi_newrelic/synthetics/get_secure_credential.py +39 -27
  79. pulumi_newrelic/synthetics/monitor.py +668 -462
  80. pulumi_newrelic/synthetics/multi_location_alert_condition.py +219 -201
  81. pulumi_newrelic/synthetics/outputs.py +102 -85
  82. pulumi_newrelic/synthetics/private_location.py +120 -110
  83. pulumi_newrelic/synthetics/script_monitor.py +623 -375
  84. pulumi_newrelic/synthetics/secure_credential.py +99 -93
  85. pulumi_newrelic/synthetics/step_monitor.py +545 -201
  86. pulumi_newrelic/user.py +366 -0
  87. pulumi_newrelic/workflow.py +348 -312
  88. {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +8 -7
  89. pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
  90. {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
  91. pulumi_newrelic-5.16.0a1698964311.dist-info/RECORD +0 -82
  92. {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 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,196 +41,156 @@ 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")
61
-
62
- @aws_account_id.setter
63
- def aws_account_id(self, value: pulumi.Input[str]):
64
- pulumi.set(self, "aws_account_id", value)
48
+ The Amazon Resource Name (ARN) of the IAM role.
65
49
 
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
121
 
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
-
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
  """
186
+ Use this resource to link an AWS GovCloud account to New Relic.
187
+
188
+ ## Prerequisite
189
+
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.
191
+
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).
193
+
232
194
  ## Example Usage
233
195
 
234
196
  ```python
@@ -236,29 +198,31 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
236
198
  import pulumi_newrelic as newrelic
237
199
 
238
200
  foo = newrelic.cloud.AwsGovcloudLinkAccount("foo",
239
- access_key_id="access-key-id of aws govcloud account",
240
- account_id="The New Relic account ID where you want to link the AWS GovCloud account",
241
- aws_account_id="aws govcloud account id",
242
- metric_collection_mode="PULL",
243
- 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")
244
205
  ```
245
206
 
246
207
  ## Import
247
208
 
248
- Linked AWSGovCloud accounts can be imported using the `id`, e.g. bash
209
+ Linked AWS GovCloud accounts can be imported using the `id`, e.g.
210
+
211
+ bash
249
212
 
250
213
  ```sh
251
- $ pulumi import newrelic:cloud/awsGovcloudLinkAccount:AwsGovcloudLinkAccount foo <id>
214
+ $ pulumi import newrelic:cloud/awsGovcloudLinkAccount:AwsGovcloudLinkAccount foo <id>
252
215
  ```
253
216
 
254
217
  :param str resource_name: The name of the resource.
255
218
  :param pulumi.ResourceOptions opts: Options for the resource.
256
- :param pulumi.Input[str] access_key_id: The access key of the AwsGovCloud.
257
- :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`.
258
- :param pulumi.Input[str] aws_account_id: The AwsGovCloud account ID.
259
- :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.
260
- :param pulumi.Input[str] name: The linked account name
261
- :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.
262
226
  """
263
227
  ...
264
228
  @overload
@@ -267,6 +231,14 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
267
231
  args: AwsGovcloudLinkAccountArgs,
268
232
  opts: Optional[pulumi.ResourceOptions] = None):
269
233
  """
234
+ Use this resource to link an AWS GovCloud account to New Relic.
235
+
236
+ ## Prerequisite
237
+
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.
239
+
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).
241
+
270
242
  ## Example Usage
271
243
 
272
244
  ```python
@@ -274,19 +246,20 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
274
246
  import pulumi_newrelic as newrelic
275
247
 
276
248
  foo = newrelic.cloud.AwsGovcloudLinkAccount("foo",
277
- access_key_id="access-key-id of aws govcloud account",
278
- account_id="The New Relic account ID where you want to link the AWS GovCloud account",
279
- aws_account_id="aws govcloud account id",
280
- metric_collection_mode="PULL",
281
- 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")
282
253
  ```
283
254
 
284
255
  ## Import
285
256
 
286
- Linked AWSGovCloud accounts can be imported using the `id`, e.g. bash
257
+ Linked AWS GovCloud accounts can be imported using the `id`, e.g.
258
+
259
+ bash
287
260
 
288
261
  ```sh
289
- $ pulumi import newrelic:cloud/awsGovcloudLinkAccount:AwsGovcloudLinkAccount foo <id>
262
+ $ pulumi import newrelic:cloud/awsGovcloudLinkAccount:AwsGovcloudLinkAccount foo <id>
290
263
  ```
291
264
 
292
265
  :param str resource_name: The name of the resource.
@@ -304,12 +277,10 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
304
277
  def _internal_init(__self__,
305
278
  resource_name: str,
306
279
  opts: Optional[pulumi.ResourceOptions] = None,
307
- access_key_id: Optional[pulumi.Input[str]] = None,
308
- account_id: Optional[pulumi.Input[int]] = None,
309
- aws_account_id: Optional[pulumi.Input[str]] = None,
310
- metric_collection_mode: Optional[pulumi.Input[str]] = None,
311
- name: Optional[pulumi.Input[str]] = None,
312
- 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,
313
284
  __props__=None):
314
285
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
315
286
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -319,20 +290,12 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
319
290
  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
320
291
  __props__ = AwsGovcloudLinkAccountArgs.__new__(AwsGovcloudLinkAccountArgs)
321
292
 
322
- if access_key_id is None and not opts.urn:
323
- raise TypeError("Missing required property 'access_key_id'")
324
- __props__.__dict__["access_key_id"] = None if access_key_id is None else pulumi.Output.secret(access_key_id)
325
293
  __props__.__dict__["account_id"] = account_id
326
- if aws_account_id is None and not opts.urn:
327
- raise TypeError("Missing required property 'aws_account_id'")
328
- __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
329
297
  __props__.__dict__["metric_collection_mode"] = metric_collection_mode
330
298
  __props__.__dict__["name"] = name
331
- if secret_access_key is None and not opts.urn:
332
- raise TypeError("Missing required property 'secret_access_key'")
333
- __props__.__dict__["secret_access_key"] = None if secret_access_key is None else pulumi.Output.secret(secret_access_key)
334
- secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["accessKeyId", "secretAccessKey"])
335
- opts = pulumi.ResourceOptions.merge(opts, secret_opts)
336
299
  super(AwsGovcloudLinkAccount, __self__).__init__(
337
300
  'newrelic:cloud/awsGovcloudLinkAccount:AwsGovcloudLinkAccount',
338
301
  resource_name,
@@ -343,12 +306,10 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
343
306
  def get(resource_name: str,
344
307
  id: pulumi.Input[str],
345
308
  opts: Optional[pulumi.ResourceOptions] = None,
346
- access_key_id: Optional[pulumi.Input[str]] = None,
347
- account_id: Optional[pulumi.Input[int]] = None,
348
- aws_account_id: Optional[pulumi.Input[str]] = None,
349
- metric_collection_mode: Optional[pulumi.Input[str]] = None,
350
- name: Optional[pulumi.Input[str]] = None,
351
- 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':
352
313
  """
353
314
  Get an existing AwsGovcloudLinkAccount resource's state with the given name, id, and optional extra
354
315
  properties used to qualify the lookup.
@@ -356,70 +317,56 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
356
317
  :param str resource_name: The unique name of the resulting resource.
357
318
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
358
319
  :param pulumi.ResourceOptions opts: Options for the resource.
359
- :param pulumi.Input[str] access_key_id: The access key of the AwsGovCloud.
360
- :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`.
361
- :param pulumi.Input[str] aws_account_id: The AwsGovCloud account ID.
362
- :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.
363
- :param pulumi.Input[str] name: The linked account name
364
- :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.
365
327
  """
366
328
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
367
329
 
368
330
  __props__ = _AwsGovcloudLinkAccountState.__new__(_AwsGovcloudLinkAccountState)
369
331
 
370
- __props__.__dict__["access_key_id"] = access_key_id
371
332
  __props__.__dict__["account_id"] = account_id
372
- __props__.__dict__["aws_account_id"] = aws_account_id
333
+ __props__.__dict__["arn"] = arn
373
334
  __props__.__dict__["metric_collection_mode"] = metric_collection_mode
374
335
  __props__.__dict__["name"] = name
375
- __props__.__dict__["secret_access_key"] = secret_access_key
376
336
  return AwsGovcloudLinkAccount(resource_name, opts=opts, __props__=__props__)
377
337
 
378
- @property
379
- @pulumi.getter(name="accessKeyId")
380
- def access_key_id(self) -> pulumi.Output[str]:
381
- """
382
- The access key of the AwsGovCloud.
383
- """
384
- return pulumi.get(self, "access_key_id")
385
-
386
- @property
338
+ @_builtins.property
387
339
  @pulumi.getter(name="accountId")
388
- def account_id(self) -> pulumi.Output[int]:
340
+ def account_id(self) -> pulumi.Output[_builtins.str]:
389
341
  """
390
- 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.
391
343
  """
392
344
  return pulumi.get(self, "account_id")
393
345
 
394
- @property
395
- @pulumi.getter(name="awsAccountId")
396
- def aws_account_id(self) -> pulumi.Output[str]:
346
+ @_builtins.property
347
+ @pulumi.getter
348
+ def arn(self) -> pulumi.Output[_builtins.str]:
397
349
  """
398
- 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.
399
353
  """
400
- return pulumi.get(self, "aws_account_id")
354
+ return pulumi.get(self, "arn")
401
355
 
402
- @property
356
+ @_builtins.property
403
357
  @pulumi.getter(name="metricCollectionMode")
404
- def metric_collection_mode(self) -> pulumi.Output[Optional[str]]:
358
+ def metric_collection_mode(self) -> pulumi.Output[Optional[_builtins.str]]:
405
359
  """
406
- 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.
407
362
  """
408
363
  return pulumi.get(self, "metric_collection_mode")
409
364
 
410
- @property
365
+ @_builtins.property
411
366
  @pulumi.getter
412
- def name(self) -> pulumi.Output[str]:
367
+ def name(self) -> pulumi.Output[_builtins.str]:
413
368
  """
414
- The linked account name
369
+ The name/identifier of the AWS GovCloud - New Relic 'linked' account.
415
370
  """
416
371
  return pulumi.get(self, "name")
417
372
 
418
- @property
419
- @pulumi.getter(name="secretAccessKey")
420
- def secret_access_key(self) -> pulumi.Output[str]:
421
- """
422
- The secret key of the AwsGovCloud.
423
- """
424
- return pulumi.get(self, "secret_access_key")
425
-