pulumi-newrelic 5.23.0a1713333809__py3-none-any.whl → 5.23.0a1713975814__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 (66) hide show
  1. pulumi_newrelic/_inputs.py +110 -270
  2. pulumi_newrelic/account_management.py +20 -20
  3. pulumi_newrelic/alert_channel.py +76 -92
  4. pulumi_newrelic/alert_condition.py +104 -149
  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_obfuscation_expression.py +2 -4
  28. pulumi_newrelic/get_service_level_alert_helper.py +22 -46
  29. pulumi_newrelic/get_test_grok_pattern.py +4 -6
  30. pulumi_newrelic/get_user.py +0 -4
  31. pulumi_newrelic/group.py +40 -42
  32. pulumi_newrelic/infra_alert_condition.py +154 -131
  33. pulumi_newrelic/insights/event.py +8 -25
  34. pulumi_newrelic/log_parsing_rule.py +6 -10
  35. pulumi_newrelic/monitor_downtime.py +174 -193
  36. pulumi_newrelic/notification_channel.py +124 -150
  37. pulumi_newrelic/nrql_alert_condition.py +38 -48
  38. pulumi_newrelic/nrql_drop_rule.py +34 -38
  39. pulumi_newrelic/obfuscation_expression.py +2 -4
  40. pulumi_newrelic/obfuscation_rule.py +4 -4
  41. pulumi_newrelic/one_dashboard.py +42 -48
  42. pulumi_newrelic/one_dashboard_raw.py +86 -86
  43. pulumi_newrelic/outputs.py +110 -270
  44. pulumi_newrelic/plugins/_inputs.py +16 -16
  45. pulumi_newrelic/plugins/application_settings.py +6 -8
  46. pulumi_newrelic/plugins/outputs.py +16 -16
  47. pulumi_newrelic/plugins/workload.py +158 -40
  48. pulumi_newrelic/service_level.py +38 -123
  49. pulumi_newrelic/synthetics/alert_condition.py +34 -64
  50. pulumi_newrelic/synthetics/broken_links_monitor.py +18 -20
  51. pulumi_newrelic/synthetics/cert_check_monitor.py +16 -18
  52. pulumi_newrelic/synthetics/get_private_location.py +0 -8
  53. pulumi_newrelic/synthetics/get_secure_credential.py +0 -12
  54. pulumi_newrelic/synthetics/monitor.py +48 -52
  55. pulumi_newrelic/synthetics/multi_location_alert_condition.py +69 -83
  56. pulumi_newrelic/synthetics/private_location.py +6 -6
  57. pulumi_newrelic/synthetics/script_monitor.py +38 -42
  58. pulumi_newrelic/synthetics/secure_credential.py +25 -22
  59. pulumi_newrelic/synthetics/step_monitor.py +18 -20
  60. pulumi_newrelic/user.py +8 -10
  61. pulumi_newrelic/workflow.py +20 -24
  62. {pulumi_newrelic-5.23.0a1713333809.dist-info → pulumi_newrelic-5.23.0a1713975814.dist-info}/METADATA +1 -1
  63. pulumi_newrelic-5.23.0a1713975814.dist-info/RECORD +89 -0
  64. pulumi_newrelic-5.23.0a1713333809.dist-info/RECORD +0 -89
  65. {pulumi_newrelic-5.23.0a1713333809.dist-info → pulumi_newrelic-5.23.0a1713975814.dist-info}/WHEEL +0 -0
  66. {pulumi_newrelic-5.23.0a1713333809.dist-info → pulumi_newrelic-5.23.0a1713975814.dist-info}/top_level.txt +0 -0
@@ -288,7 +288,7 @@ class _ScriptMonitorState:
288
288
  :param pulumi.Input[str] device_orientation: Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.
289
289
  :param pulumi.Input[str] device_type: Device emulation type field. Valid values are `MOBILE` and `TABLET`.
