pulumi-newrelic 5.22.1__py3-none-any.whl → 5.23.0__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.
Files changed (68) hide show
  1. pulumi_newrelic/_inputs.py +183 -270
  2. pulumi_newrelic/account_management.py +20 -20
  3. pulumi_newrelic/alert_channel.py +76 -92
  4. pulumi_newrelic/alert_condition.py +104 -163
  5. pulumi_newrelic/alert_muting_rule.py +33 -35
  6. pulumi_newrelic/alert_policy.py +68 -43
  7. pulumi_newrelic/alert_policy_channel.py +12 -8
  8. pulumi_newrelic/cloud/_inputs.py +322 -1072
  9. pulumi_newrelic/cloud/aws_govcloud_link_account.py +4 -6
  10. pulumi_newrelic/cloud/aws_integrations.py +13 -15
  11. pulumi_newrelic/cloud/aws_link_account.py +4 -6
  12. pulumi_newrelic/cloud/azure_integrations.py +10 -12
  13. pulumi_newrelic/cloud/azure_link_account.py +4 -6
  14. pulumi_newrelic/cloud/gcp_integrations.py +6 -6
  15. pulumi_newrelic/cloud/gcp_link_account.py +4 -6
  16. pulumi_newrelic/cloud/outputs.py +322 -1072
  17. pulumi_newrelic/data_partition_rule.py +0 -4
  18. pulumi_newrelic/entity_tags.py +13 -17
  19. pulumi_newrelic/events_to_metrics_rule.py +2 -4
  20. pulumi_newrelic/get_account.py +0 -4
  21. pulumi_newrelic/get_application.py +8 -10
  22. pulumi_newrelic/get_authentication_domain.py +4 -8
  23. pulumi_newrelic/get_cloud_account.py +0 -4
  24. pulumi_newrelic/get_entity.py +28 -32
  25. pulumi_newrelic/get_group.py +42 -8
  26. pulumi_newrelic/get_key_transaction.py +8 -10
  27. pulumi_newrelic/get_notification_destination.py +20 -1
  28. pulumi_newrelic/get_obfuscation_expression.py +2 -4
  29. pulumi_newrelic/get_service_level_alert_helper.py +22 -46
  30. pulumi_newrelic/get_test_grok_pattern.py +4 -6
  31. pulumi_newrelic/get_user.py +0 -4
  32. pulumi_newrelic/group.py +40 -42
  33. pulumi_newrelic/infra_alert_condition.py +154 -145
  34. pulumi_newrelic/insights/event.py +8 -25
  35. pulumi_newrelic/log_parsing_rule.py +6 -10
  36. pulumi_newrelic/monitor_downtime.py +174 -193
  37. pulumi_newrelic/notification_channel.py +124 -150
  38. pulumi_newrelic/notification_destination.py +95 -1
  39. pulumi_newrelic/nrql_alert_condition.py +38 -48
  40. pulumi_newrelic/nrql_drop_rule.py +34 -38
  41. pulumi_newrelic/obfuscation_expression.py +2 -4
  42. pulumi_newrelic/obfuscation_rule.py +4 -4
  43. pulumi_newrelic/one_dashboard.py +42 -48
  44. pulumi_newrelic/one_dashboard_raw.py +86 -86
  45. pulumi_newrelic/outputs.py +180 -270
  46. pulumi_newrelic/plugins/_inputs.py +16 -16
  47. pulumi_newrelic/plugins/application_settings.py +20 -36
  48. pulumi_newrelic/plugins/outputs.py +16 -16
  49. pulumi_newrelic/plugins/workload.py +158 -40
  50. pulumi_newrelic/service_level.py +38 -123
  51. pulumi_newrelic/synthetics/alert_condition.py +34 -78
  52. pulumi_newrelic/synthetics/broken_links_monitor.py +18 -20
  53. pulumi_newrelic/synthetics/cert_check_monitor.py +16 -18
  54. pulumi_newrelic/synthetics/get_private_location.py +0 -8
  55. pulumi_newrelic/synthetics/get_secure_credential.py +0 -12
  56. pulumi_newrelic/synthetics/monitor.py +48 -52
  57. pulumi_newrelic/synthetics/multi_location_alert_condition.py +69 -83
  58. pulumi_newrelic/synthetics/private_location.py +6 -6
  59. pulumi_newrelic/synthetics/script_monitor.py +38 -42
  60. pulumi_newrelic/synthetics/secure_credential.py +25 -22
  61. pulumi_newrelic/synthetics/step_monitor.py +18 -20
  62. pulumi_newrelic/user.py +8 -10
  63. pulumi_newrelic/workflow.py +20 -24
  64. {pulumi_newrelic-5.22.1.dist-info → pulumi_newrelic-5.23.0.dist-info}/METADATA +1 -1
  65. pulumi_newrelic-5.23.0.dist-info/RECORD +89 -0
  66. pulumi_newrelic-5.22.1.dist-info/RECORD +0 -89
  67. {pulumi_newrelic-5.22.1.dist-info → pulumi_newrelic-5.23.0.dist-info}/WHEEL +0 -0
  68. {pulumi_newrelic-5.22.1.dist-info → pulumi_newrelic-5.23.0.dist-info}/top_level.txt +0 -0
