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