290
290
  :param pulumi.Input[bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
291
- :param pulumi.Input[str] guid: The unique identifier for the Synthetics private location in New Relic.
291
+ :param pulumi.Input[str] guid: The unique entity identifier of the monitor in New Relic.
292
292
  :param pulumi.Input[Sequence[pulumi.Input['ScriptMonitorLocationPrivateArgs']]] location_privates: The location the monitor will run from. See Nested location_private blocks below for details. **At least one of either** `locations_public` **or** `location_private` **is required**.
293
293
  :param pulumi.Input[Sequence[pulumi.Input[str]]] locations_publics: The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locations_public` **or** `location_private` **is required**.
294
294
  :param pulumi.Input[str] name: The name for the monitor.
@@ -391,7 +391,7 @@ class _ScriptMonitorState:
391
391
  @pulumi.getter
392
392
  def guid(self) -> Optional[pulumi.Input[str]]:
393
393
  """
394
- The unique identifier for the Synthetics private location in New Relic.
394
+ The unique entity identifier of the monitor in New Relic.
395
395
  """
396
396
  return pulumi.get(self, "guid")
397
397
 
@@ -574,55 +574,53 @@ class ScriptMonitor(pulumi.CustomResource):
574
574
 
575
575
  ##### Type: `SCRIPT_API`
576
576
 
577
- <!--Start PulumiCodeChooser -->
578
577
  ```python
579
578
  import pulumi
580
579
  import pulumi_newrelic as newrelic
581
580
 
582
581
  monitor = newrelic.synthetics.ScriptMonitor("monitor",
582
+ status="ENABLED",
583
+ name="script_monitor",
584
+ type="SCRIPT_API",
583
585
  locations_publics=[
584
586
  "AP_SOUTH_1",
585
587
  "AP_EAST_1",
586
588
  ],
587
589
  period="EVERY_6_HOURS",
588
- runtime_type="NODE_API",
589
- runtime_type_version="16.10",
590
590
  script="console.log('it works!')",
591
591
  script_language="JAVASCRIPT",
592
- status="ENABLED",
592
+ runtime_type="NODE_API",
593
+ runtime_type_version="16.10",
593
594
  tags=[newrelic.synthetics.ScriptMonitorTagArgs(
594
595
  key="some_key",
595
596
  values=["some_value"],
596
- )],
597
- type="SCRIPT_API")
597
+ )])
598
598
  ```
599
- <!--End PulumiCodeChooser -->
600
599
  ##### Type: `SCRIPT_BROWSER`
601
600
 
602
- <!--Start PulumiCodeChooser -->
603
601
  ```python
604
602
  import pulumi
605
603
  import pulumi_newrelic as newrelic
606
604
 
607
605
  monitor = newrelic.synthetics.ScriptMonitor("monitor",
608
- enable_screenshot_on_failure_and_script=False,
606
+ status="ENABLED",
607
+ name="script_monitor",
608
+ type="SCRIPT_BROWSER",
609
609
  locations_publics=[
610
610
  "AP_SOUTH_1",
611
611
  "AP_EAST_1",
612
612
  ],
613
613
  period="EVERY_HOUR",
614
- runtime_type="CHROME_BROWSER",
615
- runtime_type_version="100",
614
+ enable_screenshot_on_failure_and_script=False,
616
615
  script="$browser.get('https://one.newrelic.com')",
616
+ runtime_type_version="100",
617
+ runtime_type="CHROME_BROWSER",
617
618
  script_language="JAVASCRIPT",
618
- status="ENABLED",
619
619
  tags=[newrelic.synthetics.ScriptMonitorTagArgs(
620
620
  key="some_key",
621
621
  values=["some_value"],
622
- )],
623
- type="SCRIPT_BROWSER")
622
+ )])
624
623
  ```
625
- <!--End PulumiCodeChooser -->
626
624
  See additional examples.
627
625
 
628
626
  ## Additional Examples
@@ -635,16 +633,17 @@ class ScriptMonitor(pulumi.CustomResource):
635
633
 
636
634
  ##### Type: `SCRIPT_API`
637
635
 
638
- <!--Start PulumiCodeChooser -->
639
636
  ```python
640
637
  import pulumi
641
638
  import pulumi_newrelic as newrelic
642
639
 
643
640
  location = newrelic.synthetics.PrivateLocation("location",
644
641
  description="Example private location",
642
+ name="private_location",
645
643
  verified_script_execution=True)
