pulumi-newrelic 5.42.1__py3-none-any.whl → 5.58.0a1766556761__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 (92) hide show
  1. pulumi_newrelic/__init__.py +19 -1
  2. pulumi_newrelic/_inputs.py +4314 -3779
  3. pulumi_newrelic/_utilities.py +1 -1
  4. pulumi_newrelic/account_management.py +37 -36
  5. pulumi_newrelic/alert_channel.py +63 -62
  6. pulumi_newrelic/alert_condition.py +219 -218
  7. pulumi_newrelic/alert_muting_rule.py +96 -95
  8. pulumi_newrelic/alert_policy.py +71 -70
  9. pulumi_newrelic/alert_policy_channel.py +54 -53
  10. pulumi_newrelic/api_access_key.py +186 -201
  11. pulumi_newrelic/browser_application.py +115 -114
  12. pulumi_newrelic/cloud/__init__.py +3 -1
  13. pulumi_newrelic/cloud/_inputs.py +2226 -2118
  14. pulumi_newrelic/cloud/aws_govcloud_integrations.py +101 -96
  15. pulumi_newrelic/cloud/aws_govcloud_link_account.py +71 -70
  16. pulumi_newrelic/cloud/aws_integrations.py +240 -192
  17. pulumi_newrelic/cloud/aws_link_account.py +71 -70
  18. pulumi_newrelic/cloud/azure_integrations.py +180 -132
  19. pulumi_newrelic/cloud/azure_link_account.py +105 -104
  20. pulumi_newrelic/cloud/gcp_integrations.py +115 -114
  21. pulumi_newrelic/cloud/gcp_link_account.py +56 -55
  22. pulumi_newrelic/cloud/oci_link_account.py +926 -0
  23. pulumi_newrelic/cloud/outputs.py +1512 -1410
  24. pulumi_newrelic/config/__init__.py +2 -1
  25. pulumi_newrelic/config/__init__.pyi +2 -2
  26. pulumi_newrelic/config/vars.py +15 -15
  27. pulumi_newrelic/data_partition_rule.py +114 -113
  28. pulumi_newrelic/entity_tags.py +79 -22
  29. pulumi_newrelic/events_to_metrics_rule.py +97 -96
  30. pulumi_newrelic/get_account.py +22 -22
  31. pulumi_newrelic/get_alert_channel.py +53 -21
  32. pulumi_newrelic/get_alert_policy.py +52 -26
  33. pulumi_newrelic/get_application.py +14 -14
  34. pulumi_newrelic/get_authentication_domain.py +10 -10
  35. pulumi_newrelic/get_cloud_account.py +22 -22
  36. pulumi_newrelic/get_entity.py +53 -53
  37. pulumi_newrelic/get_group.py +22 -22
  38. pulumi_newrelic/get_key_transaction.py +26 -26
  39. pulumi_newrelic/get_notification_destination.py +31 -31
  40. pulumi_newrelic/get_obfuscation_expression.py +16 -16
  41. pulumi_newrelic/get_service_level_alert_helper.py +54 -54
  42. pulumi_newrelic/get_test_grok_pattern.py +23 -23
  43. pulumi_newrelic/get_user.py +22 -22
  44. pulumi_newrelic/group.py +54 -53
  45. pulumi_newrelic/infra_alert_condition.py +257 -256
  46. pulumi_newrelic/insights/__init__.py +2 -1
  47. pulumi_newrelic/insights/_inputs.py +33 -33
  48. pulumi_newrelic/insights/event.py +6 -5
  49. pulumi_newrelic/insights/outputs.py +23 -23
  50. pulumi_newrelic/key_transaction.py +106 -105
  51. pulumi_newrelic/log_parsing_rule.py +148 -147
  52. pulumi_newrelic/monitor_downtime.py +148 -154
  53. pulumi_newrelic/notification_channel.py +218 -163
  54. pulumi_newrelic/notification_destination.py +123 -136
  55. pulumi_newrelic/nrql_alert_condition.py +513 -414
  56. pulumi_newrelic/nrql_drop_rule.py +108 -147
  57. pulumi_newrelic/obfuscation_expression.py +71 -70
  58. pulumi_newrelic/obfuscation_rule.py +91 -90
  59. pulumi_newrelic/one_dashboard.py +95 -94
  60. pulumi_newrelic/one_dashboard_json.py +64 -63
  61. pulumi_newrelic/one_dashboard_raw.py +116 -115
  62. pulumi_newrelic/outputs.py +3026 -2665
  63. pulumi_newrelic/pipeline_cloud_rule.py +335 -0
  64. pulumi_newrelic/plugins/__init__.py +2 -1
  65. pulumi_newrelic/plugins/_inputs.py +159 -159
  66. pulumi_newrelic/plugins/application_settings.py +186 -171
  67. pulumi_newrelic/plugins/outputs.py +109 -109
  68. pulumi_newrelic/plugins/workload.py +133 -132
  69. pulumi_newrelic/provider.py +136 -116
  70. pulumi_newrelic/pulumi-plugin.json +1 -1
  71. pulumi_newrelic/service_level.py +78 -77
  72. pulumi_newrelic/synthetics/__init__.py +2 -1
  73. pulumi_newrelic/synthetics/_inputs.py +128 -128
  74. pulumi_newrelic/synthetics/alert_condition.py +97 -96
  75. pulumi_newrelic/synthetics/broken_links_monitor.py +218 -189
  76. pulumi_newrelic/synthetics/cert_check_monitor.py +226 -197
  77. pulumi_newrelic/synthetics/get_private_location.py +22 -22
  78. pulumi_newrelic/synthetics/get_secure_credential.py +20 -20
  79. pulumi_newrelic/synthetics/monitor.py +399 -370
  80. pulumi_newrelic/synthetics/multi_location_alert_condition.py +120 -119
  81. pulumi_newrelic/synthetics/outputs.py +86 -86
  82. pulumi_newrelic/synthetics/private_location.py +107 -106
  83. pulumi_newrelic/synthetics/script_monitor.py +385 -294
  84. pulumi_newrelic/synthetics/secure_credential.py +88 -87
  85. pulumi_newrelic/synthetics/step_monitor.py +241 -212
  86. pulumi_newrelic/user.py +71 -70
  87. pulumi_newrelic/workflow.py +141 -140
  88. {pulumi_newrelic-5.42.1.dist-info → pulumi_newrelic-5.58.0a1766556761.dist-info}/METADATA +4 -4
  89. pulumi_newrelic-5.58.0a1766556761.dist-info/RECORD +92 -0
  90. {pulumi_newrelic-5.42.1.dist-info → pulumi_newrelic-5.58.0a1766556761.dist-info}/WHEEL +1 -1
  91. pulumi_newrelic-5.42.1.dist-info/RECORD +0 -90
  92. {pulumi_newrelic-5.42.1.dist-info → pulumi_newrelic-5.58.0a1766556761.dist-info}/top_level.txt +0 -0
