pulumi-newrelic 5.19.0a1708333884__tar.gz → 5.20.0__tar.gz

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 (94) hide show
  1. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/PKG-INFO +1 -1
  2. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/__init__.py +10 -0
  3. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/alert_policy.py +26 -0
  4. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_alert_policy.py +3 -3
  5. pulumi_newrelic-5.20.0/pulumi_newrelic/get_group.py +141 -0
  6. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_user.py +6 -6
  7. pulumi_newrelic-5.20.0/pulumi_newrelic/group.py +412 -0
  8. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/notification_channel.py +26 -0
  9. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/notification_destination.py +140 -2
  10. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic.egg-info/PKG-INFO +1 -1
  11. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic.egg-info/SOURCES.txt +2 -0
  12. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pyproject.toml +1 -1
  13. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/README.md +0 -0
  14. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/_inputs.py +0 -0
  15. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/_utilities.py +0 -0
  16. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/account_management.py +0 -0
  17. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/alert_channel.py +0 -0
  18. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/alert_condition.py +0 -0
  19. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/alert_muting_rule.py +0 -0
  20. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/alert_policy_channel.py +0 -0
  21. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/api_access_key.py +0 -0
  22. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/browser_application.py +0 -0
  23. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/__init__.py +0 -0
  24. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/_inputs.py +0 -0
  25. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/aws_govcloud_integrations.py +0 -0
  26. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/aws_govcloud_link_account.py +0 -0
  27. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/aws_integrations.py +0 -0
  28. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/aws_link_account.py +0 -0
  29. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/azure_integrations.py +0 -0
  30. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/azure_link_account.py +0 -0
  31. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/gcp_integrations.py +0 -0
  32. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/gcp_link_account.py +0 -0
  33. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/cloud/outputs.py +0 -0
  34. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/config/__init__.py +0 -0
  35. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/config/__init__.pyi +0 -0
  36. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/config/vars.py +0 -0
  37. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/data_partition_rule.py +0 -0
  38. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/entity_tags.py +0 -0
  39. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/events_to_metrics_rule.py +0 -0
  40. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_account.py +0 -0
  41. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_alert_channel.py +0 -0
  42. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_application.py +0 -0
  43. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_authentication_domain.py +0 -0
  44. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_cloud_account.py +0 -0
  45. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_entity.py +0 -0
  46. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_key_transaction.py +0 -0
  47. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_notification_destination.py +0 -0
  48. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_obfuscation_expression.py +0 -0
  49. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_service_level_alert_helper.py +0 -0
  50. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/get_test_grok_pattern.py +0 -0
  51. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/infra_alert_condition.py +0 -0
  52. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/insights/__init__.py +0 -0
  53. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/insights/_inputs.py +0 -0
  54. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/insights/event.py +0 -0
  55. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/insights/outputs.py +0 -0
  56. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/log_parsing_rule.py +0 -0
  57. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/monitor_downtime.py +0 -0
  58. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/nrql_alert_condition.py +0 -0
  59. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/nrql_drop_rule.py +0 -0
  60. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/obfuscation_expression.py +0 -0
  61. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/obfuscation_rule.py +0 -0
  62. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/one_dashboard.py +0 -0
  63. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/one_dashboard_json.py +0 -0
  64. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/one_dashboard_raw.py +0 -0
  65. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/outputs.py +0 -0
  66. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/plugins/__init__.py +0 -0
  67. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/plugins/_inputs.py +0 -0
  68. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/plugins/application_settings.py +0 -0
  69. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/plugins/outputs.py +0 -0
  70. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/plugins/workload.py +0 -0
  71. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/provider.py +0 -0
  72. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/pulumi-plugin.json +0 -0
  73. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/py.typed +0 -0
  74. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/service_level.py +0 -0
  75. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/__init__.py +0 -0
  76. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/_inputs.py +0 -0
  77. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/alert_condition.py +0 -0
  78. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/broken_links_monitor.py +0 -0
  79. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/cert_check_monitor.py +0 -0
  80. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/get_private_location.py +0 -0
  81. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/get_secure_credential.py +0 -0
  82. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/monitor.py +0 -0
  83. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/multi_location_alert_condition.py +0 -0
  84. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/outputs.py +0 -0
  85. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/private_location.py +0 -0
  86. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/script_monitor.py +0 -0
  87. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/secure_credential.py +0 -0
  88. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/synthetics/step_monitor.py +0 -0
  89. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/user.py +0 -0
  90. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic/workflow.py +0 -0
  91. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic.egg-info/dependency_links.txt +0 -0
  92. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic.egg-info/requires.txt +0 -0
  93. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/pulumi_newrelic.egg-info/top_level.txt +0 -0
  94. {pulumi_newrelic-5.19.0a1708333884 → pulumi_newrelic-5.20.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_newrelic
3
- Version: 5.19.0a1708333884
3
+ Version: 5.20.0
4
4
  Summary: A Pulumi package for creating and managing New Relic resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -23,12 +23,14 @@ from .get_application import *
23
23
  from .get_authentication_domain import *
24
24
  from .get_cloud_account import *
25
25
  from .get_entity import *
26
+ from .get_group import *
26
27
  from .get_key_transaction import *
27
28
  from .get_notification_destination import *
28
29
  from .get_obfuscation_expression import *
29
30
  from .get_service_level_alert_helper import *
30
31
  from .get_test_grok_pattern import *
31
32
  from .get_user import *
33
+ from .group import *
32
34
  from .infra_alert_condition import *
33
35
  from .log_parsing_rule import *
34
36
  from .monitor_downtime import *
@@ -222,6 +224,14 @@ _utilities.register(
222
224
  "newrelic:index/eventsToMetricsRule:EventsToMetricsRule": "EventsToMetricsRule"
223
225
  }
224
226
  },
