pulumi-newrelic 5.40.0a1738908234__py3-none-any.whl → 5.41.0a1739080957__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,25 +19,21 @@ __all__ = ['AwsGovcloudLinkAccountArgs', 'AwsGovcloudLinkAccount']
19
19
  @pulumi.input_type
20
20
  class AwsGovcloudLinkAccountArgs:
21
21
  def __init__(__self__, *,
22
- access_key_id: pulumi.Input[str],
23
- aws_account_id: pulumi.Input[str],
24
- secret_access_key: pulumi.Input[str],
22
+ arn: pulumi.Input[str],
25
23
  account_id: Optional[pulumi.Input[str]] = None,
26
24
  metric_collection_mode: Optional[pulumi.Input[str]] = None,
27
25
  name: Optional[pulumi.Input[str]] = None):
28
26
  """
29
27
  The set of arguments for constructing a AwsGovcloudLinkAccount resource.
30
- :param pulumi.Input[str] access_key_id: The Access Key used to programmatically access the AWS GovCloud account.
31
- :param pulumi.Input[str] aws_account_id: The ID of the AWS GovCloud account.
32
- :param pulumi.Input[str] secret_access_key: The Secret Access Key used to programmatically access the AWS GovCloud account.
33
- :param pulumi.Input[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`.
34
- :param pulumi.Input[str] metric_collection_mode: The mode by which metric data is to be collected from the linked AWS GovCloud account. Use `PUSH` for Metric Streams and `PULL` for API Polling based metric collection respectively.
35
- - Note: Altering the `metric_collection_mode` of an already applied `cloud.AwsGovcloudLinkAccount` resource shall trigger a recreation of the resource, instead of an update.
28
+ :param pulumi.Input[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[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[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.
36
34
  :param pulumi.Input[str] name: The name/identifier of the AWS GovCloud - New Relic 'linked' account.
37
35
  """
38
- pulumi.set(__self__, "access_key_id", access_key_id)
39
- pulumi.set(__self__, "aws_account_id", aws_account_id)
40
- pulumi.set(__self__, "secret_access_key", secret_access_key)
36
+ pulumi.set(__self__, "arn", arn)
41
37
  if account_id is not None:
42
38
  pulumi.set(__self__, "account_id", account_id)
43
39
  if metric_collection_mode is not None:
@@ -46,46 +42,24 @@ class AwsGovcloudLinkAccountArgs:
46
42
  pulumi.set(__self__, "name", name)
47
43
 
48
44
  @property
49
- @pulumi.getter(name="accessKeyId")
50
- def access_key_id(self) -> pulumi.Input[str]:
51
- """
52
- The Access Key used to programmatically access the AWS GovCloud account.
53
- """
54
- return pulumi.get(self, "access_key_id")
55
-
56
- @access_key_id.setter
57
- def access_key_id(self, value: pulumi.Input[str]):
58
- pulumi.set(self, "access_key_id", value)
59
-
60
- @property
61
- @pulumi.getter(name="awsAccountId")
62
- def aws_account_id(self) -> pulumi.Input[str]:
63
- """
64
- The ID of the AWS GovCloud account.
45
+ @pulumi.getter
46
+ def arn(self) -> pulumi.Input[str]:
65
47
  """
66
- return pulumi.get(self, "aws_account_id")
67
-
68
- @aws_account_id.setter
69
- def aws_account_id(self, value: pulumi.Input[str]):
70
- pulumi.set(self, "aws_account_id", value)
48
+ The Amazon Resource Name (ARN) of the IAM role.
71
49
 
72
- @property
73
- @pulumi.getter(name="secretAccessKey")
74
- def secret_access_key(self) -> pulumi.Input[str]:
75
- """
76
- The Secret Access Key used to programmatically access the AWS GovCloud account.
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.
77
51
  """
78
- return pulumi.get(self, "secret_access_key")
52
+ return pulumi.get(self, "arn")
79
53
 
80
- @secret_access_key.setter
81
- def secret_access_key(self, value: pulumi.Input[str]):
82
- pulumi.set(self, "secret_access_key", value)
54
+ @arn.setter
55
+ def arn(self, value: pulumi.Input[str]):
56
+ pulumi.set(self, "arn", value)
83
57
 