@@ -1,8 +1,8 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import copy
5
+ import builtins as _builtins
6
6
  import warnings
7
7
  import sys
8
8
  import pulumi
@@ -40,27 +40,27 @@ class GetAccountResult:
40
40
  raise TypeError("Expected argument 'scope' to be a str")
41
41
  pulumi.set(__self__, "scope", scope)
42
42
 
43
- @property
43
+ @_builtins.property
44
44
  @pulumi.getter(name="accountId")
45
- def account_id(self) -> Optional[str]:
45
+ def account_id(self) -> Optional[_builtins.str]:
46
46
  return pulumi.get(self, "account_id")
47
47
 
48
- @property
48
+ @_builtins.property
49
49
  @pulumi.getter
50
- def id(self) -> str:
50
+ def id(self) -> _builtins.str:
51
51
  """
52
52
  The provider-assigned unique ID for this managed resource.
53
53
  """
54
54
  return pulumi.get(self, "id")
55
55
 
56
- @property
56
+ @_builtins.property
57
57
  @pulumi.getter
58
- def name(self) -> Optional[str]:
58
+ def name(self) -> Optional[_builtins.str]:
59
59
  return pulumi.get(self, "name")
60
60
 
61
- @property
61
+ @_builtins.property
62
62
  @pulumi.getter
63
- def scope(self) -> Optional[str]:
63
+ def scope(self) -> Optional[_builtins.str]:
64
64
  return pulumi.get(self, "scope")
65
65
 
66
66
 