227
+ {
228
+ "pkg": "newrelic",
229
+ "mod": "index/group",
230
+ "fqn": "pulumi_newrelic",
231
+ "classes": {
232
+ "newrelic:index/group:Group": "Group"
233
+ }
234
+ },
225
235
  {
226
236
  "pkg": "newrelic",
227
237
  "mod": "index/infraAlertCondition",
@@ -191,6 +191,18 @@ class AlertPolicy(pulumi.CustomResource):
191
191
  ```
192
192
  ### Provision multiple notification channels and add those channels to a policy
193
193
 
194
+ The following arguments are supported:
195
+
196
+ * `name` - (Required) The name of the policy.
197
+ * `incident_preference` - (Optional) The rollup strategy for the policy, which can have one of the following values (the default value is `PER_POLICY`):
198
+ * `PER_POLICY` - This sets the incident grouping preference of the policy to **One issue per policy**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-policy) for more details on this incident grouping preference.
199
+ * `PER_CONDITION` - This sets the incident grouping preference of the policy to **One issue per condition**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-condition) for more details on this incident grouping preference.
200
+ * `PER_CONDITION_AND_TARGET` - This sets the incident grouping preference of the policy to **One issue per condition and signal**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-signal) for more details on this incident grouping preference.
201
+ * `channel_ids` - (Optional) **DEPRECATED** The `channel_ids` argument is deprecated and will be removed in the next major release of the provider. An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported via `pulumi import` (see Import for info).
202
+ * `account_id` - (Optional) The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
203
+ ## Additional Examples
204
+
205
+ ##### Provision multiple notification channels and add those channels to a policy
194
206
  ```python
195
207
  import pulumi
196
208
  import pulumi_newrelic as newrelic
@@ -217,6 +229,7 @@ class AlertPolicy(pulumi.CustomResource):
217
229
  email_channel.id,
218
230
  ])
219
231
  ```
232
+
220
233
  ### Reference existing notification channels and add those channel to a policy
221
234
  ```python
222
235
  import pulumi