84
58
  @property
85
59
  @pulumi.getter(name="accountId")
86
60
  def account_id(self) -> Optional[pulumi.Input[str]]:
87
61
  """
88
- 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.
89
63
  """
90
64
  return pulumi.get(self, "account_id")
91
65
 
@@ -97,8 +71,8 @@ class AwsGovcloudLinkAccountArgs:
97
71
  @pulumi.getter(name="metricCollectionMode")
98
72
  def metric_collection_mode(self) -> Optional[pulumi.Input[str]]:
99
73
  """
100
- The mode by which metric data is to be collected from the linked AWS GovCloud account. Use `PUSH` for Metric Streams and `PULL` for API Polling based metric collection respectively.
101
- - Note: Altering the `metric_collection_mode` of an already applied `cloud.AwsGovcloudLinkAccount` resource shall trigger a recreation of the resource, instead of an update.
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.
102
76
  """
103
77
  return pulumi.get(self, "metric_collection_mode")
104
78
 
@@ -122,52 +96,34 @@ class AwsGovcloudLinkAccountArgs:
122
96
  @pulumi.input_type
123
97
  class _AwsGovcloudLinkAccountState:
124
98
  def __init__(__self__, *,
125
- access_key_id: Optional[pulumi.Input[str]] = None,
126
99
  account_id: Optional[pulumi.Input[str]] = None,
127
- aws_account_id: Optional[pulumi.Input[str]] = None,
100
+ arn: Optional[pulumi.Input[str]] = None,
128
101
  metric_collection_mode: Optional[pulumi.Input[str]] = None,
129
- name: Optional[pulumi.Input[str]] = None,
130
- secret_access_key: Optional[pulumi.Input[str]] = None):
102
+ name: Optional[pulumi.Input[str]] = None):
131
103
  """
132
104
  Input properties used for looking up and filtering AwsGovcloudLinkAccount resources.
133
- :param pulumi.Input[str] access_key_id: The Access Key used to programmatically access the AWS GovCloud account.
134
- :param pulumi.Input[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`.
135
- :param pulumi.Input[str] aws_account_id: The ID of the AWS GovCloud account.
136
- :param pulumi.Input[str] metric_collection_mode: The mode by which metric data is to be collected from the linked AWS GovCloud account. Use `PUSH` for Metric Streams and `PULL` for API Polling based metric collection respectively.
137
- - Note: Altering the `metric_collection_mode` of an already applied `cloud.AwsGovcloudLinkAccount` resource shall trigger a recreation of the resource, instead of an update.
105
+ :param pulumi.Input[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[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[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.
138
111
  :param pulumi.Input[str] name: The name/identifier of the AWS GovCloud - New Relic 'linked' account.
139
- :param pulumi.Input[str] secret_access_key: The Secret Access Key used to programmatically access the AWS GovCloud account.
140
112
  """
141
- if access_key_id is not None:
142
- pulumi.set(__self__, "access_key_id", access_key_id)
143
113
  if account_id is not None:
144
114
  pulumi.set(__self__, "account_id", account_id)
145
- if aws_account_id is not None:
146
- pulumi.set(__self__, "aws_account_id", aws_account_id)
115
+ if arn is not None:
116
+ pulumi.set(__self__, "arn", arn)
147
117
  if metric_collection_mode is not None:
148
118
  pulumi.set(__self__, "metric_collection_mode", metric_collection_mode)
149
119
  if name is not None:
150
120
  pulumi.set(__self__, "name", name)
151
- if secret_access_key is not None:
152
- pulumi.set(__self__, "secret_access_key", secret_access_key)
153
-
154
- @property
155
- @pulumi.getter(name="accessKeyId")
156
- def access_key_id(self) -> Optional[pulumi.Input[str]]:
157
- """
158
- The Access Key used to programmatically access the AWS GovCloud account.
159
- """
160
- return pulumi.get(self, "access_key_id")
161
-
162
- @access_key_id.setter
163
- def access_key_id(self, value: Optional[pulumi.Input[str]]):
164
- pulumi.set(self, "access_key_id", value)
165
121
 