646
644
  monitor = newrelic.synthetics.ScriptMonitor("monitor",
647
645
  status="ENABLED",
646
+ name="script_monitor",
648
647
  type="SCRIPT_API",
649
648
  location_privates=[newrelic.synthetics.ScriptMonitorLocationPrivateArgs(
650
649
  guid=location.id,
@@ -660,19 +659,19 @@ class ScriptMonitor(pulumi.CustomResource):
660
659
  values=["some_value"],
661
660
  )])
662
661
  ```
663
- <!--End PulumiCodeChooser -->
664
662
  ##### Type: `SCRIPT_BROWSER`
665
663
 
666
- <!--Start PulumiCodeChooser -->
667
664
  ```python
668
665
  import pulumi
669
666
  import pulumi_newrelic as newrelic
670
667
 
671
668
  location = newrelic.synthetics.PrivateLocation("location",
672
669
  description="Test Description",
670
+ name="private_location",
673
671
  verified_script_execution=True)
674
672
  monitor = newrelic.synthetics.ScriptMonitor("monitor",
675
673
  status="ENABLED",
674
+ name="script_monitor",
676
675
  type="SCRIPT_BROWSER",
677
676
  period="EVERY_HOUR",
678
677
  script="$browser.get('https://one.newrelic.com')",
@@ -689,7 +688,6 @@ class ScriptMonitor(pulumi.CustomResource):
689
688
  values=["some_value"],
690
689
  )])
691
690
  ```
692
- <!--End PulumiCodeChooser -->
693
691
 
694
692
  ## Import
695
693
 
@@ -734,55 +732,53 @@ class ScriptMonitor(pulumi.CustomResource):
734
732
 
735
733
  ##### Type: `SCRIPT_API`
736
734
 
737
- <!--Start PulumiCodeChooser -->
738
735
  ```python
739
736
  import pulumi
740
737
  import pulumi_newrelic as newrelic
741
738
 
742
739
  monitor = newrelic.synthetics.ScriptMonitor("monitor",
740
+ status="ENABLED",
741
+ name="script_monitor",
742
+ type="SCRIPT_API",
743
743
  locations_publics=[
744
744
  "AP_SOUTH_1",
745
745
  "AP_EAST_1",
746
746
  ],
747
747
  period="EVERY_6_HOURS",
748
- runtime_type="NODE_API",
749
- runtime_type_version="16.10",
750
748
  script="console.log('it works!')",
751
749
  script_language="JAVASCRIPT",
752
- status="ENABLED",
750
+ runtime_type="NODE_API",
751
+ runtime_type_version="16.10",
753
752
  tags=[newrelic.synthetics.ScriptMonitorTagArgs(
754
753
  key="some_key",
755
754
  values=["some_value"],
756
- )],
757
- type="SCRIPT_API")
755
+ )])
758
756
  ```
759
- <!--End PulumiCodeChooser -->
760
757
  ##### Type: `SCRIPT_BROWSER`
761
758
 
762
- <!--Start PulumiCodeChooser -->
763
759
  ```python
764
760
  import pulumi
765
761
  import pulumi_newrelic as newrelic
766
762
 
767
763
  monitor = newrelic.synthetics.ScriptMonitor("monitor",
768
- enable_screenshot_on_failure_and_script=False,
764
+ status="ENABLED",
765
+ name="script_monitor",
766
+ type="SCRIPT_BROWSER",
769
767
  locations_publics=[
770
768
  "AP_SOUTH_1",
771
769
  "AP_EAST_1",
772
770
  ],
773
771
  period="EVERY_HOUR",
774
- runtime_type="CHROME_BROWSER",
775
- runtime_type_version="100",
772
+ enable_screenshot_on_failure_and_script=False,
776
773
  script="$browser.get('https://one.newrelic.com')",
774
+ runtime_type_version="100",
775
+ runtime_type="CHROME_BROWSER",
777
776
  script_language="JAVASCRIPT",
778
- status="ENABLED",
779
777
  tags=[newrelic.synthetics.ScriptMonitorTagArgs(
780
778
  key="some_key",
781
779
  values=["some_value"],
782
- )],
783
- type="SCRIPT_BROWSER")
780
+ )])
784
781
  ```
785
- <!--End PulumiCodeChooser -->
786
782
  See additional examples.
787
783
 
788
784
  ## Additional Examples
@@ -795,16 +791,17 @@ class ScriptMonitor(pulumi.CustomResource):
795
791
 
796
792
  ##### Type: `SCRIPT_API`
797
793
 
798
- <!--Start PulumiCodeChooser -->
799
794
  ```python