@@ -271,6 +284,18 @@ class AlertPolicy(pulumi.CustomResource):
271
284
  ```
272
285
  ### Provision multiple notification channels and add those channels to a policy
273
286
 
287
+ The following arguments are supported:
288
+
289
+ * `name` - (Required) The name of the policy.
290
+ * `incident_preference` - (Optional) The rollup strategy for the policy, which can have one of the following values (the default value is `PER_POLICY`):
291
+ * `PER_POLICY` - This sets the incident grouping preference of the policy to **One issue per policy**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-policy) for more details on this incident grouping preference.
292
+ * `PER_CONDITION` - This sets the incident grouping preference of the policy to **One issue per condition**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-condition) for more details on this incident grouping preference.
293
+ * `PER_CONDITION_AND_TARGET` - This sets the incident grouping preference of the policy to **One issue per condition and signal**. Refer to [this page](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-policies/specify-when-alerts-create-incidents/#preference-signal) for more details on this incident grouping preference.
294
+ * `channel_ids` - (Optional) **DEPRECATED** The `channel_ids` argument is deprecated and will be removed in the next major release of the provider. An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs _cannot_ be imported via `pulumi import` (see Import for info).
295
+ * `account_id` - (Optional) The New Relic account ID to operate on. This allows the user to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
296
+ ## Additional Examples
297
+
298
+ ##### Provision multiple notification channels and add those channels to a policy
274
299
  ```python
275
300
  import pulumi
276
301
  import pulumi_newrelic as newrelic
@@ -297,6 +322,7 @@ class AlertPolicy(pulumi.CustomResource):
297
322
  email_channel.id,
298
323
  ])
299
324
  ```
325
+
300
326
  ### Reference existing notification channels and add those channel to a policy
301
327
  ```python
302
328
  import pulumi
@@ -66,7 +66,7 @@ class GetAlertPolicyResult:
66
66
  @pulumi.getter(name="incidentPreference")
67
67
  def incident_preference(self) -> Optional[str]:
68
68
  """
69
- The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default is PER_POLICY.
69
+ The rollup strategy for the policy, which can have one of the following values:
70
70
  """
71
71
  return pulumi.get(self, "incident_preference")
72
72
 