@@ -21,8 +21,10 @@ class NotificationDestinationArgs:
21
21
  account_id: Optional[pulumi.Input[int]] = None,
22
22
  active: Optional[pulumi.Input[bool]] = None,
23
23
  auth_basic: Optional[pulumi.Input['NotificationDestinationAuthBasicArgs']] = None,
24
+ auth_custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]]] = None,
24
25
  auth_token: Optional[pulumi.Input['NotificationDestinationAuthTokenArgs']] = None,
25
- name: Optional[pulumi.Input[str]] = None):
26
+ name: Optional[pulumi.Input[str]] = None,
27
+ secure_url: Optional[pulumi.Input['NotificationDestinationSecureUrlArgs']] = None):
26
28
  """
27
29
  The set of arguments for constructing a NotificationDestination resource.
28
30
  :param pulumi.Input[Sequence[pulumi.Input['NotificationDestinationPropertyArgs']]] properties: A nested block that describes a notification destination property. See Nested property blocks below for details.
@@ -31,8 +33,10 @@ class NotificationDestinationArgs:
31
33
  :param pulumi.Input[int] account_id: Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
32
34
  :param pulumi.Input[bool] active: Indicates whether the destination is active.
33
35
  :param pulumi.Input['NotificationDestinationAuthBasicArgs'] auth_basic: A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
36
+ :param pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]] auth_custom_headers: A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
34
37
  :param pulumi.Input['NotificationDestinationAuthTokenArgs'] auth_token: A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
35
38
  :param pulumi.Input[str] name: The name of the destination.
39
+ :param pulumi.Input['NotificationDestinationSecureUrlArgs'] secure_url: A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url blocks below for details.
36
40
  """
37
41
  pulumi.set(__self__, "properties", properties)
38
42
  pulumi.set(__self__, "type", type)
@@ -42,10 +46,14 @@ class NotificationDestinationArgs:
42
46
  pulumi.set(__self__, "active", active)
43
47
  if auth_basic is not None:
44
48
  pulumi.set(__self__, "auth_basic", auth_basic)
49
+ if auth_custom_headers is not None:
50
+ pulumi.set(__self__, "auth_custom_headers", auth_custom_headers)
45
51
  if auth_token is not None:
46
52
  pulumi.set(__self__, "auth_token", auth_token)
47
53
  if name is not None:
48
54
  pulumi.set(__self__, "name", name)
55
+ if secure_url is not None:
56
+ pulumi.set(__self__, "secure_url", secure_url)
49
57
 
50
58
  @property
51
59
  @pulumi.getter
@@ -108,6 +116,18 @@ class NotificationDestinationArgs:
108
116
  def auth_basic(self, value: Optional[pulumi.Input['NotificationDestinationAuthBasicArgs']]):
109
117
  pulumi.set(self, "auth_basic", value)
110
118
 
119
+ @property
120
+ @pulumi.getter(name="authCustomHeaders")
121
+ def auth_custom_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]]]:
122
+ """
123
+ A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
124
+ """
125
+ return pulumi.get(self, "auth_custom_headers")
126
+
127
+ @auth_custom_headers.setter
128
+ def auth_custom_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]]]):
129
+ pulumi.set(self, "auth_custom_headers", value)
130
+
111
131
  @property
112
132
  @pulumi.getter(name="authToken")
113
133
  def auth_token(self) -> Optional[pulumi.Input['NotificationDestinationAuthTokenArgs']]:
@@ -132,6 +152,18 @@ class NotificationDestinationArgs:
132
152
  def name(self, value: Optional[pulumi.Input[str]]):
133
153
  pulumi.set(self, "name", value)
134
154
 
155
+ @property
156
+ @pulumi.getter(name="secureUrl")
157
+ def secure_url(self) -> Optional[pulumi.Input['NotificationDestinationSecureUrlArgs']]:
158
+ """
159
+ A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url blocks below for details.
160
+ """
161
+ return pulumi.get(self, "secure_url")
162
+
163
+ @secure_url.setter
164
+ def secure_url(self, value: Optional[pulumi.Input['NotificationDestinationSecureUrlArgs']]):
165
+ pulumi.set(self, "secure_url", value)
166
+
135
167
 
136
168
  @pulumi.input_type