800
795
  import pulumi
801
796
  import pulumi_newrelic as newrelic
802
797
 
803
798
  location = newrelic.synthetics.PrivateLocation("location",
804
799
  description="Example private location",
800
+ name="private_location",
805
801
  verified_script_execution=True)
806
802
  monitor = newrelic.synthetics.ScriptMonitor("monitor",
807
803
  status="ENABLED",
804
+ name="script_monitor",
808
805
  type="SCRIPT_API",
809
806
  location_privates=[newrelic.synthetics.ScriptMonitorLocationPrivateArgs(
810
807
  guid=location.id,
@@ -820,19 +817,19 @@ class ScriptMonitor(pulumi.CustomResource):
820
817
  values=["some_value"],
821
818
  )])
822
819
  ```
823
- <!--End PulumiCodeChooser -->
824
820
  ##### Type: `SCRIPT_BROWSER`
825
821
 
826
- <!--Start PulumiCodeChooser -->
827
822
  ```python
828
823
  import pulumi
829
824
  import pulumi_newrelic as newrelic
830
825
 
831
826
  location = newrelic.synthetics.PrivateLocation("location",
832
827
  description="Test Description",
828
+ name="private_location",
833
829
  verified_script_execution=True)
834
830
  monitor = newrelic.synthetics.ScriptMonitor("monitor",
835
831
  status="ENABLED",
832
+ name="script_monitor",
836
833
  type="SCRIPT_BROWSER",
837
834
  period="EVERY_HOUR",
838
835
  script="$browser.get('https://one.newrelic.com')",
@@ -849,7 +846,6 @@ class ScriptMonitor(pulumi.CustomResource):
849
846
  values=["some_value"],
850
847
  )])
851
848
  ```
852
- <!--End PulumiCodeChooser -->
853
849
 
854
850
  ## Import
855
851
 
@@ -961,7 +957,7 @@ class ScriptMonitor(pulumi.CustomResource):
961
957
  :param pulumi.Input[str] device_orientation: Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.
962
958
  :param pulumi.Input[str] device_type: Device emulation type field. Valid values are `MOBILE` and `TABLET`.
963
959
  :param pulumi.Input[bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
964
- :param pulumi.Input[str] guid: The unique identifier for the Synthetics private location in New Relic.
960
+ :param pulumi.Input[str] guid: The unique entity identifier of the monitor in New Relic.
965
961
  :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScriptMonitorLocationPrivateArgs']]]] location_privates: The location the monitor will run from. See Nested location_private blocks below for details. **At least one of either** `locations_public` **or** `location_private` **is required**.
966
962
  :param pulumi.Input[Sequence[pulumi.Input[str]]] locations_publics: The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locations_public` **or** `location_private` **is required**.
967
963
  :param pulumi.Input[str] name: The name for the monitor.
@@ -1036,7 +1032,7 @@ class ScriptMonitor(pulumi.CustomResource):
1036
1032
  @pulumi.getter
1037
1033
  def guid(self) -> pulumi.Output[str]:
1038
1034
  """
1039
- The unique identifier for the Synthetics private location in New Relic.
1035
+ The unique entity identifier of the monitor in New Relic.
1040
1036
  """
1041
1037
  return pulumi.get(self, "guid")
1042
1038
 
@@ -21,9 +21,10 @@ class SecureCredentialArgs:
21
21
  last_updated: Optional[pulumi.Input[str]] = None):
22
22
  """
23
23
  The set of arguments for constructing a SecureCredential resource.
24
- :param pulumi.Input[str] key: The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API.
24
+ :param pulumi.Input[str] key: The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased
25
+ key to the underlying API.
25
26
  :param pulumi.Input[str] value: The secure credential's value.
26
- :param pulumi.Input[int] account_id: Determines the New Relic account where the secure credential will be created. Defaults to the account associated with the API key used.
27
+ :param pulumi.Input[int] account_id: The New Relic account ID where you want to create the secure credential.
27
28
  :param pulumi.Input[str] description: The secure credential's description.
28
29
  :param pulumi.Input[str] last_updated: The time the secure credential was last updated.
29
30
  """
