pulumi-newrelic 5.28.0a1723107045__py3-none-any.whl → 5.29.0a1723454189__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 (41) hide show
  1. pulumi_newrelic/alert_channel.py +69 -69
  2. pulumi_newrelic/alert_condition.py +49 -49
  3. pulumi_newrelic/alert_muting_rule.py +54 -54
  4. pulumi_newrelic/alert_policy.py +16 -16
  5. pulumi_newrelic/alert_policy_channel.py +16 -16
  6. pulumi_newrelic/cloud/aws_govcloud_integrations.py +100 -100
  7. pulumi_newrelic/cloud/aws_integrations.py +798 -798
  8. pulumi_newrelic/cloud/azure_integrations.py +424 -424
  9. pulumi_newrelic/cloud/gcp_integrations.py +288 -288
  10. pulumi_newrelic/entity_tags.py +21 -21
  11. pulumi_newrelic/get_application.py +14 -14
  12. pulumi_newrelic/get_entity.py +4 -4
  13. pulumi_newrelic/get_key_transaction.py +14 -14
  14. pulumi_newrelic/get_notification_destination.py +4 -4
  15. pulumi_newrelic/get_obfuscation_expression.py +10 -10
  16. pulumi_newrelic/get_service_level_alert_helper.py +76 -76
  17. pulumi_newrelic/infra_alert_condition.py +90 -90
  18. pulumi_newrelic/insights/event.py +43 -43
  19. pulumi_newrelic/monitor_downtime.py +52 -52
  20. pulumi_newrelic/notification_channel.py +187 -187
  21. pulumi_newrelic/notification_destination.py +25 -25
  22. pulumi_newrelic/nrql_alert_condition.py +164 -164
  23. pulumi_newrelic/obfuscation_rule.py +15 -15
  24. pulumi_newrelic/one_dashboard.py +10 -10
  25. pulumi_newrelic/one_dashboard_raw.py +75 -75
  26. pulumi_newrelic/plugins/workload.py +101 -101
  27. pulumi_newrelic/pulumi-plugin.json +1 -1
  28. pulumi_newrelic/service_level.py +164 -164
  29. pulumi_newrelic/synthetics/alert_condition.py +32 -32
  30. pulumi_newrelic/synthetics/broken_links_monitor.py +21 -21
  31. pulumi_newrelic/synthetics/cert_check_monitor.py +21 -21
  32. pulumi_newrelic/synthetics/get_private_location.py +6 -6
  33. pulumi_newrelic/synthetics/monitor.py +74 -74
  34. pulumi_newrelic/synthetics/multi_location_alert_condition.py +66 -66
  35. pulumi_newrelic/synthetics/script_monitor.py +58 -58
  36. pulumi_newrelic/synthetics/step_monitor.py +59 -59
  37. pulumi_newrelic/workflow.py +155 -155
  38. {pulumi_newrelic-5.28.0a1723107045.dist-info → pulumi_newrelic-5.29.0a1723454189.dist-info}/METADATA +1 -1
  39. {pulumi_newrelic-5.28.0a1723107045.dist-info → pulumi_newrelic-5.29.0a1723454189.dist-info}/RECORD +41 -41
  40. {pulumi_newrelic-5.28.0a1723107045.dist-info → pulumi_newrelic-5.29.0a1723454189.dist-info}/WHEEL +0 -0
  41. {pulumi_newrelic-5.28.0a1723107045.dist-info → pulumi_newrelic-5.29.0a1723454189.dist-info}/top_level.txt +0 -0
@@ -162,7 +162,7 @@ class AlertChannel(pulumi.CustomResource):
162
162
  resource_name: str,
163
163
  opts: Optional[pulumi.ResourceOptions] = None,
164
164
  account_id: Optional[pulumi.Input[str]] = None,
165
- config: Optional[pulumi.Input[pulumi.InputType['AlertChannelConfigArgs']]] = None,
165
+ config: Optional[pulumi.Input[Union['AlertChannelConfigArgs', 'AlertChannelConfigArgsDict']]] = None,
166
166
  name: Optional[pulumi.Input[str]] = None,
167
167
  type: Optional[pulumi.Input[str]] = None,
168
168
  __props__=None):