@@ -76,9 +76,9 @@ class AwaitableGetAccountResult(GetAccountResult):
76
76
  scope=self.scope)
77
77
 
78
78
 
79
- def get_account(account_id: Optional[str] = None,
80
- name: Optional[str] = None,
81
- scope: Optional[str] = None,
79
+ def get_account(account_id: Optional[_builtins.str] = None,
80
+ name: Optional[_builtins.str] = None,
81
+ scope: Optional[_builtins.str] = None,
82
82
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAccountResult:
83
83
  """
84
84
  Use this data source to get information about a specific account in New Relic.
@@ -95,9 +95,9 @@ def get_account(account_id: Optional[str] = None,
95
95
  ```
96
96
 
97
97
 
98
- :param str account_id: The account ID in New Relic.
99
- :param str name: The account name in New Relic.
100
- :param str scope: The scope of the account in New Relic. Valid values are "global" and "in_region". Defaults to "in_region".
98
+ :param _builtins.str account_id: The account ID in New Relic.
99
+ :param _builtins.str name: The account name in New Relic.
100
+ :param _builtins.str scope: The scope of the account in New Relic. Valid values are "global" and "in_region". Defaults to "in_region".
101
101
  """
102
102
  __args__ = dict()
103
103
  __args__['accountId'] = account_id
@@ -111,9 +111,9 @@ def get_account(account_id: Optional[str] = None,
111
111
  id=pulumi.get(__ret__, 'id'),
112
112
  name=pulumi.get(__ret__, 'name'),
113
113
  scope=pulumi.get(__ret__, 'scope'))
114
- def get_account_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
115
- name: Optional[pulumi.Input[Optional[str]]] = None,
116
- scope: Optional[pulumi.Input[Optional[str]]] = None,
114
+ def get_account_output(account_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
115
+ name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
116
+ scope: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
117
117
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAccountResult]:
118
118
  """
119
119
  Use this data source to get information about a specific account in New Relic.
@@ -130,9 +130,9 @@ def get_account_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
130
130
  ```
131
131
 
132
132
 
133
- :param str account_id: The account ID in New Relic.
134
- :param str name: The account name in New Relic.
135
- :param str scope: The scope of the account in New Relic. Valid values are "global" and "in_region". Defaults to "in_region".
133
+ :param _builtins.str account_id: The account ID in New Relic.
134
+ :param _builtins.str name: The account name in New Relic.
135
+ :param _builtins.str scope: The scope of the account in New Relic. Valid values are "global" and "in_region". Defaults to "in_region".
136
136
  """
137
137
  __args__ = dict()
138
138
  __args__['accountId'] = account_id
@@ -1,8 +1,8 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import copy
5
+ import builtins as _builtins
6
6
  import warnings
7
7
  import sys
8
8
  import pulumi
@@ -47,12 +47,12 @@ class GetAlertChannelResult:
47
47
  raise TypeError("Expected argument 'type' to be a str")
48
48
  pulumi.set(__self__, "type", type)
49
49
 
50
- @property
50
+ @_builtins.property
51
51
  @pulumi.getter(name="accountId")
52
- def account_id(self) -> str:
52
+ def account_id(self) -> _builtins.str:
53
53
  return pulumi.get(self, "account_id")
54
54
 
55
- @property
55
+ @_builtins.property
56
56
  @pulumi.getter
57
57
  def config(self) -> 'outputs.GetAlertChannelConfigResult':
58
58
  """
@@ -60,30 +60,30 @@ class GetAlertChannelResult:
60
60
  """
61
61
  return pulumi.get(self, "config")
62
62
 
63
- @property
63
+ @_builtins.property
64
64
  @pulumi.getter
65
- def id(self) -> str:
65
+ def id(self) -> _builtins.str:
66
66
  """
67
67
  The provider-assigned unique ID for this managed resource.
68
68
  """
69
69
  return pulumi.get(self, "id")
70
70
 
71
- @property
71
+ @_builtins.property
72
72
  @pulumi.getter
73
- def name(self) -> str:
73
+ def name(self) -> _builtins.str:
74
74
  return pulumi.get(self, "name")
75
75
 
76
- @property
76
+ @_builtins.property
77
77
  @pulumi.getter(name="policyIds")
78
- def policy_ids(self) -> Sequence[str]:
78
+ def policy_ids(self) -> Sequence[_builtins.str]:
79
79
  """
80
80
  A list of policy IDs associated with the alert channel.
81
81
  """
82
82
  return pulumi.get(self, "policy_ids")
83
83
 
84
- @property
84
+ @_builtins.property
85
85
  @pulumi.getter
86
- def type(self) -> str:
86
+ def type(self) -> _builtins.str:
87
87
  """
88
88
  Alert channel type, either: `email`, `opsgenie`, `pagerduty`, `slack`, `victorops`, or `webhook`.
89
89
  """
@@ -104,17 +104,33 @@ class AwaitableGetAlertChannelResult(GetAlertChannelResult):
104
104
  type=self.type)
105
105
 
106
106
 
107
- def get_alert_channel(account_id: Optional[str] = None,
108
- name: Optional[str] = None,
107
+ def get_alert_channel(account_id: Optional[_builtins.str] = None,
108
+ name: Optional[_builtins.str] = None,
109
109
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAlertChannelResult:
110
110
  """
111
111
  Use this data source to get information about a specific alert channel in New Relic that already exists.
112
112
 
113
113
  > **WARNING:** The `AlertChannel` data source is deprecated and will be removed in the next major release.
114
114
 
115
+ ## Example Usage
115
116
 
116
- :param str 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`.
117
- :param str name: The name of the alert channel in New Relic.
117
+ ```python
118
+ import pulumi
119
+ import pulumi_newrelic as newrelic
120
+
121
+ # Data source
122
+ foo = newrelic.get_alert_channel(name="foo@example.com")
123
+ # Resource
124
+ foo_alert_policy = newrelic.AlertPolicy("foo", name="foo")
125
+ # Using the data source and resource together
126
+ foo_alert_policy_channel = newrelic.AlertPolicyChannel("foo",
127
+ policy_id=foo_alert_policy.id,
128
+ channel_id=foo.id)
129
+ ```
130
+
131
+
132
+ :param _builtins.str 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`.
133
+ :param _builtins.str name: The name of the alert channel in New Relic.
118
134
  """
119
135
  __args__ = dict()
120
136
  __args__['accountId'] = account_id
@@ -129,17 +145,33 @@ def get_alert_channel(account_id: Optional[str] = None,
129
145
  name=pulumi.get(__ret__, 'name'),
130
146
  policy_ids=pulumi.get(__ret__, 'policy_ids'),
131
147
  type=pulumi.get(__ret__, 'type'))
132
- def get_alert_channel_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
133
- name: Optional[pulumi.Input[str]] = None,
148
+ def get_alert_channel_output(account_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
149
+ name: Optional[pulumi.Input[_builtins.str]] = None,
134
150
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAlertChannelResult]:
135
151
  """
136
152
  Use this data source to get information about a specific alert channel in New Relic that already exists.
137
153
 
138
154
  > **WARNING:** The `AlertChannel` data source is deprecated and will be removed in the next major release.
139
155
 
156
+ ## Example Usage
157
+
158
+ ```python
159
+ import pulumi
160
+ import pulumi_newrelic as newrelic
161
+
162
+ # Data source
163
+ foo = newrelic.get_alert_channel(name="foo@example.com")
164
+ # Resource
165
+ foo_alert_policy = newrelic.AlertPolicy("foo", name="foo")
166
+ # Using the data source and resource together
167
+ foo_alert_policy_channel = newrelic.AlertPolicyChannel("foo",
168
+ policy_id=foo_alert_policy.id,
169
+ channel_id=foo.id)
170
+ ```
171
+
140
172
 
141
- :param str 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`.
142
- :param str name: The name of the alert channel in New Relic.
173
+ :param _builtins.str 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`.
174
+ :param _builtins.str name: The name of the alert channel in New Relic.
143
175
  """
144
176
  __args__ = dict()
145
177
  __args__['accountId'] = account_id
@@ -1,8 +1,8 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import copy
5
+ import builtins as _builtins
6
6
  import warnings
7
7
  import sys
8
8
  import pulumi
@@ -46,30 +46,30 @@ class GetAlertPolicyResult:
46
46
  raise TypeError("Expected argument 'updated_at' to be a str")
47
47
  pulumi.set(__self__, "updated_at", updated_at)
48
48
 
49
- @property
49
+ @_builtins.property
50
50
  @pulumi.getter(name="accountId")
51
- def account_id(self) -> str:
51
+ def account_id(self) -> _builtins.str:
52
52
  return pulumi.get(self, "account_id")
53
53
 
54
- @property
54
+ @_builtins.property
55
55
  @pulumi.getter(name="createdAt")
56
- def created_at(self) -> str:
56
+ def created_at(self) -> _builtins.str:
57
57
  """
58
58
  The time the policy was created.
59
59
  """
60
60
  return pulumi.get(self, "created_at")
61
61
 
62
- @property
62
+ @_builtins.property
63
63
  @pulumi.getter
64
- def id(self) -> str:
64
+ def id(self) -> _builtins.str:
65
65
  """
66
66
  The provider-assigned unique ID for this managed resource.
67
67
  """
68
68
  return pulumi.get(self, "id")
69
69
 
70
- @property
70
+ @_builtins.property
71
71
  @pulumi.getter(name="incidentPreference")
72
- def incident_preference(self) -> Optional[str]:
72
+ def incident_preference(self) -> Optional[_builtins.str]:
73
73
  """
74
74
  The rollup strategy for the policy, which can have one of the following values:
75
75
  * `PER_POLICY` - Represents the incident grouping preference **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.
@@ -78,14 +78,14 @@ class GetAlertPolicyResult:
78
78
  """
79
79
  return pulumi.get(self, "incident_preference")
80
80
 
81
- @property
81
+ @_builtins.property
82
82
  @pulumi.getter
83
- def name(self) -> str:
83
+ def name(self) -> _builtins.str:
84
84
  return pulumi.get(self, "name")
85
85
 
86
- @property
86
+ @_builtins.property
87
87
  @pulumi.getter(name="updatedAt")
88
- def updated_at(self) -> str:
88
+ def updated_at(self) -> _builtins.str:
89
89
  """
90
90
  The time the policy was last updated.
91
91
  """
@@ -106,20 +106,33 @@ class AwaitableGetAlertPolicyResult(GetAlertPolicyResult):
106
106
  updated_at=self.updated_at)
107
107
 
108
108
 
109
- def get_alert_policy(account_id: Optional[str] = None,
110
- incident_preference: Optional[str] = None,
111
- name: Optional[str] = None,
109
+ def get_alert_policy(account_id: Optional[_builtins.str] = None,
110
+ incident_preference: Optional[_builtins.str] = None,
111
+ name: Optional[_builtins.str] = None,
112
112
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAlertPolicyResult:
113
113
  """
114
114
  Use this data source to get information about a specific alert policy in New Relic that already exists.
115
115
 
116
+ ## Example Usage
116
117
 
117
- :param str 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`.
118
- :param str incident_preference: The rollup strategy for the policy, which can have one of the following values:
118
+ ```python
119
+ import pulumi
120
+ import pulumi_newrelic as newrelic
121
+
122
+ foo = newrelic.get_alert_channel(name="foo@example.com")
123
+ foo_get_alert_policy = newrelic.get_alert_policy(name="foo policy")
124
+ foo_alert_policy_channel = newrelic.AlertPolicyChannel("foo",
125
+ policy_id=foo_get_alert_policy.id,
126
+ channel_id=foo.id)
127
+ ```
128
+
129
+
130
+ :param _builtins.str 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`.
131
+ :param _builtins.str incident_preference: The rollup strategy for the policy, which can have one of the following values:
119
132
  * `PER_POLICY` - Represents the incident grouping preference **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.
120
133
  * `PER_CONDITION` - Represents the incident grouping preference **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.
121
134
  * `PER_CONDITION_AND_TARGET` - Represents the incident grouping preference **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.
122
- :param str name: The name of the alert policy in New Relic.
135
+ :param _builtins.str name: The name of the alert policy in New Relic.
123
136
  """
124
137
  __args__ = dict()
125
138
  __args__['accountId'] = account_id
@@ -135,20 +148,33 @@ def get_alert_policy(account_id: Optional[str] = None,
135
148
  incident_preference=pulumi.get(__ret__, 'incident_preference'),
136
149
  name=pulumi.get(__ret__, 'name'),
137
150
  updated_at=pulumi.get(__ret__, 'updated_at'))
138
- def get_alert_policy_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
139
- incident_preference: Optional[pulumi.Input[Optional[str]]] = None,
140
- name: Optional[pulumi.Input[str]] = None,
151
+ def get_alert_policy_output(account_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
152
+ incident_preference: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
153
+ name: Optional[pulumi.Input[_builtins.str]] = None,
141
154
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAlertPolicyResult]:
142
155
  """
143
156
  Use this data source to get information about a specific alert policy in New Relic that already exists.
144
157
 
158
+ ## Example Usage
159
+
160
+ ```python
161
+ import pulumi
162
+ import pulumi_newrelic as newrelic
163
+
164
+ foo = newrelic.get_alert_channel(name="foo@example.com")
165
+ foo_get_alert_policy = newrelic.get_alert_policy(name="foo policy")
166
+ foo_alert_policy_channel = newrelic.AlertPolicyChannel("foo",
167
+ policy_id=foo_get_alert_policy.id,
168
+ channel_id=foo.id)
169
+ ```
170
+
145
171
 
146
- :param str 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`.
147
- :param str incident_preference: The rollup strategy for the policy, which can have one of the following values:
172
+ :param _builtins.str 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`.
173
+ :param _builtins.str incident_preference: The rollup strategy for the policy, which can have one of the following values:
148
174
  * `PER_POLICY` - Represents the incident grouping preference **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.
149
175
  * `PER_CONDITION` - Represents the incident grouping preference **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.
150
176
  * `PER_CONDITION_AND_TARGET` - Represents the incident grouping preference **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.
151
- :param str name: The name of the alert policy in New Relic.
177
+ :param _builtins.str name: The name of the alert policy in New Relic.
152
178
  """
153
179
  __args__ = dict()
154
180
  __args__['accountId'] = account_id
@@ -1,8 +1,8 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import copy
5
+ import builtins as _builtins
6
6
  import warnings
7
7
  import sys
8
8
  import pulumi
@@ -40,33 +40,33 @@ class GetApplicationResult:
40
40
  raise TypeError("Expected argument 'name' to be a str")
41
41
  pulumi.set(__self__, "name", name)
42
42
 
43
- @property
43
+ @_builtins.property
44
44
  @pulumi.getter(name="hostIds")
45
- def host_ids(self) -> Sequence[str]:
45
+ def host_ids(self) -> Sequence[_builtins.str]:
46
46
  """
47
47
  A list of host IDs associated with the application.
48
48
  """
49
49
  return pulumi.get(self, "host_ids")
50
50
 
51
- @property
51
+ @_builtins.property
52
52
  @pulumi.getter
53
- def id(self) -> str:
53
+ def id(self) -> _builtins.str:
54
54
  """
55
55
  The provider-assigned unique ID for this managed resource.
56
56
  """
57
57
  return pulumi.get(self, "id")
58
58
 
59
- @property
59
+ @_builtins.property
60
60
  @pulumi.getter(name="instanceIds")
61
- def instance_ids(self) -> Sequence[str]:
61
+ def instance_ids(self) -> Sequence[_builtins.str]:
62
62
  """
63
63
  A list of instance IDs associated with the application.
64
64
  """
65
65
  return pulumi.get(self, "instance_ids")
66
66
 
67
- @property
67
+ @_builtins.property
68
68
  @pulumi.getter
69
- def name(self) -> str:
69
+ def name(self) -> _builtins.str:
70
70
  return pulumi.get(self, "name")
71
71
 
72
72
 
@@ -82,7 +82,7 @@ class AwaitableGetApplicationResult(GetApplicationResult):
82
82
  name=self.name)
83
83
 
84
84
 
85
- def get_application(name: Optional[str] = None,
85
+ def get_application(name: Optional[_builtins.str] = None,
86
86
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetApplicationResult:
87
87
  """
88
88
  #### DEPRECATED! Use at your own risk. Use the `get_entity` data source instead. This feature may be removed in the next major release
@@ -114,7 +114,7 @@ def get_application(name: Optional[str] = None,
114
114
  ```
115
115
 
116
116
 
117
- :param str name: The name of the application in New Relic.
117
+ :param _builtins.str name: The name of the application in New Relic.
118
118
  """
119
119
  __args__ = dict()
120
120
  __args__['name'] = name
@@ -126,7 +126,7 @@ def get_application(name: Optional[str] = None,
126
126
  id=pulumi.get(__ret__, 'id'),
127
127
  instance_ids=pulumi.get(__ret__, 'instance_ids'),
128
128
  name=pulumi.get(__ret__, 'name'))
129
- def get_application_output(name: Optional[pulumi.Input[str]] = None,
129
+ def get_application_output(name: Optional[pulumi.Input[_builtins.str]] = None,
130
130
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetApplicationResult]:
131
131
  """
132
132
  #### DEPRECATED! Use at your own risk. Use the `get_entity` data source instead. This feature may be removed in the next major release
@@ -158,7 +158,7 @@ def get_application_output(name: Optional[pulumi.Input[str]] = None,
158
158
  ```
159
159
 
160
160
 
161
- :param str name: The name of the application in New Relic.
161
+ :param _builtins.str name: The name of the application in New Relic.
162
162
  """
163
163
  __args__ = dict()
164
164
  __args__['name'] = name
@@ -1,8 +1,8 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import copy
5
+ import builtins as _builtins
6
6
  import warnings
7
7
  import sys
8
8
  import pulumi
@@ -34,17 +34,17 @@ class GetAuthenticationDomainResult:
34
34
  raise TypeError("Expected argument 'name' to be a str")
35
35
  pulumi.set(__self__, "name", name)
36
36
 
37
- @property
37
+ @_builtins.property
38
38
  @pulumi.getter
39
- def id(self) -> str:
39
+ def id(self) -> _builtins.str:
40
40
  """
41
41
  The ID of the matching authentication domain fetched.
42
42
  """
43
43
  return pulumi.get(self, "id")
44
44
 
45
- @property
45
+ @_builtins.property
46
46
  @pulumi.getter
47
- def name(self) -> str:
47
+ def name(self) -> _builtins.str:
48
48
  return pulumi.get(self, "name")
49
49
 
50
50
 
@@ -58,7 +58,7 @@ class AwaitableGetAuthenticationDomainResult(GetAuthenticationDomainResult):
58
58
  name=self.name)
59
59
 
60
60
 
61
- def get_authentication_domain(name: Optional[str] = None,
61
+ def get_authentication_domain(name: Optional[_builtins.str] = None,
62
62
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAuthenticationDomainResult:
63
63
  """
64
64
  Use this data source to fetch the ID of an authentication domain belonging to your account, matching the specified name.
@@ -74,7 +74,7 @@ def get_authentication_domain(name: Optional[str] = None,
74
74
  ```
75
75
 
76
76
 
77
- :param str name: The name of the authentication domain to be searched for. An error is thrown, if no authentication domain is found with the specified name.
77
+ :param _builtins.str name: The name of the authentication domain to be searched for. An error is thrown, if no authentication domain is found with the specified name.
78
78
  """
79
79
  __args__ = dict()
80
80
  __args__['name'] = name
@@ -84,7 +84,7 @@ def get_authentication_domain(name: Optional[str] = None,
84
84
  return AwaitableGetAuthenticationDomainResult(
85
85
  id=pulumi.get(__ret__, 'id'),
86
86
  name=pulumi.get(__ret__, 'name'))
87
- def get_authentication_domain_output(name: Optional[pulumi.Input[str]] = None,
87
+ def get_authentication_domain_output(name: Optional[pulumi.Input[_builtins.str]] = None,
88
88
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAuthenticationDomainResult]:
89
89
  """
90
90
  Use this data source to fetch the ID of an authentication domain belonging to your account, matching the specified name.
@@ -100,7 +100,7 @@ def get_authentication_domain_output(name: Optional[pulumi.Input[str]] = None,
100
100
  ```
101
101
 
102
102
 
103
- :param str name: The name of the authentication domain to be searched for. An error is thrown, if no authentication domain is found with the specified name.
103
+ :param _builtins.str name: The name of the authentication domain to be searched for. An error is thrown, if no authentication domain is found with the specified name.
104
104
  """
105
105
  __args__ = dict()
106
106
  __args__['name'] = name
@@ -1,8 +1,8 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import copy
5
+ import builtins as _builtins
6
6
  import warnings
7
7
  import sys
8
8
  import pulumi
@@ -40,27 +40,27 @@ class GetCloudAccountResult:
40
40
  raise TypeError("Expected argument 'name' to be a str")
41
41
  pulumi.set(__self__, "name", name)
42
42
 
43
- @property
43
+ @_builtins.property
44
44
  @pulumi.getter(name="accountId")
45
- def account_id(self) -> Optional[str]:
45
+ def account_id(self) -> Optional[_builtins.str]:
46
46
  return pulumi.get(self, "account_id")
47
47
 
48
- @property
48
+ @_builtins.property
49
49
  @pulumi.getter(name="cloudProvider")
50
- def cloud_provider(self) -> str:
50
+ def cloud_provider(self) -> _builtins.str:
51
51
  return pulumi.get(self, "cloud_provider")
52
52
 
53
- @property
53
+ @_builtins.property
54
54
  @pulumi.getter
55
- def id(self) -> str:
55
+ def id(self) -> _builtins.str:
56
56
  """
57
57
  The provider-assigned unique ID for this managed resource.
58
58
  """
59
59
  return pulumi.get(self, "id")
60
60
 
61
- @property
61
+ @_builtins.property
62
62
  @pulumi.getter
63
- def name(self) -> str:
63
+ def name(self) -> _builtins.str:
64
64
  return pulumi.get(self, "name")
65
65
 
66
66
 
@@ -76,9 +76,9 @@ class AwaitableGetCloudAccountResult(GetCloudAccountResult):
76
76
  name=self.name)
77
77
 
78
78
 
79
- def get_cloud_account(account_id: Optional[str] = None,
80
- cloud_provider: Optional[str] = None,
81
- name: Optional[str] = None,
79
+ def get_cloud_account(account_id: Optional[_builtins.str] = None,
80
+ cloud_provider: Optional[_builtins.str] = None,
81
+ name: Optional[_builtins.str] = None,
82
82
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCloudAccountResult:
83
83
  """
84
84
  Use this data source to get information about a specific cloud account linked to New Relic.
@@ -96,9 +96,9 @@ def get_cloud_account(account_id: Optional[str] = None,
96
96
  ```
97
97
 
98
98
 
99
- :param str account_id: The account ID in New Relic.
100
- :param str cloud_provider: The cloud provider of the account (aws, gcp, azure, etc)
101
- :param str name: The cloud account name in New Relic.
99
+ :param _builtins.str account_id: The account ID in New Relic.
100
+ :param _builtins.str cloud_provider: The cloud provider of the account (aws, gcp, azure, etc)
101
+ :param _builtins.str name: The cloud account name in New Relic.
102
102
  """
103
103
  __args__ = dict()
104
104
  __args__['accountId'] = account_id
@@ -112,9 +112,9 @@ def get_cloud_account(account_id: Optional[str] = None,
112
112
  cloud_provider=pulumi.get(__ret__, 'cloud_provider'),
113
113
  id=pulumi.get(__ret__, 'id'),
114
114
  name=pulumi.get(__ret__, 'name'))
115
- def get_cloud_account_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
116
- cloud_provider: Optional[pulumi.Input[str]] = None,
117
- name: Optional[pulumi.Input[str]] = None,
115
+ def get_cloud_account_output(account_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
116
+ cloud_provider: Optional[pulumi.Input[_builtins.str]] = None,
117
+ name: Optional[pulumi.Input[_builtins.str]] = None,
118
118
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCloudAccountResult]:
119
119
  """
120
120
  Use this data source to get information about a specific cloud account linked to New Relic.
@@ -132,9 +132,9 @@ def get_cloud_account_output(account_id: Optional[pulumi.Input[Optional[str]]] =
132
132
  ```
133
133
 
134
134
 
135
- :param str account_id: The account ID in New Relic.
136
- :param str cloud_provider: The cloud provider of the account (aws, gcp, azure, etc)
137
- :param str name: The cloud account name in New Relic.
135
+ :param _builtins.str account_id: The account ID in New Relic.
136
+ :param _builtins.str cloud_provider: The cloud provider of the account (aws, gcp, azure, etc)
137
+ :param _builtins.str name: The cloud account name in New Relic.
138
138
  """
139
139
  __args__ = dict()
140
140
  __args__['accountId'] = account_id