@@ -40,7 +41,8 @@ class SecureCredentialArgs:
40
41
  @pulumi.getter
41
42
  def key(self) -> pulumi.Input[str]:
42
43
  """
43
- The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API.
44
+ The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased
45
+ key to the underlying API.
44
46
  """
45
47
  return pulumi.get(self, "key")
46
48
 
@@ -64,7 +66,7 @@ class SecureCredentialArgs:
64
66
  @pulumi.getter(name="accountId")
65
67
  def account_id(self) -> Optional[pulumi.Input[int]]:
66
68
  """
67
- Determines the New Relic account where the secure credential will be created. Defaults to the account associated with the API key used.
69
+ The New Relic account ID where you want to create the secure credential.
68
70
  """
69
71
  return pulumi.get(self, "account_id")
70
72
 
@@ -107,9 +109,10 @@ class _SecureCredentialState:
107
109
  value: Optional[pulumi.Input[str]] = None):
108
110
  """
109
111
  Input properties used for looking up and filtering SecureCredential resources.
110
- :param pulumi.Input[int] account_id: Determines the New Relic account where the secure credential will be created. Defaults to the account associated with the API key used.
112
+ :param pulumi.Input[int] account_id: The New Relic account ID where you want to create the secure credential.
111
113
  :param pulumi.Input[str] description: The secure credential's description.
112
- :param pulumi.Input[str] key: The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API.
114
+ :param pulumi.Input[str] key: The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased
115
+ key to the underlying API.
113
116
  :param pulumi.Input[str] last_updated: The time the secure credential was last updated.
114
117
  :param pulumi.Input[str] value: The secure credential's value.
115
118
  """
@@ -128,7 +131,7 @@ class _SecureCredentialState:
128
131
  @pulumi.getter(name="accountId")
129
132
  def account_id(self) -> Optional[pulumi.Input[int]]:
130
133
  """
131
- Determines the New Relic account where the secure credential will be created. Defaults to the account associated with the API key used.
134
+ The New Relic account ID where you want to create the secure credential.
132
135
  """
133
136
  return pulumi.get(self, "account_id")
134
137
 
@@ -152,7 +155,8 @@ class _SecureCredentialState:
152
155
  @pulumi.getter
153
156
  def key(self) -> Optional[pulumi.Input[str]]:
154
157
  """
155
- The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API.
158
+ The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased
159
+ key to the underlying API.
156
160
  """
157
161
  return pulumi.get(self, "key")
158
162
 
@@ -201,17 +205,15 @@ class SecureCredential(pulumi.CustomResource):
201
205
 
202
206
  ## Example Usage
203
207
 
204
- <!--Start PulumiCodeChooser -->
205
208
  ```python
206
209
  import pulumi
207
210
  import pulumi_newrelic as newrelic
208
211
 
209
212
  foo = newrelic.synthetics.SecureCredential("foo",
210
- description="My description",
211
213
  key="MY_KEY",
212
- value="My value")
214
+ value="My value",
215
+ description="My description")
213
216
  ```
214
- <!--End PulumiCodeChooser -->
215
217
 
216
218
  ## Import
217
219
 
@@ -223,9 +225,10 @@ class SecureCredential(pulumi.CustomResource):
223
225
 
224
226
  :param str resource_name: The name of the resource.
225
227
  :param pulumi.ResourceOptions opts: Options for the resource.
226
- :param pulumi.Input[int] account_id: Determines the New Relic account where the secure credential will be created. Defaults to the account associated with the API key used.
228
+ :param pulumi.Input[int] account_id: The New Relic account ID where you want to create the secure credential.
227
229
  :param pulumi.Input[str] description: The secure credential's description.
228
- :param pulumi.Input[str] key: The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API.
230
+ :param pulumi.Input[str] key: The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased
231
+ key to the underlying API.
229
232
  :param pulumi.Input[str] last_updated: The time the secure credential was last updated.
230
233
  :param pulumi.Input[str] value: The secure credential's value.