@@ -181,10 +181,10 @@ class AlertChannel(pulumi.CustomResource):
181
181
  foo = newrelic.AlertChannel("foo",
182
182
  name="foo",
183
183
  type="email",
184
- config=newrelic.AlertChannelConfigArgs(
185
- recipients="foo@example.com",
186
- include_json_attachment="true",
187
- ))
184
+ config={
185
+ "recipients": "foo@example.com",
186
+ "include_json_attachment": "true",
187
+ })
188
188
  ```
189
189
 
190
190
  ## Additional Examples
@@ -197,10 +197,10 @@ class AlertChannel(pulumi.CustomResource):
197
197
  foo = newrelic.AlertChannel("foo",
198
198
  name="slack-example",
199
199
  type="slack",
200
- config=newrelic.AlertChannelConfigArgs(
201
- url="https://hooks.slack.com/services/XXXXXXX/XXXXXXX/XXXXXXXXXX",
202
- channel="example-alerts-channel",
203
- ))
200
+ config={
201
+ "url": "https://hooks.slack.com/services/XXXXXXX/XXXXXXX/XXXXXXXXXX",
202
+ "channel": "example-alerts-channel",
203
+ })
204
204
  ```
205
205
 
206
206
  > **NOTE:** For instructions on setting up Webhooks with Slack, please visit the article linked under the argument `slack` in the aforementioned configuration, or [this article](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-notifications/notification-channels-control-where-send-alerts/#slack) in New Relic's docs for additional details on setting up the `New Relic Alerts` Slack application, and subsequently using the generated Webhook URL.
@@ -213,12 +213,12 @@ class AlertChannel(pulumi.CustomResource):
213
213
  foo = newrelic.AlertChannel("foo",
214
214
  name="opsgenie-example",
215
215
  type="opsgenie",
216
- config=newrelic.AlertChannelConfigArgs(
217
- api_key="abc123",
218
- teams="team1, team2",
219
- tags="tag1, tag2",
220
- recipients="user1@domain.com, user2@domain.com",
221
- ))
216
+ config={
217
+ "api_key": "abc123",
218
+ "teams": "team1, team2",
219
+ "tags": "tag1, tag2",
220
+ "recipients": "user1@domain.com, user2@domain.com",
221
+ })
222
222
  ```
223
223
 
224
224
  ### PagerDuty
@@ -229,9 +229,9 @@ class AlertChannel(pulumi.CustomResource):
229
229
  foo = newrelic.AlertChannel("foo",
230
230
  name="pagerduty-example",
231
231
  type="pagerduty",
232
- config=newrelic.AlertChannelConfigArgs(
233
- service_key="abc123",
234
- ))
232
+ config={
233
+ "service_key": "abc123",
234
+ })
235
235
  ```
236
236
 
237
237
  ### VictorOps
@@ -242,10 +242,10 @@ class AlertChannel(pulumi.CustomResource):
242
242
  foo = newrelic.AlertChannel("foo",
243
243
  name="victorops-example",
244
244
  type="victorops",
245
- config=newrelic.AlertChannelConfigArgs(
246
- key="abc123",
247
- route_key="/example",
248
- ))
245
+ config={
246
+ "key": "abc123",
247
+ "route_key": "/example",
248
+ })
249
249
  ```
250
250
 
251
251
  ### Webhook
@@ -256,18 +256,18 @@ class AlertChannel(pulumi.CustomResource):
256
256
  foo = newrelic.AlertChannel("foo",
257
257
  name="webhook-example",
258
258
  type="webhook",
259
- config=newrelic.AlertChannelConfigArgs(
260
- base_url="http://www.test.com",
261
- payload_type="application/json",
262
- payload={
259
+ config={
260
+ "base_url": "http://www.test.com",
261
+ "payload_type": "application/json",
262
+ "payload": {
263
263
  "condition_name": "$CONDITION_NAME",
264
264
  "policy_name": "$POLICY_NAME",
265
265
  },
266
- headers={
266
+ "headers": {
267
267
  "header1": value1,
268
268
  "header2": value2,
269
269
  },
270
- ))
270
+ })
271
271
  ```
272
272
 
273
273
  ### Webhook with complex payload
