pulumi-newrelic 5.20.0a1709643785__py3-none-any.whl → 5.39.0a1736834464__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. pulumi_newrelic/__init__.py +9 -0
  2. pulumi_newrelic/_inputs.py +7153 -461
  3. pulumi_newrelic/_utilities.py +41 -5
  4. pulumi_newrelic/account_management.py +13 -4
  5. pulumi_newrelic/alert_channel.py +122 -101
  6. pulumi_newrelic/alert_condition.py +120 -109
  7. pulumi_newrelic/alert_muting_rule.py +130 -74
  8. pulumi_newrelic/alert_policy.py +88 -67
  9. pulumi_newrelic/alert_policy_channel.py +81 -68
  10. pulumi_newrelic/api_access_key.py +49 -52
  11. pulumi_newrelic/browser_application.py +79 -76
  12. pulumi_newrelic/cloud/_inputs.py +2527 -1082
  13. pulumi_newrelic/cloud/aws_govcloud_integrations.py +135 -130
  14. pulumi_newrelic/cloud/aws_govcloud_link_account.py +25 -18
  15. pulumi_newrelic/cloud/aws_integrations.py +300 -1324
  16. pulumi_newrelic/cloud/aws_link_account.py +25 -18
  17. pulumi_newrelic/cloud/azure_integrations.py +523 -481
  18. pulumi_newrelic/cloud/azure_link_account.py +36 -29
  19. pulumi_newrelic/cloud/gcp_integrations.py +343 -320
  20. pulumi_newrelic/cloud/gcp_link_account.py +25 -18
  21. pulumi_newrelic/cloud/outputs.py +327 -1072
  22. pulumi_newrelic/config/__init__.pyi +6 -1
  23. pulumi_newrelic/config/vars.py +7 -2
  24. pulumi_newrelic/data_partition_rule.py +23 -16
  25. pulumi_newrelic/entity_tags.py +36 -31
  26. pulumi_newrelic/events_to_metrics_rule.py +27 -20
  27. pulumi_newrelic/get_account.py +24 -12
  28. pulumi_newrelic/get_alert_channel.py +26 -13
  29. pulumi_newrelic/get_alert_policy.py +35 -12
  30. pulumi_newrelic/get_application.py +39 -27
  31. pulumi_newrelic/get_authentication_domain.py +17 -9
  32. pulumi_newrelic/get_cloud_account.py +26 -14
  33. pulumi_newrelic/get_entity.py +90 -85
  34. pulumi_newrelic/get_group.py +58 -9
  35. pulumi_newrelic/get_key_transaction.py +109 -30
  36. pulumi_newrelic/get_notification_destination.py +64 -14
  37. pulumi_newrelic/get_obfuscation_expression.py +36 -24
  38. pulumi_newrelic/get_service_level_alert_helper.py +135 -105
  39. pulumi_newrelic/get_test_grok_pattern.py +29 -14
  40. pulumi_newrelic/get_user.py +17 -5
  41. pulumi_newrelic/group.py +5 -132
  42. pulumi_newrelic/infra_alert_condition.py +157 -140
  43. pulumi_newrelic/insights/_inputs.py +43 -0
  44. pulumi_newrelic/insights/event.py +50 -43
  45. pulumi_newrelic/insights/outputs.py +5 -0
  46. pulumi_newrelic/key_transaction.py +464 -0
  47. pulumi_newrelic/log_parsing_rule.py +29 -18
  48. pulumi_newrelic/monitor_downtime.py +215 -203
  49. pulumi_newrelic/notification_channel.py +387 -326
  50. pulumi_newrelic/notification_destination.py +248 -118
  51. pulumi_newrelic/nrql_alert_condition.py +353 -246
  52. pulumi_newrelic/nrql_drop_rule.py +57 -30
  53. pulumi_newrelic/obfuscation_expression.py +25 -18
  54. pulumi_newrelic/obfuscation_rule.py +40 -31
  55. pulumi_newrelic/one_dashboard.py +31 -26
  56. pulumi_newrelic/one_dashboard_json.py +21 -16
  57. pulumi_newrelic/one_dashboard_raw.py +112 -101
  58. pulumi_newrelic/outputs.py +2446 -245
  59. pulumi_newrelic/plugins/_inputs.py +145 -10
  60. pulumi_newrelic/plugins/application_settings.py +29 -20
  61. pulumi_newrelic/plugins/outputs.py +15 -10
  62. pulumi_newrelic/plugins/workload.py +285 -54
  63. pulumi_newrelic/provider.py +27 -33
  64. pulumi_newrelic/pulumi-plugin.json +2 -1
  65. pulumi_newrelic/service_level.py +193 -180
  66. pulumi_newrelic/synthetics/_inputs.py +159 -2
  67. pulumi_newrelic/synthetics/alert_condition.py +91 -78
  68. pulumi_newrelic/synthetics/broken_links_monitor.py +220 -93
  69. pulumi_newrelic/synthetics/cert_check_monitor.py +223 -94
  70. pulumi_newrelic/synthetics/get_private_location.py +34 -22
  71. pulumi_newrelic/synthetics/get_secure_credential.py +24 -12
  72. pulumi_newrelic/synthetics/monitor.py +352 -179
  73. pulumi_newrelic/synthetics/multi_location_alert_condition.py +109 -96
  74. pulumi_newrelic/synthetics/outputs.py +7 -2
  75. pulumi_newrelic/synthetics/private_location.py +27 -18
  76. pulumi_newrelic/synthetics/script_monitor.py +321 -168
  77. pulumi_newrelic/synthetics/secure_credential.py +25 -20
  78. pulumi_newrelic/synthetics/step_monitor.py +409 -98
  79. pulumi_newrelic/user.py +13 -6
  80. pulumi_newrelic/workflow.py +215 -184
  81. {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/METADATA +7 -6
  82. pulumi_newrelic-5.39.0a1736834464.dist-info/RECORD +90 -0
  83. {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/WHEEL +1 -1
  84. pulumi_newrelic-5.20.0a1709643785.dist-info/RECORD +0 -89
  85. {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/top_level.txt +0 -0
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from .. import _utilities
11
16
 
12
17
  __all__ = ['AwsGovcloudLinkAccountArgs', 'AwsGovcloudLinkAccount']
@@ -17,7 +22,7 @@ class AwsGovcloudLinkAccountArgs:
17
22
  access_key_id: pulumi.Input[str],
18
23
  aws_account_id: pulumi.Input[str],
19
24
  secret_access_key: pulumi.Input[str],
20
- account_id: Optional[pulumi.Input[int]] = None,
25
+ account_id: Optional[pulumi.Input[str]] = None,
21
26
  metric_collection_mode: Optional[pulumi.Input[str]] = None,
22
27
  name: Optional[pulumi.Input[str]] = None):
23
28
  """
@@ -25,7 +30,7 @@ class AwsGovcloudLinkAccountArgs:
25
30
  :param pulumi.Input[str] access_key_id: The access key of the AwsGovCloud.
26
31
  :param pulumi.Input[str] aws_account_id: The AwsGovCloud account ID.
27
32
  :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`.
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`.
29
34
  :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
35
  :param pulumi.Input[str] name: The linked account name
31
36
  """
@@ -77,14 +82,14 @@ class AwsGovcloudLinkAccountArgs:
77
82
 
78
83
  @property
79
84
  @pulumi.getter(name="accountId")
80
- def account_id(self) -> Optional[pulumi.Input[int]]:
85
+ def account_id(self) -> Optional[pulumi.Input[str]]:
81
86
  """
82
87
  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`.
83
88
  """
84
89
  return pulumi.get(self, "account_id")
85
90
 
86
91
  @account_id.setter
87
- def account_id(self, value: Optional[pulumi.Input[int]]):
92
+ def account_id(self, value: Optional[pulumi.Input[str]]):
88
93
  pulumi.set(self, "account_id", value)
89
94
 
90
95
  @property
@@ -116,7 +121,7 @@ class AwsGovcloudLinkAccountArgs:
116
121
  class _AwsGovcloudLinkAccountState:
117
122
  def __init__(__self__, *,
118
123
  access_key_id: Optional[pulumi.Input[str]] = None,
119
- account_id: Optional[pulumi.Input[int]] = None,
124
+ account_id: Optional[pulumi.Input[str]] = None,
120
125
  aws_account_id: Optional[pulumi.Input[str]] = None,
121
126
  metric_collection_mode: Optional[pulumi.Input[str]] = None,
122
127
  name: Optional[pulumi.Input[str]] = None,
@@ -124,7 +129,7 @@ class _AwsGovcloudLinkAccountState:
124
129
  """
125
130
  Input properties used for looking up and filtering AwsGovcloudLinkAccount resources.
126
131
  :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`.
132
+ :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`.
128
133
  :param pulumi.Input[str] aws_account_id: The AwsGovCloud account ID.
129
134
  :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
135
  :param pulumi.Input[str] name: The linked account name
@@ -157,14 +162,14 @@ class _AwsGovcloudLinkAccountState:
157
162
 
158
163
  @property
159
164
  @pulumi.getter(name="accountId")
160
- def account_id(self) -> Optional[pulumi.Input[int]]:
165
+ def account_id(self) -> Optional[pulumi.Input[str]]:
161
166
  """
162
167
  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`.
163
168
  """
164
169
  return pulumi.get(self, "account_id")
165
170
 
166
171
  @account_id.setter
167
- def account_id(self, value: Optional[pulumi.Input[int]]):
172
+ def account_id(self, value: Optional[pulumi.Input[str]]):
168
173
  pulumi.set(self, "account_id", value)
169
174
 
170
175
  @property
@@ -222,7 +227,7 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
222
227
  resource_name: str,
223
228
  opts: Optional[pulumi.ResourceOptions] = None,
224
229
  access_key_id: Optional[pulumi.Input[str]] = None,
225
- account_id: Optional[pulumi.Input[int]] = None,
230
+ account_id: Optional[pulumi.Input[str]] = None,
226
231
  aws_account_id: Optional[pulumi.Input[str]] = None,
227
232
  metric_collection_mode: Optional[pulumi.Input[str]] = None,
228
233
  name: Optional[pulumi.Input[str]] = None,
@@ -248,10 +253,11 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
248
253
  import pulumi_newrelic as newrelic
249
254
 
250
255
  foo = newrelic.cloud.AwsGovcloudLinkAccount("foo",
251
- access_key_id="access-key-id of aws govcloud account",
252
256
  account_id="The New Relic account ID where you want to link the AWS GovCloud account",
257
+ access_key_id="access-key-id of aws govcloud account",
253
258
  aws_account_id="aws govcloud account id",
254
259
  metric_collection_mode="PULL",
260
+ name="account name",
255
261
  secret_access_key="secret access key of the aws govcloud account")
256
262
  ```
257
263
 
@@ -259,7 +265,7 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
259
265
 
260
266
  Linked AWSGovCloud accounts can be imported using the `id`, e.g.
261
267
 
262
- bash
268
+ bash
263
269
 
264
270
  ```sh
265
271
  $ pulumi import newrelic:cloud/awsGovcloudLinkAccount:AwsGovcloudLinkAccount foo <id>
@@ -268,7 +274,7 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
268
274
  :param str resource_name: The name of the resource.
269
275
  :param pulumi.ResourceOptions opts: Options for the resource.
270
276
  :param pulumi.Input[str] access_key_id: The access key of the AwsGovCloud.
271
- :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`.
277
+ :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`.
272
278
  :param pulumi.Input[str] aws_account_id: The AwsGovCloud account ID.
273
279
  :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.
274
280
  :param pulumi.Input[str] name: The linked account name
@@ -300,10 +306,11 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
300
306
  import pulumi_newrelic as newrelic
301
307
 
302
308
  foo = newrelic.cloud.AwsGovcloudLinkAccount("foo",
303
- access_key_id="access-key-id of aws govcloud account",
304
309
  account_id="The New Relic account ID where you want to link the AWS GovCloud account",
310
+ access_key_id="access-key-id of aws govcloud account",
305
311
  aws_account_id="aws govcloud account id",
306
312
  metric_collection_mode="PULL",
313
+ name="account name",
307
314
  secret_access_key="secret access key of the aws govcloud account")
308
315
  ```
309
316
 
@@ -311,7 +318,7 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
311
318
 
312
319
  Linked AWSGovCloud accounts can be imported using the `id`, e.g.
313
320
 
314
- bash
321
+ bash
315
322
 
316
323
  ```sh
317
324
  $ pulumi import newrelic:cloud/awsGovcloudLinkAccount:AwsGovcloudLinkAccount foo <id>
@@ -333,7 +340,7 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
333
340
  resource_name: str,
334
341
  opts: Optional[pulumi.ResourceOptions] = None,
335
342
  access_key_id: Optional[pulumi.Input[str]] = None,
336
- account_id: Optional[pulumi.Input[int]] = None,
343
+ account_id: Optional[pulumi.Input[str]] = None,
337
344
  aws_account_id: Optional[pulumi.Input[str]] = None,
338
345
  metric_collection_mode: Optional[pulumi.Input[str]] = None,
339
346
  name: Optional[pulumi.Input[str]] = None,
@@ -372,7 +379,7 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
372
379
  id: pulumi.Input[str],
373
380
  opts: Optional[pulumi.ResourceOptions] = None,
374
381
  access_key_id: Optional[pulumi.Input[str]] = None,
375
- account_id: Optional[pulumi.Input[int]] = None,
382
+ account_id: Optional[pulumi.Input[str]] = None,
376
383
  aws_account_id: Optional[pulumi.Input[str]] = None,
377
384
  metric_collection_mode: Optional[pulumi.Input[str]] = None,
378
385
  name: Optional[pulumi.Input[str]] = None,
@@ -385,7 +392,7 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
385
392
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
386
393
  :param pulumi.ResourceOptions opts: Options for the resource.
387
394
  :param pulumi.Input[str] access_key_id: The access key of the AwsGovCloud.
388
- :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`.
395
+ :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`.
389
396
  :param pulumi.Input[str] aws_account_id: The AwsGovCloud account ID.
390
397
  :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.
391
398
  :param pulumi.Input[str] name: The linked account name
@@ -413,7 +420,7 @@ class AwsGovcloudLinkAccount(pulumi.CustomResource):
413
420
 
414
421
  @property
415
422
  @pulumi.getter(name="accountId")
416
- def account_id(self) -> pulumi.Output[int]:
423
+ def account_id(self) -> pulumi.Output[str]:
417
424
  """
418
425
  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`.
419
426
  """