137
169
  class _NotificationDestinationState:
@@ -139,11 +171,13 @@ class _NotificationDestinationState:
139
171
  account_id: Optional[pulumi.Input[int]] = None,
140
172
  active: Optional[pulumi.Input[bool]] = None,
141
173
  auth_basic: Optional[pulumi.Input['NotificationDestinationAuthBasicArgs']] = None,
174
+ auth_custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]]] = None,
142
175
  auth_token: Optional[pulumi.Input['NotificationDestinationAuthTokenArgs']] = None,
143
176
  guid: Optional[pulumi.Input[str]] = None,
144
177
  last_sent: Optional[pulumi.Input[str]] = None,
145
178
  name: Optional[pulumi.Input[str]] = None,
146
179
  properties: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationPropertyArgs']]]] = None,
180
+ secure_url: Optional[pulumi.Input['NotificationDestinationSecureUrlArgs']] = None,
147
181
  status: Optional[pulumi.Input[str]] = None,
148
182
  type: Optional[pulumi.Input[str]] = None):
149
183
  """
@@ -151,11 +185,13 @@ class _NotificationDestinationState:
151
185
  :param pulumi.Input[int] account_id: Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
152
186
  :param pulumi.Input[bool] active: Indicates whether the destination is active.
153
187
  :param pulumi.Input['NotificationDestinationAuthBasicArgs'] auth_basic: A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
188
+ :param pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]] auth_custom_headers: A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
154
189
  :param pulumi.Input['NotificationDestinationAuthTokenArgs'] auth_token: A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
155
190
  :param pulumi.Input[str] guid: The unique entity identifier of the destination in New Relic.
156
191
  :param pulumi.Input[str] last_sent: The last time a notification was sent.
157
192
  :param pulumi.Input[str] name: The name of the destination.
158
193
  :param pulumi.Input[Sequence[pulumi.Input['NotificationDestinationPropertyArgs']]] properties: A nested block that describes a notification destination property. See Nested property blocks below for details.
194
+ :param pulumi.Input['NotificationDestinationSecureUrlArgs'] secure_url: A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url blocks below for details.
159
195
  :param pulumi.Input[str] status: The status of the destination.
160
196
  :param pulumi.Input[str] type: (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION,
161
197
  PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
@@ -166,6 +202,8 @@ class _NotificationDestinationState:
166
202
  pulumi.set(__self__, "active", active)
167
203
  if auth_basic is not None:
168
204
  pulumi.set(__self__, "auth_basic", auth_basic)
205
+ if auth_custom_headers is not None:
206
+ pulumi.set(__self__, "auth_custom_headers", auth_custom_headers)
169
207
  if auth_token is not None:
170
208
  pulumi.set(__self__, "auth_token", auth_token)
171
209
  if guid is not None:
@@ -176,6 +214,8 @@ class _NotificationDestinationState:
176
214
  pulumi.set(__self__, "name", name)
177
215
  if properties is not None:
178
216
  pulumi.set(__self__, "properties", properties)
217
+ if secure_url is not None:
218
+ pulumi.set(__self__, "secure_url", secure_url)
179
219
  if status is not None:
180
220
  pulumi.set(__self__, "status", status)
181
221
  if type is not None:
@@ -217,6 +257,18 @@ class _NotificationDestinationState:
217
257
  def auth_basic(self, value: Optional[pulumi.Input['NotificationDestinationAuthBasicArgs']]):
218
258
  pulumi.set(self, "auth_basic", value)
219
259
 
260
+ @property
261
+ @pulumi.getter(name="authCustomHeaders")
262
+ def auth_custom_headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]]]:
263
+ """
264
+ A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
265
+ """
266
+ return pulumi.get(self, "auth_custom_headers")
267
+
268
+ @auth_custom_headers.setter
269
+ def auth_custom_headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationAuthCustomHeaderArgs']]]]):
270
+ pulumi.set(self, "auth_custom_headers", value)
271
+
220
272
  @property
221
273
  @pulumi.getter(name="authToken")
222
274
  def auth_token(self) -> Optional[pulumi.Input['NotificationDestinationAuthTokenArgs']]:
@@ -277,6 +329,18 @@ class _NotificationDestinationState:
277
329
  def properties(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationDestinationPropertyArgs']]]]):
278
330
  pulumi.set(self, "properties", value)
279
331
 
332
+ @property
333
+ @pulumi.getter(name="secureUrl")
334
+ def secure_url(self) -> Optional[pulumi.Input['NotificationDestinationSecureUrlArgs']]:
335
+ """
336
+ A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url blocks below for details.
337
+ """
338
+ return pulumi.get(self, "secure_url")
339
+
340
+ @secure_url.setter
341
+ def secure_url(self, value: Optional[pulumi.Input['NotificationDestinationSecureUrlArgs']]):
342
+ pulumi.set(self, "secure_url", value)
343
+
280
344
  @property
281
345
  @pulumi.getter
282
346
  def status(self) -> Optional[pulumi.Input[str]]:
@@ -311,9 +375,11 @@ class NotificationDestination(pulumi.CustomResource):
311
375
  account_id: Optional[pulumi.Input[int]] = None,
312
376
  active: Optional[pulumi.Input[bool]] = None,
313
377
  auth_basic: Optional[pulumi.Input[pulumi.InputType['NotificationDestinationAuthBasicArgs']]] = None,
378
+ auth_custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationAuthCustomHeaderArgs']]]]] = None,
314
379
  auth_token: Optional[pulumi.Input[pulumi.InputType['NotificationDestinationAuthTokenArgs']]] = None,
315
380
  name: Optional[pulumi.Input[str]] = None,
316
381
  properties: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationPropertyArgs']]]]] = None,
382
+ secure_url: Optional[pulumi.Input[pulumi.InputType['NotificationDestinationSecureUrlArgs']]] = None,
317
383
  type: Optional[pulumi.Input[str]] = None,
318
384
  __props__=None):
319
385
  """