@@ -278,17 +278,17 @@ class AlertChannel(pulumi.CustomResource):
278
278
  foo = newrelic.AlertChannel("foo",
279
279
  name="webhook-example",
280
280
  type="webhook",
281
- config=newrelic.AlertChannelConfigArgs(
282
- base_url="http://www.test.com",
283
- payload_type="application/json",
284
- payload_string=\"\"\"{
281
+ config={
282
+ "base_url": "http://www.test.com",
283
+ "payload_type": "application/json",
284
+ "payload_string": \"\"\"{
285
285
  "my_custom_values": {
286
286
  "condition_name": "$CONDITION_NAME",
287
287
  "policy_name": "$POLICY_NAME"
288
288
  }
289
289
  }
290
290
  \"\"\",
291
- ))
291
+ })
292
292
  ```
293
293
 
294
294
  ## Import
@@ -304,7 +304,7 @@ class AlertChannel(pulumi.CustomResource):
304
304
  :param str resource_name: The name of the resource.
305
305
  :param pulumi.ResourceOptions opts: Options for the resource.
306
306
  :param pulumi.Input[str] account_id: Determines the New Relic account where the alert channel will be created. Defaults to the account associated with the API key used.
307
- :param pulumi.Input[pulumi.InputType['AlertChannelConfigArgs']] config: A nested block that describes an alert channel configuration. Only one config block is permitted per alert channel definition. See Nested config blocks below for details.
307
+ :param pulumi.Input[Union['AlertChannelConfigArgs', 'AlertChannelConfigArgsDict']] config: A nested block that describes an alert channel configuration. Only one config block is permitted per alert channel definition. See Nested config blocks below for details.
308
308
  :param pulumi.Input[str] name: The name of the channel.
309
309
  :param pulumi.Input[str] type: The type of channel. One of: `email`, `slack`, `opsgenie`, `pagerduty`, `victorops`, or `webhook`.
310
310
  """
@@ -329,10 +329,10 @@ class AlertChannel(pulumi.CustomResource):
329
329
  foo = newrelic.AlertChannel("foo",
330
330
  name="foo",
331
331
  type="email",
332
- config=newrelic.AlertChannelConfigArgs(
333
- recipients="foo@example.com",
334
- include_json_attachment="true",
335
- ))
332
+ config={
333
+ "recipients": "foo@example.com",
334
+ "include_json_attachment": "true",
335
+ })
336
336
  ```
337
337
 
338
338
  ## Additional Examples
@@ -345,10 +345,10 @@ class AlertChannel(pulumi.CustomResource):
345
345
  foo = newrelic.AlertChannel("foo",
346
346
  name="slack-example",
347
347
  type="slack",
348
- config=newrelic.AlertChannelConfigArgs(
349
- url="https://hooks.slack.com/services/XXXXXXX/XXXXXXX/XXXXXXXXXX",
350
- channel="example-alerts-channel",
351
- ))
348
+ config={
349
+ "url": "https://hooks.slack.com/services/XXXXXXX/XXXXXXX/XXXXXXXXXX",
350
+ "channel": "example-alerts-channel",
351
+ })
352
352
  ```
353
353
 
354
354
  > **NOTE:** For instructions on setting up Webhooks with Slack, please visit the article linked under the argument `slack` in the aforementioned configuration, or [this article](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-notifications/notification-channels-control-where-send-alerts/#slack) in New Relic's docs for additional details on setting up the `New Relic Alerts` Slack application, and subsequently using the generated Webhook URL.
@@ -361,12 +361,12 @@ class AlertChannel(pulumi.CustomResource):
361
361
  foo = newrelic.AlertChannel("foo",
362
362
  name="opsgenie-example",
363
363
  type="opsgenie",
364
- config=newrelic.AlertChannelConfigArgs(
365
- api_key="abc123",
366
- teams="team1, team2",
367
- tags="tag1, tag2",
368
- recipients="user1@domain.com, user2@domain.com",
369
- ))
364
+ config={
365
+ "api_key": "abc123",
366
+ "teams": "team1, team2",
367
+ "tags": "tag1, tag2",
368
+ "recipients": "user1@domain.com, user2@domain.com",
369
+ })
370
370
  ```
371
371
 
372
372
  ### PagerDuty