166
122
  @property
167
123
  @pulumi.getter(name="accountId")
168
124
  def account_id(self) -> Optional[pulumi.Input[str]]:
169
125
  """
170
- 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.
171
127
  """
172
128
  return pulumi.get(self, "account_id")
173
129
 
@@ -176,23 +132,25 @@ class _AwsGovcloudLinkAccountState:
176
132
  pulumi.set(self, "account_id", value)
177
133
 
178
134
  @property
179
- @pulumi.getter(name="awsAccountId")
180
- def aws_account_id(self) -> Optional[pulumi.Input[str]]:
135
+ @pulumi.getter
136
+ def arn(self) -> Optional[pulumi.Input[str]]:
181
137
  """
182
- The ID of the AWS GovCloud account.
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.
183
141
  """
184
- return pulumi.get(self, "aws_account_id")
142
+ return pulumi.get(self, "arn")
185
143
 
186
- @aws_account_id.setter
187
- def aws_account_id(self, value: Optional[pulumi.Input[str]]):
188
- pulumi.set(self, "aws_account_id", value)
144
+ @arn.setter
145
+ def arn(self, value: Optional[pulumi.Input[str]]):
146
+ pulumi.set(self, "arn", value)
189
147
 
190
148
  @property
191
149
  @pulumi.getter(name="metricCollectionMode")
192
150
  def metric_collection_mode(self) -> Optional[pulumi.Input[str]]:
193
151
  """
194
- The mode by which metric data is to be collected from the linked AWS GovCloud account. Use `PUSH` for Metric Streams and `PULL` for API Polling based metric collection respectively.
195
- - Note: Altering the `metric_collection_mode` of an already applied `cloud.AwsGovcloudLinkAccount` resource shall trigger a recreation of the resource, instead of an update.
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.
196
154
  """
197
155
  return pulumi.get(self, "metric_collection_mode")
198
156
 
@@ -212,43 +170,25 @@ class _AwsGovcloudLinkAccountState:
212
170
  def name(self, value: Optional[pulumi.Input[str]]):
213
171
  pulumi.set(self, "name", value)
214
172
 
215
- @property
216
- @pulumi.getter(name="secretAccessKey")
217
- def secret_access_key(self) -> Optional[pulumi.Input[str]]:
218
- """
219
- The Secret Access Key used to programmatically access the AWS GovCloud account.
220
- """
221
- return pulumi.get(self, "secret_access_key")
222
-
223
- @secret_access_key.setter
224
- def secret_access_key(self, value: Optional[pulumi.Input[str]]):
225
- pulumi.set(self, "secret_access_key", value)
226
-
227
173
 
228
174
  class AwsGovcloudLinkAccount(pulumi.CustomResource):
229
175
  @overload
230
176
  def __init__(__self__,
231
177
  resource_name: str,
232
178
  opts: Optional[pulumi.ResourceOptions] = None,
233
- access_key_id: Optional[pulumi.Input[str]] = None,
234
179
  account_id: Optional[pulumi.Input[str]] = None,
235
- aws_account_id: Optional[pulumi.Input[str]] = None,
180
+ arn: Optional[pulumi.Input[str]] = None,
236
181
  metric_collection_mode: Optional[pulumi.Input[str]] = None,
237
182
  name: Optional[pulumi.Input[str]] = None,
238
- secret_access_key: Optional[pulumi.Input[str]] = None,
239
183
  __props__=None):