@@ -388,9 +454,11 @@ class NotificationDestination(pulumi.CustomResource):
388
454
  :param pulumi.Input[int] account_id: Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
389
455
  :param pulumi.Input[bool] active: Indicates whether the destination is active.
390
456
  :param pulumi.Input[pulumi.InputType['NotificationDestinationAuthBasicArgs']] auth_basic: A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
457
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationAuthCustomHeaderArgs']]]] auth_custom_headers: A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
391
458
  :param pulumi.Input[pulumi.InputType['NotificationDestinationAuthTokenArgs']] auth_token: A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
392
459
  :param pulumi.Input[str] name: The name of the destination.
393
460
  :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationPropertyArgs']]]] properties: A nested block that describes a notification destination property. See Nested property blocks below for details.
461
+ :param pulumi.Input[pulumi.InputType['NotificationDestinationSecureUrlArgs']] secure_url: A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url blocks below for details.
394
462
  :param pulumi.Input[str] type: (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION,
395
463
  PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
396
464
  """
@@ -485,9 +553,11 @@ class NotificationDestination(pulumi.CustomResource):
485
553
  account_id: Optional[pulumi.Input[int]] = None,
486
554
  active: Optional[pulumi.Input[bool]] = None,
487
555
  auth_basic: Optional[pulumi.Input[pulumi.InputType['NotificationDestinationAuthBasicArgs']]] = None,
556
+ auth_custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationAuthCustomHeaderArgs']]]]] = None,
488
557
  auth_token: Optional[pulumi.Input[pulumi.InputType['NotificationDestinationAuthTokenArgs']]] = None,
489
558
  name: Optional[pulumi.Input[str]] = None,
490
559
  properties: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationPropertyArgs']]]]] = None,
560
+ secure_url: Optional[pulumi.Input[pulumi.InputType['NotificationDestinationSecureUrlArgs']]] = None,
491
561
  type: Optional[pulumi.Input[str]] = None,
492
562
  __props__=None):
493
563
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
@@ -501,11 +571,13 @@ class NotificationDestination(pulumi.CustomResource):
501
571
  __props__.__dict__["account_id"] = account_id
502
572
  __props__.__dict__["active"] = active
503
573
  __props__.__dict__["auth_basic"] = auth_basic
574
+ __props__.__dict__["auth_custom_headers"] = auth_custom_headers
504
575
  __props__.__dict__["auth_token"] = auth_token
505
576
  __props__.__dict__["name"] = name
506
577
  if properties is None and not opts.urn:
507
578
  raise TypeError("Missing required property 'properties'")
508
579
  __props__.__dict__["properties"] = properties
580
+ __props__.__dict__["secure_url"] = secure_url
509
581
  if type is None and not opts.urn:
510
582
  raise TypeError("Missing required property 'type'")
511
583
  __props__.__dict__["type"] = type
@@ -525,11 +597,13 @@ class NotificationDestination(pulumi.CustomResource):
525
597
  account_id: Optional[pulumi.Input[int]] = None,
526
598
  active: Optional[pulumi.Input[bool]] = None,
527
599
  auth_basic: Optional[pulumi.Input[pulumi.InputType['NotificationDestinationAuthBasicArgs']]] = None,
600
+ auth_custom_headers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationAuthCustomHeaderArgs']]]]] = None,
528
601
  auth_token: Optional[pulumi.Input[pulumi.InputType['NotificationDestinationAuthTokenArgs']]] = None,
529
602
  guid: Optional[pulumi.Input[str]] = None,
530
603
  last_sent: Optional[pulumi.Input[str]] = None,
531
604
  name: Optional[pulumi.Input[str]] = None,
532
605
  properties: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationPropertyArgs']]]]] = None,
606
+ secure_url: Optional[pulumi.Input[pulumi.InputType['NotificationDestinationSecureUrlArgs']]] = None,
533
607
  status: Optional[pulumi.Input[str]] = None,
534
608
  type: Optional[pulumi.Input[str]] = None) -> 'NotificationDestination':
535
609
  """
@@ -542,11 +616,13 @@ class NotificationDestination(pulumi.CustomResource):
542
616
  :param pulumi.Input[int] account_id: Determines the New Relic account where the notification destination will be created. Defaults to the account associated with the API key used.
543
617
  :param pulumi.Input[bool] active: Indicates whether the destination is active.
544
618
  :param pulumi.Input[pulumi.InputType['NotificationDestinationAuthBasicArgs']] auth_basic: A nested block that describes a basic username and password authentication credentials. Only one auth_basic block is permitted per notification destination definition. See Nested auth_basic blocks below for details.
619
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationAuthCustomHeaderArgs']]]] auth_custom_headers: A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
545
620
  :param pulumi.Input[pulumi.InputType['NotificationDestinationAuthTokenArgs']] auth_token: A nested block that describes a token authentication credentials. Only one auth_token block is permitted per notification destination definition. See Nested auth_token blocks below for details.
546
621
  :param pulumi.Input[str] guid: The unique entity identifier of the destination in New Relic.
547
622
  :param pulumi.Input[str] last_sent: The last time a notification was sent.
548
623
  :param pulumi.Input[str] name: The name of the destination.
549
624
  :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationDestinationPropertyArgs']]]] properties: A nested block that describes a notification destination property. See Nested property blocks below for details.
625
+ :param pulumi.Input[pulumi.InputType['NotificationDestinationSecureUrlArgs']] secure_url: A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url blocks below for details.
550
626
  :param pulumi.Input[str] status: The status of the destination.
551
627
  :param pulumi.Input[str] type: (Required) The type of the destination. One of: (WEBHOOK, EMAIL, SERVICE_NOW, PAGERDUTY_ACCOUNT_INTEGRATION,
552
628
  PAGERDUTY_SERVICE_INTEGRATION, JIRA, SLACK, SLACK_COLLABORATION, SLACK_LEGACY, MOBILE_PUSH, EVENT_BRIDGE).
@@ -558,11 +634,13 @@ class NotificationDestination(pulumi.CustomResource):
558
634
  __props__.__dict__["account_id"] = account_id
559
635
  __props__.__dict__["active"] = active
560
636
  __props__.__dict__["auth_basic"] = auth_basic
637
+ __props__.__dict__["auth_custom_headers"] = auth_custom_headers
561
638
  __props__.__dict__["auth_token"] = auth_token
562
639
  __props__.__dict__["guid"] = guid
563
640
  __props__.__dict__["last_sent"] = last_sent
564
641
  __props__.__dict__["name"] = name
565
642
  __props__.__dict__["properties"] = properties
643
+ __props__.__dict__["secure_url"] = secure_url
566
644
  __props__.__dict__["status"] = status
567
645
  __props__.__dict__["type"] = type
568
646
  return NotificationDestination(resource_name, opts=opts, __props__=__props__)
@@ -591,6 +669,14 @@ class NotificationDestination(pulumi.CustomResource):
591
669
  """
592
670
  return pulumi.get(self, "auth_basic")
593
671
 
672
+ @property
673
+ @pulumi.getter(name="authCustomHeaders")
674
+ def auth_custom_headers(self) -> pulumi.Output[Optional[Sequence['outputs.NotificationDestinationAuthCustomHeader']]]:
675
+ """
676
+ A nested block that describes a custom header authentication credentials. Multiple blocks are permitted per notification destination definition. Nested auth_custom_header blocks below for details.
677
+ """
678
+ return pulumi.get(self, "auth_custom_headers")
679
+
594
680
  @property
595
681
  @pulumi.getter(name="authToken")
596
682
  def auth_token(self) -> pulumi.Output[Optional['outputs.NotificationDestinationAuthToken']]:
@@ -631,6 +717,14 @@ class NotificationDestination(pulumi.CustomResource):
631
717
  """
632
718
  return pulumi.get(self, "properties")
633
719
 
720
+ @property
721
+ @pulumi.getter(name="secureUrl")
722
+ def secure_url(self) -> pulumi.Output[Optional['outputs.NotificationDestinationSecureUrl']]:
723
+ """
724
+ A nested block that describes a URL that contains sensitive data at the path or parameters. Only one secure_url block is permitted per notification destination definition. See Nested secure_url blocks below for details.
725
+ """
726
+ return pulumi.get(self, "secure_url")
727
+
634
728
  @property
635
729
  @pulumi.getter
636
730
  def status(self) -> pulumi.Output[str]:
@@ -913,16 +913,16 @@ class NrqlAlertCondition(pulumi.CustomResource):
913
913
 
914
914
  ### Type: `static` (default)
915
915
 
916
- <!--Start PulumiCodeChooser -->
917
916
  ```python
918
917
  import pulumi
919
918
  import pulumi_newrelic as newrelic
920
919
 
921
- foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
922
- foo_nrql_alert_condition = newrelic.NrqlAlertCondition("fooNrqlAlertCondition",
920
+ foo = newrelic.AlertPolicy("foo", name="foo")
921
+ foo_nrql_alert_condition = newrelic.NrqlAlertCondition("foo",
923
922
  account_id=12345678,
924
- policy_id=foo_alert_policy.id,
923
+ policy_id=foo.id,
925
924
  type="static",
925
+ name="foo",
926
926
  description="Alert when transactions are taking too long",
927
927
  runbook_url="https://www.example.com",
928
928
  enabled=True,
@@ -952,7 +952,6 @@ class NrqlAlertCondition(pulumi.CustomResource):
952
952
  threshold_occurrences="ALL",
953
953
  ))
954
954
  ```
955
- <!--End PulumiCodeChooser -->
956
955
 
957
956
  ## NRQL
958
957
 
@@ -992,16 +991,16 @@ class NrqlAlertCondition(pulumi.CustomResource):
992
991
 
993
992
  [Baseline NRQL alert conditions](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/create-baseline-alert-conditions) are dynamic in nature and adjust to the behavior of your data. The example below demonstrates a baseline NRQL alert condition for alerting when transaction durations are above a specified threshold and dynamically adjusts based on data trends.
994
993
 
995
- <!--Start PulumiCodeChooser -->
996
994
  ```python
997
995
  import pulumi
998
996
  import pulumi_newrelic as newrelic
999
997
 
1000
- foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
1001
- foo_nrql_alert_condition = newrelic.NrqlAlertCondition("fooNrqlAlertCondition",
998
+ foo = newrelic.AlertPolicy("foo", name="foo")
999
+ foo_nrql_alert_condition = newrelic.NrqlAlertCondition("foo",
1002
1000
  account_id="your_account_id",
1003
- policy_id=foo_alert_policy.id,
1001
+ policy_id=foo.id,
1004
1002
  type="static",
1003
+ name="foo",
1005
1004
  description="Alert when transactions are taking too long",
1006
1005
  runbook_url="https://www.example.com",
1007
1006
  enabled=True,
@@ -1031,22 +1030,21 @@ class NrqlAlertCondition(pulumi.CustomResource):
1031
1030
  threshold_occurrences="ALL",
1032
1031
  ))
1033
1032
  ```
1034
- <!--End PulumiCodeChooser -->
1035
1033
 
1036
1034
  ## Tags
1037
1035
 
1038
1036
  Manage NRQL alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check `EntityTags`.
1039
1037
 
1040
- <!--Start PulumiCodeChooser -->
1041
1038
  ```python
1042
1039
  import pulumi
1043
1040
  import pulumi_newrelic as newrelic
1044
1041
 
1045
- foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
1046
- foo_nrql_alert_condition = newrelic.NrqlAlertCondition("fooNrqlAlertCondition",
1042
+ foo = newrelic.AlertPolicy("foo", name="foo")
1043
+ foo_nrql_alert_condition = newrelic.NrqlAlertCondition("foo",
1047
1044
  account_id=12345678,
1048
- policy_id=foo_alert_policy.id,
1045
+ policy_id=foo.id,
1049
1046
  type="static",
1047
+ name="foo",
1050
1048
  description="Alert when transactions are taking too long",
1051
1049
  runbook_url="https://www.example.com",
1052
1050
  enabled=True,
@@ -1075,7 +1073,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
1075
1073
  threshold_duration=600,
1076
1074
  threshold_occurrences="ALL",
1077
1075
  ))
1078
- my_condition_entity_tags = newrelic.EntityTags("myConditionEntityTags",
1076
+ my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
1079
1077
  guid=foo_nrql_alert_condition.entity_guid,
1080
1078
  tags=[
1081
1079
  newrelic.EntityTagsTagArgs(
@@ -1091,7 +1089,6 @@ class NrqlAlertCondition(pulumi.CustomResource):
1091
1089
  ),
1092
1090
  ])
1093
1091
  ```
1094
- <!--End PulumiCodeChooser -->
1095
1092
 
1096
1093
  <small>alerts.newrelic.com/accounts/**\\<account_id\\>**/policies/**\\<policy_id\\>**/conditions/**\\<condition_id\\>**/edit</small>
1097
1094
 
@@ -1103,13 +1100,13 @@ class NrqlAlertCondition(pulumi.CustomResource):
1103
1100
 
1104
1101
  An example resource from 1.x might look like the following.
1105
1102
 
1106
- <!--Start PulumiCodeChooser -->
1107
1103
  ```python
1108
1104
  import pulumi
1109
1105
  import pulumi_newrelic as newrelic
1110
1106
 
1111
- nrql_alert_condition = newrelic.NrqlAlertCondition("nrqlAlertCondition",
1112
- policy_id=newrelic_alert_policy["z"]["id"],
1107
+ z = newrelic.NrqlAlertCondition("z",
1108
+ policy_id=z_newrelic_alert_policy["id"],
1109
+ name="zleslie-test",
1113
1110
  type="static",
1114
1111
  runbook_url="https://localhost",
1115
1112
  enabled=True,
@@ -1124,18 +1121,17 @@ class NrqlAlertCondition(pulumi.CustomResource):
1124
1121
  query="SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
1125
1122
  ))
1126
1123
  ```
1127
- <!--End PulumiCodeChooser -->
1128
1124
 
1129
1125
  After making the appropriate adjustments mentioned in the deprecation warnings,
1130
1126
  the resource now looks like the following.
1131
1127
 
1132
- <!--Start PulumiCodeChooser -->
1133
1128
  ```python
1134
1129
  import pulumi
1135
1130
  import pulumi_newrelic as newrelic
1136
1131
 
1137
- nrql_alert_condition = newrelic.NrqlAlertCondition("nrqlAlertCondition",
1138
- policy_id=newrelic_alert_policy["z"]["id"],
1132
+ z = newrelic.NrqlAlertCondition("z",
1133
+ policy_id=z_newrelic_alert_policy["id"],
1134
+ name="zleslie-test",
1139
1135
  type="static",
1140
1136
  runbook_url="https://localhost",
1141
1137
  enabled=True,
@@ -1151,7 +1147,6 @@ class NrqlAlertCondition(pulumi.CustomResource):
1151
1147
  query="SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
1152
1148
  ))
1153
1149
  ```
1154
- <!--End PulumiCodeChooser -->
1155
1150
 
1156
1151
  ## Import
1157
1152
 
@@ -1212,16 +1207,16 @@ class NrqlAlertCondition(pulumi.CustomResource):
1212
1207
 
1213
1208
  ### Type: `static` (default)
1214
1209
 
1215
- <!--Start PulumiCodeChooser -->
1216
1210
  ```python
1217
1211
  import pulumi
1218
1212
  import pulumi_newrelic as newrelic
1219
1213
 
1220
- foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
1221
- foo_nrql_alert_condition = newrelic.NrqlAlertCondition("fooNrqlAlertCondition",
1214
+ foo = newrelic.AlertPolicy("foo", name="foo")
1215
+ foo_nrql_alert_condition = newrelic.NrqlAlertCondition("foo",
1222
1216
  account_id=12345678,
1223
- policy_id=foo_alert_policy.id,
1217
+ policy_id=foo.id,
1224
1218
  type="static",
1219
+ name="foo",
1225
1220
  description="Alert when transactions are taking too long",
1226
1221
  runbook_url="https://www.example.com",
1227
1222
  enabled=True,
@@ -1251,7 +1246,6 @@ class NrqlAlertCondition(pulumi.CustomResource):
1251
1246
  threshold_occurrences="ALL",
1252
1247
  ))
1253
1248
  ```
1254
- <!--End PulumiCodeChooser -->
1255
1249
 
1256
1250
  ## NRQL
1257
1251
 
@@ -1291,16 +1285,16 @@ class NrqlAlertCondition(pulumi.CustomResource):
1291
1285
 
1292
1286
  [Baseline NRQL alert conditions](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/create-baseline-alert-conditions) are dynamic in nature and adjust to the behavior of your data. The example below demonstrates a baseline NRQL alert condition for alerting when transaction durations are above a specified threshold and dynamically adjusts based on data trends.
1293
1287
 
1294
- <!--Start PulumiCodeChooser -->
1295
1288
  ```python
1296
1289
  import pulumi
1297
1290
  import pulumi_newrelic as newrelic
1298
1291
 
1299
- foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
1300
- foo_nrql_alert_condition = newrelic.NrqlAlertCondition("fooNrqlAlertCondition",
1292
+ foo = newrelic.AlertPolicy("foo", name="foo")
1293
+ foo_nrql_alert_condition = newrelic.NrqlAlertCondition("foo",
1301
1294
  account_id="your_account_id",
1302
- policy_id=foo_alert_policy.id,
1295
+ policy_id=foo.id,
1303
1296
  type="static",
1297
+ name="foo",
1304
1298
  description="Alert when transactions are taking too long",
1305
1299
  runbook_url="https://www.example.com",
1306
1300
  enabled=True,
@@ -1330,22 +1324,21 @@ class NrqlAlertCondition(pulumi.CustomResource):
1330
1324
  threshold_occurrences="ALL",
1331
1325
  ))
1332
1326
  ```
1333
- <!--End PulumiCodeChooser -->
1334
1327
 
1335
1328
  ## Tags
1336
1329
 
1337
1330
  Manage NRQL alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check `EntityTags`.
1338
1331
 
1339
- <!--Start PulumiCodeChooser -->
1340
1332
  ```python
1341
1333
  import pulumi
1342
1334
  import pulumi_newrelic as newrelic
1343
1335
 
1344
- foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
1345
- foo_nrql_alert_condition = newrelic.NrqlAlertCondition("fooNrqlAlertCondition",
1336
+ foo = newrelic.AlertPolicy("foo", name="foo")
1337
+ foo_nrql_alert_condition = newrelic.NrqlAlertCondition("foo",
1346
1338
  account_id=12345678,
1347
- policy_id=foo_alert_policy.id,
1339
+ policy_id=foo.id,
1348
1340
  type="static",
1341
+ name="foo",
1349
1342
  description="Alert when transactions are taking too long",
1350
1343
  runbook_url="https://www.example.com",
1351
1344
  enabled=True,
@@ -1374,7 +1367,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
1374
1367
  threshold_duration=600,
1375
1368
  threshold_occurrences="ALL",
1376
1369
  ))
1377
- my_condition_entity_tags = newrelic.EntityTags("myConditionEntityTags",
1370
+ my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
1378
1371
  guid=foo_nrql_alert_condition.entity_guid,
1379
1372
  tags=[
1380
1373
  newrelic.EntityTagsTagArgs(
@@ -1390,7 +1383,6 @@ class NrqlAlertCondition(pulumi.CustomResource):
1390
1383
  ),
1391
1384
  ])
1392
1385
  ```
1393
- <!--End PulumiCodeChooser -->
1394
1386
 
1395
1387
  <small>alerts.newrelic.com/accounts/**\\<account_id\\>**/policies/**\\<policy_id\\>**/conditions/**\\<condition_id\\>**/edit</small>
1396
1388
 
@@ -1402,13 +1394,13 @@ class NrqlAlertCondition(pulumi.CustomResource):
1402
1394
 
1403
1395
  An example resource from 1.x might look like the following.
1404
1396
 
1405
- <!--Start PulumiCodeChooser -->
1406
1397
  ```python
1407
1398
  import pulumi
1408
1399
  import pulumi_newrelic as newrelic
1409
1400
 
1410
- nrql_alert_condition = newrelic.NrqlAlertCondition("nrqlAlertCondition",
1411
- policy_id=newrelic_alert_policy["z"]["id"],
1401
+ z = newrelic.NrqlAlertCondition("z",
1402
+ policy_id=z_newrelic_alert_policy["id"],
1403
+ name="zleslie-test",
1412
1404
  type="static",
1413
1405
  runbook_url="https://localhost",
1414
1406
  enabled=True,
@@ -1423,18 +1415,17 @@ class NrqlAlertCondition(pulumi.CustomResource):
1423
1415
  query="SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
1424
1416
  ))
1425
1417
  ```
1426
- <!--End PulumiCodeChooser -->
1427
1418
 
1428
1419
  After making the appropriate adjustments mentioned in the deprecation warnings,
1429
1420
  the resource now looks like the following.
1430
1421
 
1431
- <!--Start PulumiCodeChooser -->
1432
1422
  ```python
1433
1423
  import pulumi
1434
1424
  import pulumi_newrelic as newrelic
1435
1425
 
1436
- nrql_alert_condition = newrelic.NrqlAlertCondition("nrqlAlertCondition",
1437
- policy_id=newrelic_alert_policy["z"]["id"],
1426
+ z = newrelic.NrqlAlertCondition("z",
1427
+ policy_id=z_newrelic_alert_policy["id"],
1428
+ name="zleslie-test",
1438
1429
  type="static",
1439
1430
  runbook_url="https://localhost",
1440
1431
  enabled=True,
@@ -1450,7 +1441,6 @@ class NrqlAlertCondition(pulumi.CustomResource):
1450
1441
  query="SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
1451
1442
  ))
1452
1443
  ```
1453
- <!--End PulumiCodeChooser -->
1454
1444
 
1455
1445
  ## Import
1456
1446