@@ -377,9 +377,9 @@ class AlertChannel(pulumi.CustomResource):
377
377
  foo = newrelic.AlertChannel("foo",
378
378
  name="pagerduty-example",
379
379
  type="pagerduty",
380
- config=newrelic.AlertChannelConfigArgs(
381
- service_key="abc123",
382
- ))
380
+ config={
381
+ "service_key": "abc123",
382
+ })
383
383
  ```
384
384
 
385
385
  ### VictorOps
@@ -390,10 +390,10 @@ class AlertChannel(pulumi.CustomResource):
390
390
  foo = newrelic.AlertChannel("foo",
391
391
  name="victorops-example",
392
392
  type="victorops",
393
- config=newrelic.AlertChannelConfigArgs(
394
- key="abc123",
395
- route_key="/example",
396
- ))
393
+ config={
394
+ "key": "abc123",
395
+ "route_key": "/example",
396
+ })
397
397
  ```
398
398
 
399
399
  ### Webhook
@@ -404,18 +404,18 @@ class AlertChannel(pulumi.CustomResource):
404
404
  foo = newrelic.AlertChannel("foo",
405
405
  name="webhook-example",
406
406
  type="webhook",
407
- config=newrelic.AlertChannelConfigArgs(
408
- base_url="http://www.test.com",
409
- payload_type="application/json",
410
- payload={
407
+ config={
408
+ "base_url": "http://www.test.com",
409
+ "payload_type": "application/json",
410
+ "payload": {
411
411
  "condition_name": "$CONDITION_NAME",
412
412
  "policy_name": "$POLICY_NAME",
413
413
  },
414
- headers={
414
+ "headers": {
415
415
  "header1": value1,
416
416
  "header2": value2,
417
417
  },
418
- ))
418
+ })
419
419
  ```
420
420
 
421
421
  ### Webhook with complex payload
@@ -426,17 +426,17 @@ class AlertChannel(pulumi.CustomResource):
426
426
  foo = newrelic.AlertChannel("foo",
427
427
  name="webhook-example",
428
428
  type="webhook",
429
- config=newrelic.AlertChannelConfigArgs(
430
- base_url="http://www.test.com",
431
- payload_type="application/json",
432
- payload_string=\"\"\"{
429
+ config={
430
+ "base_url": "http://www.test.com",
431
+ "payload_type": "application/json",
432
+ "payload_string": \"\"\"{
433
433
  "my_custom_values": {
434
434
  "condition_name": "$CONDITION_NAME",
435
435
  "policy_name": "$POLICY_NAME"
436
436
  }
437
437
  }
438
438
  \"\"\",
439
- ))
439
+ })
440
440
  ```
441
441
 
442
442
  ## Import
@@ -465,7 +465,7 @@ class AlertChannel(pulumi.CustomResource):
465
465
  resource_name: str,
466
466
  opts: Optional[pulumi.ResourceOptions] = None,
467
467
  account_id: Optional[pulumi.Input[str]] = None,
468
- config: Optional[pulumi.Input[pulumi.InputType['AlertChannelConfigArgs']]] = None,
468
+ config: Optional[pulumi.Input[Union['AlertChannelConfigArgs', 'AlertChannelConfigArgsDict']]] = None,
469
469
  name: Optional[pulumi.Input[str]] = None,
470
470
  type: Optional[pulumi.Input[str]] = None,
471
471
  __props__=None):
@@ -494,7 +494,7 @@ class AlertChannel(pulumi.CustomResource):
494
494
  id: pulumi.Input[str],
495
495
  opts: Optional[pulumi.ResourceOptions] = None,
496
496
  account_id: Optional[pulumi.Input[str]] = None,
497
- config: Optional[pulumi.Input[pulumi.InputType['AlertChannelConfigArgs']]] = None,
497
+ config: Optional[pulumi.Input[Union['AlertChannelConfigArgs', 'AlertChannelConfigArgsDict']]] = None,
498
498
  name: Optional[pulumi.Input[str]] = None,
499
499
  type: Optional[pulumi.Input[str]] = None) -> 'AlertChannel':