240
184
  """
241
- > **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.
242
-
243
185
  Use this resource to link an AWS GovCloud account to New Relic.
244
186
 
245
187
  ## Prerequisite
246
188
 
247
- 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.
248
-
249
- 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.
189
+ 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.
250
190
 
251
- 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).
191
+ 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).
252
192
 
253
193
  ## Example Usage
254
194
 
@@ -260,9 +200,7 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
260
200
  account_id="1234567",
261
201
  name="My New Relic - AWS GovCloud Linked Account",
262
202
  metric_collection_mode="PUSH",
263
- aws_account_id="<Your AWS GovCloud Account's ID>",
264
- access_key_id="<Your AWS GovCloud Account's Access Key ID>",
265
- secret_access_key="<Your AWS GovCloud Account's Secret Access Key>")
203
+ arn="arn:aws:service:region:account-id:resource-id")
266
204
  ```
267
205
 
268
206
  ## Import
@@ -277,13 +215,13 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
277
215
 
278
216
  :param str resource_name: The name of the resource.
279
217
  :param pulumi.ResourceOptions opts: Options for the resource.
280
- :param pulumi.Input[str] access_key_id: The Access Key used to programmatically access the AWS GovCloud account.
281
- :param pulumi.Input[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`.
282
- :param pulumi.Input[str] aws_account_id: The ID of the AWS GovCloud account.
283
- :param pulumi.Input[str] metric_collection_mode: The mode by which metric data is to be collected from the linked AWS GovCloud account. Use `PUSH` for Metric Streams and `PULL` for API Polling based metric collection respectively.
284
- - Note: Altering the `metric_collection_mode` of an already applied `cloud.AwsGovcloudLinkAccount` resource shall trigger a recreation of the resource, instead of an update.
218
+ :param pulumi.Input[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.
219
+ :param pulumi.Input[str] arn: The Amazon Resource Name (ARN) of the IAM role.
220
+
221
+ > **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.
222
+ :param pulumi.Input[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.
223
+ - Use `PUSH` for Metric Streams and `PULL` for API Polling based metric collection respectively.
285
224
  :param pulumi.Input[str] name: The name/identifier of the AWS GovCloud - New Relic 'linked' account.
286
- :param pulumi.Input[str] secret_access_key: The Secret Access Key used to programmatically access the AWS GovCloud account.
287
225
  """
288
226
  ...
289
227
  @overload
@@ -292,17 +230,13 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
292
230
  args: AwsGovcloudLinkAccountArgs,
293
231
  opts: Optional[pulumi.ResourceOptions] = None):