@@ -107,7 +107,7 @@ def get_alert_policy(account_id: Optional[int] = None,
107
107
 
108
108
 
109
109
  :param int account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
110
- :param str incident_preference: The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default is PER_POLICY.
110
+ :param str incident_preference: The rollup strategy for the policy, which can have one of the following values:
111
111
  :param str name: The name of the alert policy in New Relic.
112
112
  """
113
113
  __args__ = dict()
@@ -136,7 +136,7 @@ def get_alert_policy_output(account_id: Optional[pulumi.Input[Optional[int]]] =
136
136
 
137
137
 
138
138
  :param int account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
139
- :param str incident_preference: The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default is PER_POLICY.
139
+ :param str incident_preference: The rollup strategy for the policy, which can have one of the following values:
140
140
  :param str name: The name of the alert policy in New Relic.
141
141
  """
142
142
  ...
@@ -0,0 +1,141 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
6
+ import warnings
7
+ import pulumi
8
+ import pulumi.runtime
9
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
10
+ from . import _utilities
11
+
12
+ __all__ = [
13
+ 'GetGroupResult',
14
+ 'AwaitableGetGroupResult',
15
+ 'get_group',
16
+ 'get_group_output',
17
+ ]
18
+
19
+ @pulumi.output_type
20
+ class GetGroupResult:
21
+ """
22
+ A collection of values returned by getGroup.
23
+ """
24
+ def __init__(__self__, authentication_domain_id=None, id=None, name=None, user_ids=None):
25
+ if authentication_domain_id and not isinstance(authentication_domain_id, str):
26
+ raise TypeError("Expected argument 'authentication_domain_id' to be a str")
27
+ pulumi.set(__self__, "authentication_domain_id", authentication_domain_id)
28
+ if id and not isinstance(id, str):
29
+ raise TypeError("Expected argument 'id' to be a str")
30
+ pulumi.set(__self__, "id", id)
31
+ if name and not isinstance(name, str):
32
+ raise TypeError("Expected argument 'name' to be a str")
33
+ pulumi.set(__self__, "name", name)
34
+ if user_ids and not isinstance(user_ids, list):
35
+ raise TypeError("Expected argument 'user_ids' to be a list")
36
+ pulumi.set(__self__, "user_ids", user_ids)
37
+
38
+ @property
39
+ @pulumi.getter(name="authenticationDomainId")
40
+ def authentication_domain_id(self) -> str:
41
+ return pulumi.get(self, "authentication_domain_id")
42
+
43
+ @property
44
+ @pulumi.getter
45
+ def id(self) -> str:
46
+ """
47
+ The ID of the fetched matching group.
48
+ """
49
+ return pulumi.get(self, "id")
50
+
51
+ @property
52
+ @pulumi.getter
53
+ def name(self) -> str:
54
+ return pulumi.get(self, "name")
55
+
56
+ @property
57
+ @pulumi.getter(name="userIds")
58
+ def user_ids(self) -> Sequence[str]:
59
+ """
60
+ IDs of users who belong to the group. In the absence of any users in the group, the value of this attribute would be an empty list.
61
+ """
62
+ return pulumi.get(self, "user_ids")
63
+
64
+
65
+ class AwaitableGetGroupResult(GetGroupResult):
66
+ # pylint: disable=using-constant-test
67
+ def __await__(self):
68
+ if False:
69
+ yield self
70
+ return GetGroupResult(
71
+ authentication_domain_id=self.authentication_domain_id,
72
+ id=self.id,
73
+ name=self.name,
74
+ user_ids=self.user_ids)
75
+
76
+
77
+ def get_group(authentication_domain_id: Optional[str] = None,
78
+ name: Optional[str] = None,
79
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGroupResult:
80
+ """
81
+ The `Group` data source helps search for a group by its name and retrieve the ID of the matching group and other associated attributes.
82
+
83
+ ## Example Usage
84
+
85
+ The below example illustrates fetching the ID of a group (and IDs of users who belong to the group, if any) using the required arguments.
86
+
87
+ ```python
88
+ import pulumi
89
+ import pulumi_newrelic as newrelic
90
+
91
+ foo_authentication_domain = newrelic.get_authentication_domain(name="Test Authentication Domain")
92
+ foo_group = newrelic.get_group(authentication_domain_id=foo_authentication_domain.id,
93
+ name="Test Group")
94
+ ```
95
+
96
+
97
+ :param str authentication_domain_id: The ID of the authentication domain the group to be searched for belongs to.
98
+ :param str name: The name of the group to search for.
99
+
100
+ > **NOTE** The ID of an authentication domain can be retrieved using its name, via the data source `get_authentication_domain`, as shown in the example above. Head over to the documentation of this data source for more details and examples.
101
+ """
102
+ __args__ = dict()
103
+ __args__['authenticationDomainId'] = authentication_domain_id
104
+ __args__['name'] = name
105
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
106
+ __ret__ = pulumi.runtime.invoke('newrelic:index/getGroup:getGroup', __args__, opts=opts, typ=GetGroupResult).value
107
+
108
+ return AwaitableGetGroupResult(
109
+ authentication_domain_id=pulumi.get(__ret__, 'authentication_domain_id'),
110
+ id=pulumi.get(__ret__, 'id'),
111
+ name=pulumi.get(__ret__, 'name'),
112
+ user_ids=pulumi.get(__ret__, 'user_ids'))
113
+
114
+
115
+ @_utilities.lift_output_func(get_group)
116
+ def get_group_output(authentication_domain_id: Optional[pulumi.Input[str]] = None,
117
+ name: Optional[pulumi.Input[str]] = None,
118
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetGroupResult]:
119
+ """
120
+ The `Group` data source helps search for a group by its name and retrieve the ID of the matching group and other associated attributes.
121
+
122
+ ## Example Usage
123
+
124
+ The below example illustrates fetching the ID of a group (and IDs of users who belong to the group, if any) using the required arguments.
125
+
126
+ ```python
127
+ import pulumi
128
+ import pulumi_newrelic as newrelic
129
+
130
+ foo_authentication_domain = newrelic.get_authentication_domain(name="Test Authentication Domain")
131
+ foo_group = newrelic.get_group(authentication_domain_id=foo_authentication_domain.id,
132
+ name="Test Group")
133
+ ```
134
+
135
+
136
+ :param str authentication_domain_id: The ID of the authentication domain the group to be searched for belongs to.
137
+ :param str name: The name of the group to search for.
138
+
139
+ > **NOTE** The ID of an authentication domain can be retrieved using its name, via the data source `get_authentication_domain`, as shown in the example above. Head over to the documentation of this data source for more details and examples.
140
+ """
141
+ ...
@@ -76,11 +76,11 @@ def get_user(authentication_domain_id: Optional[str] = None,
76
76
  name: Optional[str] = None,
77
77
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetUserResult:
78
78
  """
79
- The `User` data source may be used to search for a user by their name and/or email ID, and accordingly, fetch the ID of the matching user.
79
+ The `User` data source helps search for a user by their name and/or email ID, and accordingly, fetch the ID of the matching user.
80
80
 
81
81
  ## Example Usage
82
82
 
83
- The below example illustrates fetching a user's ID (and other arguments) using the ID of the authentication domain the user belongs to, as well as a name and/or email ID, which can be used as criteria to search for a user who matches these specified parameters.
83
+ The below example illustrates fetching a the ID of a user (and other arguments) using the ID of the authentication domain the user belongs to, as well as a name and/or email ID, which can be used as criteria to search for a user who matches these specified parameters.
84
84
  ```python
85
85
  import pulumi
86
86
  import pulumi_newrelic as newrelic
@@ -98,7 +98,7 @@ def get_user(authentication_domain_id: Optional[str] = None,
98
98
 
99
99
  It should be noted that either `name` or `email_id` must be specified in order to retrieve a matching user.
100
100
 
101
- > **NOTE** If the specified `name` matches, or is contained in the names of multiple users in the account, the data source will return the first match from the list of all matching users retrieved from the API. However, when using the `email_id` argument as the search criterion, only the user with the specified email ID will be returned, as each user has a unique email ID and multiple users cannot have the same email ID.
101
+ > **NOTE** If the `name` specified in the configuration matches the names of multiple users in the account, the data source will return the first match from the list of all matching users retrieved from the API. However, when using the `email_id` argument as the search criterion, only the user with the specified email ID will be returned, as each user has a unique email ID and multiple users cannot have the same email ID.
102
102
 
103
103
  > **NOTE** The ID of an authentication domain can be retrieved using its name, via the data source `get_authentication_domain`, as shown in the example above. Head over to the documentation of this data source for more details and examples.
104
104
  :param str name: The name of the user to search for.
@@ -123,11 +123,11 @@ def get_user_output(authentication_domain_id: Optional[pulumi.Input[str]] = None
123
123
  name: Optional[pulumi.Input[Optional[str]]] = None,
124
124
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetUserResult]:
125
125
  """
126
- The `User` data source may be used to search for a user by their name and/or email ID, and accordingly, fetch the ID of the matching user.
126
+ The `User` data source helps search for a user by their name and/or email ID, and accordingly, fetch the ID of the matching user.
127
127
 
128
128
  ## Example Usage
129
129
 
130
- The below example illustrates fetching a user's ID (and other arguments) using the ID of the authentication domain the user belongs to, as well as a name and/or email ID, which can be used as criteria to search for a user who matches these specified parameters.
130
+ The below example illustrates fetching a the ID of a user (and other arguments) using the ID of the authentication domain the user belongs to, as well as a name and/or email ID, which can be used as criteria to search for a user who matches these specified parameters.
131
131
  ```python
132
132
  import pulumi
133
133
  import pulumi_newrelic as newrelic
@@ -145,7 +145,7 @@ def get_user_output(authentication_domain_id: Optional[pulumi.Input[str]] = None
145
145
 
146
146
  It should be noted that either `name` or `email_id` must be specified in order to retrieve a matching user.
147
147
 
148
- > **NOTE** If the specified `name` matches, or is contained in the names of multiple users in the account, the data source will return the first match from the list of all matching users retrieved from the API. However, when using the `email_id` argument as the search criterion, only the user with the specified email ID will be returned, as each user has a unique email ID and multiple users cannot have the same email ID.
148
+ > **NOTE** If the `name` specified in the configuration matches the names of multiple users in the account, the data source will return the first match from the list of all matching users retrieved from the API. However, when using the `email_id` argument as the search criterion, only the user with the specified email ID will be returned, as each user has a unique email ID and multiple users cannot have the same email ID.
149
149
 
150
150
  > **NOTE** The ID of an authentication domain can be retrieved using its name, via the data source `get_authentication_domain`, as shown in the example above. Head over to the documentation of this data source for more details and examples.
151
151
  :param str name: The name of the user to search for.