500
500
  """
@@ -505,7 +505,7 @@ class AlertChannel(pulumi.CustomResource):
505
505
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
506
506
  :param pulumi.ResourceOptions opts: Options for the resource.
507
507
  :param pulumi.Input[str] account_id: Determines the New Relic account where the alert channel will be created. Defaults to the account associated with the API key used.
508
- :param pulumi.Input[pulumi.InputType['AlertChannelConfigArgs']] config: A nested block that describes an alert channel configuration. Only one config block is permitted per alert channel definition. See Nested config blocks below for details.
508
+ :param pulumi.Input[Union['AlertChannelConfigArgs', 'AlertChannelConfigArgsDict']] config: A nested block that describes an alert channel configuration. Only one config block is permitted per alert channel definition. See Nested config blocks below for details.
509
509
  :param pulumi.Input[str] name: The name of the channel.
510
510
  :param pulumi.Input[str] type: The type of channel. One of: `email`, `slack`, `opsgenie`, `pagerduty`, `victorops`, or `webhook`.
511
511
  """
@@ -501,7 +501,7 @@ class AlertCondition(pulumi.CustomResource):
501
501
  name: Optional[pulumi.Input[str]] = None,
502
502
  policy_id: Optional[pulumi.Input[str]] = None,
503
503
  runbook_url: Optional[pulumi.Input[str]] = None,
504
- terms: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertConditionTermArgs']]]]] = None,
504
+ terms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AlertConditionTermArgs', 'AlertConditionTermArgsDict']]]]] = None,
505
505
  type: Optional[pulumi.Input[str]] = None,
506
506
  user_defined_metric: Optional[pulumi.Input[str]] = None,
507
507
  user_defined_value_function: Optional[pulumi.Input[str]] = None,
@@ -530,13 +530,13 @@ class AlertCondition(pulumi.CustomResource):
530
530
  metric="apdex",
531
531
  runbook_url="https://www.example.com",
532
532
  condition_scope="application",
533
- terms=[newrelic.AlertConditionTermArgs(
534
- duration=5,
535
- operator="below",
536
- priority="critical",
537
- threshold=0.75,
538
- time_function="all",
539
- )])
533
+ terms=[{
534
+ "duration": 5,
535
+ "operator": "below",
536
+ "priority": "critical",
537
+ "threshold": 0.75,
538
+ "time_function": "all",
539
+ }])
540
540
  ```
541
541
 
542
542
  ## Terms
@@ -567,27 +567,27 @@ class AlertCondition(pulumi.CustomResource):
567
567
  metric="apdex",
568
568
  runbook_url="https://www.example.com",
569
569
  condition_scope="application",
570
- terms=[newrelic.AlertConditionTermArgs(
571
- duration=5,
572
- operator="below",
573
- priority="critical",
574
- threshold=0.75,
575
- time_function="all",
576
- )])
570
+ terms=[{
571
+ "duration": 5,
572
+ "operator": "below",
573
+ "priority": "critical",
574
+ "threshold": 0.75,
575
+ "time_function": "all",
576
+ }])
577
577
  my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
578
578
  guid=foo_alert_condition.entity_guid,
579
579
  tags=[
580
- newrelic.EntityTagsTagArgs(
581
- key="my-key",
582
- values=[
580
+ {
581
+ "key": "my-key",
582
+ "values": [
583
583
  "my-value",
584
584
  "my-other-value",
585
585
  ],
586
- ),
587
- newrelic.EntityTagsTagArgs(
588
- key="my-key-2",
589
- values=["my-value-2"],
590
- ),
586
+ },
587
+ {
588
+ "key": "my-key-2",
589
+ "values": ["my-value-2"],
590
+ },
591
591
  ])
592
592
  ```
593
593
 