294
232
  """
295
- > **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.
296
-
297
233
  Use this resource to link an AWS GovCloud account to New Relic.
298
234
 
299
235
  ## Prerequisite
300
236
 
301
- 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.
237
+ 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.
302
238
 
303
- 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.
304
-
305
- 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).
239
+ 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).
306
240
 
307
241
  ## Example Usage
308
242
 
@@ -314,9 +248,7 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
314
248
  account_id="1234567",
315
249
  name="My New Relic - AWS GovCloud Linked Account",
316
250
  metric_collection_mode="PUSH",
317
- aws_account_id="<Your AWS GovCloud Account's ID>",
318
- access_key_id="<Your AWS GovCloud Account's Access Key ID>",
319
- secret_access_key="<Your AWS GovCloud Account's Secret Access Key>")
251
+ arn="arn:aws:service:region:account-id:resource-id")
320
252
  ```
321
253
 
322
254
  ## Import
@@ -344,12 +276,10 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
344
276
  def _internal_init(__self__,
345
277
  resource_name: str,
346
278
  opts: Optional[pulumi.ResourceOptions] = None,
347
- access_key_id: Optional[pulumi.Input[str]] = None,
348
279
  account_id: Optional[pulumi.Input[str]] = None,
349
- aws_account_id: Optional[pulumi.Input[str]] = None,
280
+ arn: Optional[pulumi.Input[str]] = None,
350
281
  metric_collection_mode: Optional[pulumi.Input[str]] = None,
351
282
  name: Optional[pulumi.Input[str]] = None,
352
- secret_access_key: Optional[pulumi.Input[str]] = None,
353
283
  __props__=None):
354
284
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
355
285
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -359,20 +289,12 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
359
289
  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
360
290
  __props__ = AwsGovcloudLinkAccountArgs.__new__(AwsGovcloudLinkAccountArgs)
361
291
 
362
- if access_key_id is None and not opts.urn:
363
- raise TypeError("Missing required property 'access_key_id'")
364
- __props__.__dict__["access_key_id"] = None if access_key_id is None else pulumi.Output.secret(access_key_id)
365
292
  __props__.__dict__["account_id"] = account_id
366
- if aws_account_id is None and not opts.urn:
367
- raise TypeError("Missing required property 'aws_account_id'")
368
- __props__.__dict__["aws_account_id"] = aws_account_id
293
+ if arn is None and not opts.urn:
294
+ raise TypeError("Missing required property 'arn'")
295
+ __props__.__dict__["arn"] = arn
369
296
  __props__.__dict__["metric_collection_mode"] = metric_collection_mode
370
297
  __props__.__dict__["name"] = name
371
- if secret_access_key is None and not opts.urn:
372
- raise TypeError("Missing required property 'secret_access_key'")
373
- __props__.__dict__["secret_access_key"] = None if secret_access_key is None else pulumi.Output.secret(secret_access_key)
374
- secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["accessKeyId", "secretAccessKey"])
375
- opts = pulumi.ResourceOptions.merge(opts, secret_opts)
376
298
  super(AwsGovcloudLinkAccount, __self__).__init__(
377
299
  'newrelic:cloud/awsGovcloudLinkAccount:AwsGovcloudLinkAccount',
378
300
  resource_name,
@@ -383,12 +305,10 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
383
305
  def get(resource_name: str,
384
306
  id: pulumi.Input[str],
385
307
  opts: Optional[pulumi.ResourceOptions] = None,
386
- access_key_id: Optional[pulumi.Input[str]] = None,
387
308
  account_id: Optional[pulumi.Input[str]] = None,
388
- aws_account_id: Optional[pulumi.Input[str]] = None,
309
+ arn: Optional[pulumi.Input[str]] = None,
389
310
  metric_collection_mode: Optional[pulumi.Input[str]] = None,
390
- name: Optional[pulumi.Input[str]] = None,
391
- secret_access_key: Optional[pulumi.Input[str]] = None) -> 'AwsGovcloudLinkAccount':
311
+ name: Optional[pulumi.Input[str]] = None) -> 'AwsGovcloudLinkAccount':
392
312
  """
393
313
  Get an existing AwsGovcloudLinkAccount resource's state with the given name, id, and optional extra
394
314
  properties used to qualify the lookup.
@@ -396,56 +316,48 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
396
316
  :param str resource_name: The unique name of the resulting resource.
397
317
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
398
318
  :param pulumi.ResourceOptions opts: Options for the resource.