231
234
  """
@@ -240,17 +243,15 @@ class SecureCredential(pulumi.CustomResource):
240
243
 
241
244
  ## Example Usage
242
245
 
243
- <!--Start PulumiCodeChooser -->
244
246
  ```python
245
247
  import pulumi
246
248
  import pulumi_newrelic as newrelic
247
249
 
248
250
  foo = newrelic.synthetics.SecureCredential("foo",
249
- description="My description",
250
251
  key="MY_KEY",
251
- value="My value")
252
+ value="My value",
253
+ description="My description")
252
254
  ```
253
- <!--End PulumiCodeChooser -->
254
255
 
255
256
  ## Import
256
257
 
@@ -322,9 +323,10 @@ class SecureCredential(pulumi.CustomResource):
322
323
  :param str resource_name: The unique name of the resulting resource.
323
324
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
324
325
  :param pulumi.ResourceOptions opts: Options for the resource.
325
- :param pulumi.Input[int] account_id: Determines the New Relic account where the secure credential will be created. Defaults to the account associated with the API key used.
326
+ :param pulumi.Input[int] account_id: The New Relic account ID where you want to create the secure credential.
326
327
  :param pulumi.Input[str] description: The secure credential's description.
327
- :param pulumi.Input[str] key: The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API.
328
+ :param pulumi.Input[str] key: The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased
329
+ key to the underlying API.
328
330
  :param pulumi.Input[str] last_updated: The time the secure credential was last updated.
329
331
  :param pulumi.Input[str] value: The secure credential's value.
330
332
  """
@@ -343,7 +345,7 @@ class SecureCredential(pulumi.CustomResource):
343
345
  @pulumi.getter(name="accountId")
344
346
  def account_id(self) -> pulumi.Output[int]:
345
347
  """
346
- Determines the New Relic account where the secure credential will be created. Defaults to the account associated with the API key used.
348
+ The New Relic account ID where you want to create the secure credential.
347
349
  """
348
350
  return pulumi.get(self, "account_id")
349
351
 
@@ -359,7 +361,8 @@ class SecureCredential(pulumi.CustomResource):
359
361
  @pulumi.getter
360
362
  def key(self) -> pulumi.Output[str]:
361
363
  """
362
- The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API.
364
+ The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased
365
+ key to the underlying API.
363
366
  """
364
367
  return pulumi.get(self, "key")
365
368
 
@@ -218,7 +218,7 @@ class _StepMonitorState:
218
218
  Input properties used for looking up and filtering StepMonitor resources.
219
219
  :param pulumi.Input[int] account_id: The account in which the Synthetics monitor will be created.