@@ -609,7 +609,7 @@ class AlertCondition(pulumi.CustomResource):
609
609
  :param pulumi.Input[str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
610
610
  :param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
611
611
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
612
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertConditionTermArgs']]]] terms: A list of terms for this condition. See Terms below for details.
612
+ :param pulumi.Input[Sequence[pulumi.Input[Union['AlertConditionTermArgs', 'AlertConditionTermArgsDict']]]] terms: A list of terms for this condition. See Terms below for details.
613
613
  :param pulumi.Input[str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
614
614
  :param pulumi.Input[str] user_defined_metric: A custom metric to be evaluated.
615
615
  :param pulumi.Input[str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
@@ -652,13 +652,13 @@ class AlertCondition(pulumi.CustomResource):
652
652
  metric="apdex",
653
653
  runbook_url="https://www.example.com",
654
654
  condition_scope="application",
655
- terms=[newrelic.AlertConditionTermArgs(
656
- duration=5,
657
- operator="below",
658
- priority="critical",
659
- threshold=0.75,
660
- time_function="all",
661
- )])
655
+ terms=[{
656
+ "duration": 5,
657
+ "operator": "below",
658
+ "priority": "critical",
659
+ "threshold": 0.75,
660
+ "time_function": "all",
661
+ }])
662
662
  ```
663
663
 
664
664
  ## Terms
@@ -689,27 +689,27 @@ class AlertCondition(pulumi.CustomResource):
689
689
  metric="apdex",
690
690
  runbook_url="https://www.example.com",
691
691
  condition_scope="application",
692
- terms=[newrelic.AlertConditionTermArgs(
693
- duration=5,
694
- operator="below",
695
- priority="critical",
696
- threshold=0.75,
697
- time_function="all",
698
- )])
692
+ terms=[{
693
+ "duration": 5,
694
+ "operator": "below",
695
+ "priority": "critical",
696
+ "threshold": 0.75,
697
+ "time_function": "all",
698
+ }])
699
699
  my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
700
700
  guid=foo_alert_condition.entity_guid,
701
701
  tags=[
702
- newrelic.EntityTagsTagArgs(
703
- key="my-key",
704
- values=[
702
+ {
703
+ "key": "my-key",
704
+ "values": [
705
705
  "my-value",
706
706
  "my-other-value",
707
707
  ],
708
- ),
709
- newrelic.EntityTagsTagArgs(
710
- key="my-key-2",
711
- values=["my-value-2"],
712
- ),
708
+ },
709
+ {
710
+ "key": "my-key-2",
711
+ "values": ["my-value-2"],
712
+ },
713
713
  ])
714
714
  ```
715
715
 
@@ -744,7 +744,7 @@ class AlertCondition(pulumi.CustomResource):
744
744
  name: Optional[pulumi.Input[str]] = None,
745
745
  policy_id: Optional[pulumi.Input[str]] = None,
746
746
  runbook_url: Optional[pulumi.Input[str]] = None,
747
- terms: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertConditionTermArgs']]]]] = None,
747
+ terms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AlertConditionTermArgs', 'AlertConditionTermArgsDict']]]]] = None,
748
748
  type: Optional[pulumi.Input[str]] = None,
749
749
  user_defined_metric: Optional[pulumi.Input[str]] = None,
750
750
  user_defined_value_function: Optional[pulumi.Input[str]] = None,
@@ -801,7 +801,7 @@ class AlertCondition(pulumi.CustomResource):
801
801
  name: Optional[pulumi.Input[str]] = None,
802
802
  policy_id: Optional[pulumi.Input[str]] = None,
803
803
  runbook_url: Optional[pulumi.Input[str]] = None,
804
- terms: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertConditionTermArgs']]]]] = None,
804
+ terms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AlertConditionTermArgs', 'AlertConditionTermArgsDict']]]]] = None,
805
805
  type: Optional[pulumi.Input[str]] = None,
806
806
  user_defined_metric: Optional[pulumi.Input[str]] = None,
807
807
  user_defined_value_function: Optional[pulumi.Input[str]] = None,
@@ -822,7 +822,7 @@ class AlertCondition(pulumi.CustomResource):
822
822
  :param pulumi.Input[str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
823
823
  :param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
824
824
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
825
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertConditionTermArgs']]]] terms: A list of terms for this condition. See Terms below for details.
825
+ :param pulumi.Input[Sequence[pulumi.Input[Union['AlertConditionTermArgs', 'AlertConditionTermArgsDict']]]] terms: A list of terms for this condition. See Terms below for details.
826
826
  :param pulumi.Input[str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
827
827
  :param pulumi.Input[str] user_defined_metric: A custom metric to be evaluated.
828
828
  :param pulumi.Input[str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
@@ -225,11 +225,11 @@ class AlertMutingRule(pulumi.CustomResource):
225
225
  resource_name: str,
226
226
  opts: Optional[pulumi.ResourceOptions] = None,
227
227
  account_id: Optional[pulumi.Input[str]] = None,
228
- condition: Optional[pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']]] = None,
228
+ condition: Optional[pulumi.Input[Union['AlertMutingRuleConditionArgs', 'AlertMutingRuleConditionArgsDict']]] = None,
229
229
  description: Optional[pulumi.Input[str]] = None,
230
230
  enabled: Optional[pulumi.Input[bool]] = None,
231
231
  name: Optional[pulumi.Input[str]] = None,
232
- schedule: Optional[pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']]] = None,
232
+ schedule: Optional[pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']]] = None,
233
233
  __props__=None):
234
234
  """
235
235
  ## Example Usage
@@ -242,33 +242,33 @@ class AlertMutingRule(pulumi.CustomResource):
242
242
  name="Example Muting Rule",
243
243
  enabled=True,
244
244
  description="muting rule test.",
245
- condition=newrelic.AlertMutingRuleConditionArgs(
246
- conditions=[
247
- newrelic.AlertMutingRuleConditionConditionArgs(
248
- attribute="product",
249
- operator="EQUALS",
250
- values=["APM"],
251
- ),
252
- newrelic.AlertMutingRuleConditionConditionArgs(
253
- attribute="targetId",
254
- operator="EQUALS",
255
- values=["Muted"],
256
- ),
245
+ condition={
246
+ "conditions": [
247
+ {
248
+ "attribute": "product",
249
+ "operator": "EQUALS",
250
+ "values": ["APM"],
251
+ },
252
+ {
253
+ "attribute": "targetId",
254
+ "operator": "EQUALS",
255
+ "values": ["Muted"],
256
+ },
257
257
  ],
258
- operator="AND",
259
- ),
260
- schedule=newrelic.AlertMutingRuleScheduleArgs(
261
- start_time="2021-01-28T15:30:00",
262
- end_time="2021-01-28T16:30:00",
263
- time_zone="America/Los_Angeles",
264
- repeat="WEEKLY",
265
- weekly_repeat_days=[
258
+ "operator": "AND",
259
+ },
260
+ schedule={
261
+ "start_time": "2021-01-28T15:30:00",
262
+ "end_time": "2021-01-28T16:30:00",
263
+ "time_zone": "America/Los_Angeles",
264
+ "repeat": "WEEKLY",
265
+ "weekly_repeat_days": [
266
266
  "MONDAY",
267
267
  "WEDNESDAY",
268
268
  "FRIDAY",
269
269
  ],
270
- repeat_count=42,
271
- ))
270
+ "repeat_count": 42,
271
+ })
272
272
  ```
273
273
 
274
274
  ## Import
@@ -282,11 +282,11 @@ class AlertMutingRule(pulumi.CustomResource):
282
282
  :param str resource_name: The name of the resource.
283
283
  :param pulumi.ResourceOptions opts: Options for the resource.
284
284
  :param pulumi.Input[str] account_id: The account id of the MutingRule.
285
- :param pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']] condition: The condition that defines which incidents to target. See Nested condition blocks below for details.
285
+ :param pulumi.Input[Union['AlertMutingRuleConditionArgs', 'AlertMutingRuleConditionArgsDict']] condition: The condition that defines which incidents to target. See Nested condition blocks below for details.
286
286
  :param pulumi.Input[str] description: The description of the MutingRule.
287
287
  :param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
288
288
  :param pulumi.Input[str] name: The name of the MutingRule.
289
- :param pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
289
+ :param pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
290
290
  """
291
291
  ...
292
292
  @overload
@@ -305,33 +305,33 @@ class AlertMutingRule(pulumi.CustomResource):
305
305
  name="Example Muting Rule",
306
306
  enabled=True,
307
307
  description="muting rule test.",
308
- condition=newrelic.AlertMutingRuleConditionArgs(
309
- conditions=[
310
- newrelic.AlertMutingRuleConditionConditionArgs(
311
- attribute="product",
312
- operator="EQUALS",
313
- values=["APM"],
314
- ),
315
- newrelic.AlertMutingRuleConditionConditionArgs(
316
- attribute="targetId",
317
- operator="EQUALS",
318
- values=["Muted"],
319
- ),
308
+ condition={
309
+ "conditions": [
310
+ {
311
+ "attribute": "product",
312
+ "operator": "EQUALS",
313
+ "values": ["APM"],
314
+ },
315
+ {
316
+ "attribute": "targetId",
317
+ "operator": "EQUALS",
318
+ "values": ["Muted"],
319
+ },
320
320
  ],
321
- operator="AND",
322
- ),
323
- schedule=newrelic.AlertMutingRuleScheduleArgs(
324
- start_time="2021-01-28T15:30:00",
325
- end_time="2021-01-28T16:30:00",
326
- time_zone="America/Los_Angeles",
327
- repeat="WEEKLY",
328
- weekly_repeat_days=[
321
+ "operator": "AND",
322
+ },
323
+ schedule={
324
+ "start_time": "2021-01-28T15:30:00",
325
+ "end_time": "2021-01-28T16:30:00",
326
+ "time_zone": "America/Los_Angeles",
327
+ "repeat": "WEEKLY",
328
+ "weekly_repeat_days": [
329
329
  "MONDAY",
330
330
  "WEDNESDAY",
331
331
  "FRIDAY",
332
332
  ],
333
- repeat_count=42,
334
- ))
333
+ "repeat_count": 42,
334
+ })
335
335
  ```
336
336
 
337
337
  ## Import
@@ -358,11 +358,11 @@ class AlertMutingRule(pulumi.CustomResource):
358
358
  resource_name: str,
359
359
  opts: Optional[pulumi.ResourceOptions] = None,
360
360
  account_id: Optional[pulumi.Input[str]] = None,
361
- condition: Optional[pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']]] = None,
361
+ condition: Optional[pulumi.Input[Union['AlertMutingRuleConditionArgs', 'AlertMutingRuleConditionArgsDict']]] = None,
362
362
  description: Optional[pulumi.Input[str]] = None,
363
363
  enabled: Optional[pulumi.Input[bool]] = None,
364
364
  name: Optional[pulumi.Input[str]] = None,
365
- schedule: Optional[pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']]] = None,
365
+ schedule: Optional[pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']]] = None,
366
366
  __props__=None):
367
367
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
368
368
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -393,11 +393,11 @@ class AlertMutingRule(pulumi.CustomResource):
393
393
  id: pulumi.Input[str],
394
394
  opts: Optional[pulumi.ResourceOptions] = None,
395
395
  account_id: Optional[pulumi.Input[str]] = None,
396
- condition: Optional[pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']]] = None,
396
+ condition: Optional[pulumi.Input[Union['AlertMutingRuleConditionArgs', 'AlertMutingRuleConditionArgsDict']]] = None,
397
397
  description: Optional[pulumi.Input[str]] = None,
398
398
  enabled: Optional[pulumi.Input[bool]] = None,
399
399
  name: Optional[pulumi.Input[str]] = None,
400
- schedule: Optional[pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']]] = None) -> 'AlertMutingRule':
400
+ schedule: Optional[pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']]] = None) -> 'AlertMutingRule':
401
401
  """
402
402
  Get an existing AlertMutingRule resource's state with the given name, id, and optional extra
403
403
  properties used to qualify the lookup.
@@ -406,11 +406,11 @@ class AlertMutingRule(pulumi.CustomResource):
406
406
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
407
407
  :param pulumi.ResourceOptions opts: Options for the resource.
408
408
  :param pulumi.Input[str] account_id: The account id of the MutingRule.
409
- :param pulumi.Input[pulumi.InputType['AlertMutingRuleConditionArgs']] condition: The condition that defines which incidents to target. See Nested condition blocks below for details.
409
+ :param pulumi.Input[Union['AlertMutingRuleConditionArgs', 'AlertMutingRuleConditionArgsDict']] condition: The condition that defines which incidents to target. See Nested condition blocks below for details.
410
410
  :param pulumi.Input[str] description: The description of the MutingRule.
411
411
  :param pulumi.Input[bool] enabled: Whether the MutingRule is enabled.
412
412
  :param pulumi.Input[str] name: The name of the MutingRule.
413
- :param pulumi.Input[pulumi.InputType['AlertMutingRuleScheduleArgs']] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
413
+ :param pulumi.Input[Union['AlertMutingRuleScheduleArgs', 'AlertMutingRuleScheduleArgsDict']] schedule: Specify a schedule for enabling the MutingRule. See Schedule below for details
414
414
  """
415
415
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
416
416