399
- :param pulumi.Input[str] access_key_id: The Access Key used to programmatically access the AWS GovCloud account.
400
- :param pulumi.Input[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`.
401
- :param pulumi.Input[str] aws_account_id: The ID of the AWS GovCloud account.
402
- :param pulumi.Input[str] metric_collection_mode: The mode by which metric data is to be collected from the linked AWS GovCloud account. Use `PUSH` for Metric Streams and `PULL` for API Polling based metric collection respectively.
403
- - Note: Altering the `metric_collection_mode` of an already applied `cloud.AwsGovcloudLinkAccount` resource shall trigger a recreation of the resource, instead of an update.
319
+ :param pulumi.Input[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.
320
+ :param pulumi.Input[str] arn: The Amazon Resource Name (ARN) of the IAM role.
321
+
322
+ > **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.
323
+ :param pulumi.Input[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.
324
+ - Use `PUSH` for Metric Streams and `PULL` for API Polling based metric collection respectively.
404
325
  :param pulumi.Input[str] name: The name/identifier of the AWS GovCloud - New Relic 'linked' account.
405
- :param pulumi.Input[str] secret_access_key: The Secret Access Key used to programmatically access the AWS GovCloud account.
406
326
  """
407
327
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
408
328
 
409
329
  __props__ = _AwsGovcloudLinkAccountState.__new__(_AwsGovcloudLinkAccountState)
410
330
 
411
- __props__.__dict__["access_key_id"] = access_key_id
412
331
  __props__.__dict__["account_id"] = account_id
413
- __props__.__dict__["aws_account_id"] = aws_account_id
332
+ __props__.__dict__["arn"] = arn
414
333
  __props__.__dict__["metric_collection_mode"] = metric_collection_mode
415
334
  __props__.__dict__["name"] = name
416
- __props__.__dict__["secret_access_key"] = secret_access_key
417
335
  return AwsGovcloudLinkAccount(resource_name, opts=opts, __props__=__props__)
418
336
 
419
- @property
420
- @pulumi.getter(name="accessKeyId")
421
- def access_key_id(self) -> pulumi.Output[str]:
422
- """
423
- The Access Key used to programmatically access the AWS GovCloud account.
424
- """
425
- return pulumi.get(self, "access_key_id")
426
-
427
337
  @property
428
338
  @pulumi.getter(name="accountId")
429
339
  def account_id(self) -> pulumi.Output[str]:
430
340
  """
431
- 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`.
341
+ 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.
432
342
  """
433
343
  return pulumi.get(self, "account_id")
434
344
 
435
345
  @property
436
- @pulumi.getter(name="awsAccountId")
437
- def aws_account_id(self) -> pulumi.Output[str]:
346
+ @pulumi.getter
347
+ def arn(self) -> pulumi.Output[str]:
438
348
  """
439
- The ID of the AWS GovCloud account.
349
+ The Amazon Resource Name (ARN) of the IAM role.
350
+
351
+ > **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.
440
352
  """
441
- return pulumi.get(self, "aws_account_id")
353
+ return pulumi.get(self, "arn")
442
354
 
443
355
  @property
444
356
  @pulumi.getter(name="metricCollectionMode")
445
357
  def metric_collection_mode(self) -> pulumi.Output[Optional[str]]:
446
358
  """
447
- The mode by which metric data is to be collected from the linked AWS GovCloud account. Use `PUSH` for Metric Streams and `PULL` for API Polling based metric collection respectively.
448
- - Note: Altering the `metric_collection_mode` of an already applied `cloud.AwsGovcloudLinkAccount` resource shall trigger a recreation of the resource, instead of an update.
359
+ 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.
360
+ - Use `PUSH` for Metric Streams and `PULL` for API Polling based metric collection respectively.
449
361
  """
450
362
  return pulumi.get(self, "metric_collection_mode")
451
363
 
@@ -457,11 +369,3 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
457
369
  """
458
370
  return pulumi.get(self, "name")
459
371
 
460
- @property
461
- @pulumi.getter(name="secretAccessKey")
462
- def secret_access_key(self) -> pulumi.Output[str]:
463
- """
464
- The Secret Access Key used to programmatically access the AWS GovCloud account.
465
- """
466
- return pulumi.get(self, "secret_access_key")
467
-
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "newrelic",
4
- "version": "5.40.0-alpha.1738908234"
4
+ "version": "5.41.0-alpha.1739080957"
5
5
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pulumi_newrelic
3
- Version: 5.40.0a1738908234
3
+ Version: 5.41.0a1739080957
4
4
  Summary: A Pulumi package for creating and managing New Relic resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -42,7 +42,7 @@ pulumi_newrelic/one_dashboard_json.py,sha256=EZqg6akwsh-SqsRjCmQzDjgsjvbIfKsX2zt
42
42
  pulumi_newrelic/one_dashboard_raw.py,sha256=__3ZuSPVubBaC5iPa9V6q1SG7lHFcpNdVsLXQie5c7U,23668
43
43
  pulumi_newrelic/outputs.py,sha256=GpBj8cVexHhJXbpzkqZBbcaOSQkLybzZ46vEKFaREPg,576475
44
44
  pulumi_newrelic/provider.py,sha256=OjBqZT1L0Jt_1-c3zMSSGA03zIZjgif7RrThna-ojng,18493
45
- pulumi_newrelic/pulumi-plugin.json,sha256=E2PB3E20svDRBZqogItrYtNPv48Y90mEMLLIbR7i-Jw,85
45
+ pulumi_newrelic/pulumi-plugin.json,sha256=IxLnJeZK5WFdGl269fFIdQcbxqdaN9KTmtVG7K-Juvg,85
46
46
  pulumi_newrelic/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
47
47
  pulumi_newrelic/service_level.py,sha256=Dk_AoEFTmaJAg5v8SKBN4-a4T-MGXDbPubxsnB98sFk,28980
48
48
  pulumi_newrelic/user.py,sha256=guVvPGAeuR-mQ6_bA_MvBP7GY2grEmnbdNkc_5hs1us,19116
@@ -50,7 +50,7 @@ pulumi_newrelic/workflow.py,sha256=Ka0qEJke18DRFRdDjDUgwZd-sbOufowesAUaWZLg85U,4
50
50
  pulumi_newrelic/cloud/__init__.py,sha256=iv3_NQivZ9OvaZzsRb81j-_v55U3fjpbV-q2T8oW6i8,592
51
51
  pulumi_newrelic/cloud/_inputs.py,sha256=4rFcDJGO0GjsfxZG8USBt-SPnXdyvjMbmtzqpqHSi7o,381862
52
52
  pulumi_newrelic/cloud/aws_govcloud_integrations.py,sha256=xRgN1R3xWAG0q0sTv_5Vba1h0P5KtH3jk10I7ZokvkQ,65413
53
- pulumi_newrelic/cloud/aws_govcloud_link_account.py,sha256=niAjN22F7UB4XYKNME7C4zuOzLpeSvf2OfMe5-EFVbQ,23727
53
+ pulumi_newrelic/cloud/aws_govcloud_link_account.py,sha256=Ib6_PdEcre4DX5eHS0gvKEV4g8Pwwd_bnsgzL3CqC44,18752
54
54
  pulumi_newrelic/cloud/aws_integrations.py,sha256=PggxGS3ECz71g6VydQGUpr9Z10wMQT-AKQCJku29Py8,128568
55
55
  pulumi_newrelic/cloud/aws_link_account.py,sha256=-MfVXLan_qDRuMkgy54dJ3h6tPgCNLQDHPEw7R38PZY,15669
56
56
  pulumi_newrelic/cloud/azure_integrations.py,sha256=Tr1j9QEMnTrNL1W7s7Jr3IhJTeGzE9CXhC7XrmASseQ,114191
@@ -84,7 +84,7 @@ pulumi_newrelic/synthetics/private_location.py,sha256=-pj6W9dg9fB-jtnrTH8wnd7o_j
84
84
  pulumi_newrelic/synthetics/script_monitor.py,sha256=fwRaviLtkQ0ViK3V1W98npxcN_qBXFevwuHgHArl3m0,66220
85
85
  pulumi_newrelic/synthetics/secure_credential.py,sha256=EilBGvvvqmADHo1VPeWfQkCdc2GYRO8Dq9-lktE7Y3M,15776
86
86
  pulumi_newrelic/synthetics/step_monitor.py,sha256=7tqzQ9InEMRdfAr9K_vpLm-OCPHyIKEH4f8CT2BxaLQ,49116
87
- pulumi_newrelic-5.40.0a1738908234.dist-info/METADATA,sha256=vVhNnjKKeAJZ79z8NaRLD9W5flfvyDSGibJou9tzchI,3963
88
- pulumi_newrelic-5.40.0a1738908234.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
89
- pulumi_newrelic-5.40.0a1738908234.dist-info/top_level.txt,sha256=BjE1Wsu6Ah_A7k08uV5vRSZ2R_5uY3wFvSWJaa7ZoQk,16
90
- pulumi_newrelic-5.40.0a1738908234.dist-info/RECORD,,
87
+ pulumi_newrelic-5.41.0a1739080957.dist-info/METADATA,sha256=hZ_AOc3xt97mzgHk9ZZ_U0ZiVOOt9TrFBpG_IkbK0aw,3963
88
+ pulumi_newrelic-5.41.0a1739080957.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
89
+ pulumi_newrelic-5.41.0a1739080957.dist-info/top_level.txt,sha256=BjE1Wsu6Ah_A7k08uV5vRSZ2R_5uY3wFvSWJaa7ZoQk,16
90
+ pulumi_newrelic-5.41.0a1739080957.dist-info/RECORD,,