220
220
  :param pulumi.Input[bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
221
- :param pulumi.Input[str] guid: The unique identifier for the Synthetics private location in New Relic.
221
+ :param pulumi.Input[str] guid: The unique entity identifier of the monitor in New Relic.
222
222
  :param pulumi.Input[Sequence[pulumi.Input['StepMonitorLocationPrivateArgs']]] location_privates: The location the monitor will run from. At least one of `locations_public` or `location_private` is required. See Nested locations_private blocks below for details.
223
223
  :param pulumi.Input[Sequence[pulumi.Input[str]]] locations_publics: The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locations_public` or `location_private` is required.
224
224
  :param pulumi.Input[str] name: The name for the monitor.
@@ -287,7 +287,7 @@ class _StepMonitorState:
287
287
  @pulumi.getter
288
288
  def guid(self) -> Optional[pulumi.Input[str]]:
289
289
  """
290
- The unique identifier for the Synthetics private location in New Relic.
290
+ The unique entity identifier of the monitor in New Relic.
291
291
  """
292
292
  return pulumi.get(self, "guid")
293
293
 
@@ -440,21 +440,21 @@ class StepMonitor(pulumi.CustomResource):
440
440
 
441
441
  ## Example Usage
442
442
 
443
- <!--Start PulumiCodeChooser -->
444
443
  ```python
445
444
  import pulumi
446
445
  import pulumi_newrelic as newrelic
447
446
 
448
447
  foo = newrelic.synthetics.StepMonitor("foo",
448
+ name="Sample Step Monitor",
449
449
  enable_screenshot_on_failure_and_script=True,
450
450
  locations_publics=[
451
451
  "US_EAST_1",
452
452
  "US_EAST_2",
453
453
  ],
454
454
  period="EVERY_6_HOURS",
455
+ status="ENABLED",
455
456
  runtime_type="CHROME_BROWSER",
456
457
  runtime_type_version="100",
457
- status="ENABLED",
458
458
  steps=[newrelic.synthetics.StepMonitorStepArgs(
459
459
  ordinal=0,
460
460
  type="NAVIGATE",
@@ -465,7 +465,6 @@ class StepMonitor(pulumi.CustomResource):
465
465
  values=["some_value"],
466
466
  )])
467
467
  ```
468
- <!--End PulumiCodeChooser -->
469
468
  See additional examples.
470
469
 
471
470
  ## Additional Examples
@@ -476,19 +475,20 @@ class StepMonitor(pulumi.CustomResource):
476
475
 
477
476
  > **NOTE:** It can take up to 10 minutes for a private location to become available.
478
477
 
479
- <!--Start PulumiCodeChooser -->
480
478
  ```python
481
479
  import pulumi
482
480
  import pulumi_newrelic as newrelic
483
481
 
484
- foo_private_location = newrelic.synthetics.PrivateLocation("fooPrivateLocation",
482
+ foo = newrelic.synthetics.PrivateLocation("foo",
483
+ name="Sample Private Location",
485
484
  description="Sample Private Location Description",
486
485
  verified_script_execution=True)
487
- foo_step_monitor = newrelic.synthetics.StepMonitor("fooStepMonitor",
486
+ foo_step_monitor = newrelic.synthetics.StepMonitor("foo",
487
+ name="Sample Step Monitor",
488
488
  period="EVERY_6_HOURS",
489
489
  status="ENABLED",
490
490
  location_privates=[newrelic.synthetics.StepMonitorLocationPrivateArgs(
491
- guid=foo_private_location.id,
491
+ guid=foo.id,
492
492
  vse_password="secret",
493
493
  )],
494
494
  steps=[newrelic.synthetics.StepMonitorStepArgs(
@@ -501,7 +501,6 @@ class StepMonitor(pulumi.CustomResource):
501
501
  values=["some_value"],
502
502
  )])
503
503
  ```
504
- <!--End PulumiCodeChooser -->
505
504
 
506
505
  ## Import
507
506
 
@@ -540,21 +539,21 @@ class StepMonitor(pulumi.CustomResource):
540
539
 
541
540
  ## Example Usage
542
541
 
543
- <!--Start PulumiCodeChooser -->
544
542
  ```python
545
543
  import pulumi
546
544
  import pulumi_newrelic as newrelic
547
545
 
548
546
  foo = newrelic.synthetics.StepMonitor("foo",
547
+ name="Sample Step Monitor",
549
548
  enable_screenshot_on_failure_and_script=True,
550
549
  locations_publics=[
551
550
  "US_EAST_1",
552
551
  "US_EAST_2",
553
552
  ],
554
553
  period="EVERY_6_HOURS",
554
+ status="ENABLED",
555
555
  runtime_type="CHROME_BROWSER",
556
556
  runtime_type_version="100",
557
- status="ENABLED",
558
557
  steps=[newrelic.synthetics.StepMonitorStepArgs(
559
558
  ordinal=0,
560
559
  type="NAVIGATE",
@@ -565,7 +564,6 @@ class StepMonitor(pulumi.CustomResource):
565
564
  values=["some_value"],
566
565
  )])
567
566
  ```
568
- <!--End PulumiCodeChooser -->
569
567
  See additional examples.
570
568
 
571
569
  ## Additional Examples
@@ -576,19 +574,20 @@ class StepMonitor(pulumi.CustomResource):
576
574
 
577
575
  > **NOTE:** It can take up to 10 minutes for a private location to become available.
578
576
 
579
- <!--Start PulumiCodeChooser -->
580
577
  ```python
581
578
  import pulumi
582
579
  import pulumi_newrelic as newrelic
583
580
 
584
- foo_private_location = newrelic.synthetics.PrivateLocation("fooPrivateLocation",
581
+ foo = newrelic.synthetics.PrivateLocation("foo",
582
+ name="Sample Private Location",
585
583
  description="Sample Private Location Description",
586
584
  verified_script_execution=True)
587
- foo_step_monitor = newrelic.synthetics.StepMonitor("fooStepMonitor",
585
+ foo_step_monitor = newrelic.synthetics.StepMonitor("foo",
586
+ name="Sample Step Monitor",
588
587
  period="EVERY_6_HOURS",
589
588
  status="ENABLED",
590
589
  location_privates=[newrelic.synthetics.StepMonitorLocationPrivateArgs(
591
- guid=foo_private_location.id,
590
+ guid=foo.id,
592
591
  vse_password="secret",
593
592
  )],
594
593
  steps=[newrelic.synthetics.StepMonitorStepArgs(
@@ -601,7 +600,6 @@ class StepMonitor(pulumi.CustomResource):
601
600
  values=["some_value"],
602
601
  )])
603
602
  ```
604
- <!--End PulumiCodeChooser -->
605
603
 
606
604
  ## Import
607
605
 
@@ -699,7 +697,7 @@ class StepMonitor(pulumi.CustomResource):
699
697
  :param pulumi.ResourceOptions opts: Options for the resource.
700
698
  :param pulumi.Input[int] account_id: The account in which the Synthetics monitor will be created.
701
699
  :param pulumi.Input[bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
702
- :param pulumi.Input[str] guid: The unique identifier for the Synthetics private location in New Relic.
700
+ :param pulumi.Input[str] guid: The unique entity identifier of the monitor in New Relic.
703
701
  :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['StepMonitorLocationPrivateArgs']]]] location_privates: The location the monitor will run from. At least one of `locations_public` or `location_private` is required. See Nested locations_private blocks below for details.
704
702
  :param pulumi.Input[Sequence[pulumi.Input[str]]] locations_publics: The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locations_public` or `location_private` is required.
705
703
  :param pulumi.Input[str] name: The name for the monitor.
@@ -752,7 +750,7 @@ class StepMonitor(pulumi.CustomResource):
752
750
  @pulumi.getter
753
751
  def guid(self) -> pulumi.Output[str]:
754
752
  """
755
- The unique identifier for the Synthetics private location in New Relic.
753
+ The unique entity identifier of the monitor in New Relic.
756
754
  """
757
755
  return pulumi.get(self, "guid")
758
756
 
pulumi_newrelic/user.py CHANGED
@@ -184,18 +184,17 @@ class User(pulumi.CustomResource):
184
184
 
185
185
  ## Example Usage
186
186
 
187
- <!--Start PulumiCodeChooser -->
188
187
  ```python
189
188
  import pulumi
190
189
  import pulumi_newrelic as newrelic
191
190
 
192
- foo_authentication_domain = newrelic.get_authentication_domain(name="Test Authentication Domain")
193
- foo_user = newrelic.User("fooUser",
191
+ foo = newrelic.get_authentication_domain(name="Test Authentication Domain")
192
+ foo_user = newrelic.User("foo",
193
+ name="Test New User",
194
194
  email_id="test_user@test.com",
195
- authentication_domain_id=foo_authentication_domain.id,
195
+ authentication_domain_id=foo.id,
196
196
  user_type="CORE_USER_TIER")
197
197
  ```
198
- <!--End PulumiCodeChooser -->
199
198
 
200
199
  ## Import
201
200
 
@@ -227,18 +226,17 @@ class User(pulumi.CustomResource):
227
226
 
228
227
  ## Example Usage
229
228
 
230
- <!--Start PulumiCodeChooser -->
231
229
  ```python
232
230
  import pulumi
233
231
  import pulumi_newrelic as newrelic
234
232
 
235
- foo_authentication_domain = newrelic.get_authentication_domain(name="Test Authentication Domain")
236
- foo_user = newrelic.User("fooUser",
233
+ foo = newrelic.get_authentication_domain(name="Test Authentication Domain")
234
+ foo_user = newrelic.User("foo",
235
+ name="Test New User",
237
236
  email_id="test_user@test.com",
238
- authentication_domain_id=foo_authentication_domain.id,
237
+ authentication_domain_id=foo.id,
239
238
  user_type="CORE_USER_TIER")
240
239
  ```
241
- <!--End PulumiCodeChooser -->
242
240
 
243
241
  ## Import
244
242