pulumi-wavefront 3.2.0a1710161007__py3-none-any.whl → 3.2.0a1736836107__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 (56) hide show
  1. pulumi_wavefront/_inputs.py +528 -3
  2. pulumi_wavefront/_utilities.py +41 -5
  3. pulumi_wavefront/alert.py +16 -13
  4. pulumi_wavefront/alert_target.py +20 -17
  5. pulumi_wavefront/cloud_integration_app_dynamics.py +13 -10
  6. pulumi_wavefront/cloud_integration_aws_external_id.py +7 -6
  7. pulumi_wavefront/cloud_integration_azure.py +9 -6
  8. pulumi_wavefront/cloud_integration_azure_activity_log.py +9 -6
  9. pulumi_wavefront/cloud_integration_cloud_trail.py +9 -6
  10. pulumi_wavefront/cloud_integration_cloud_watch.py +9 -6
  11. pulumi_wavefront/cloud_integration_ec2.py +9 -6
  12. pulumi_wavefront/cloud_integration_gcp.py +11 -12
  13. pulumi_wavefront/cloud_integration_gcp_billing.py +13 -14
  14. pulumi_wavefront/cloud_integration_new_relic.py +16 -11
  15. pulumi_wavefront/config/__init__.pyi +5 -0
  16. pulumi_wavefront/config/vars.py +5 -0
  17. pulumi_wavefront/dashboard.py +15 -10
  18. pulumi_wavefront/dashboard_json.py +233 -234
  19. pulumi_wavefront/derived_metric.py +7 -4
  20. pulumi_wavefront/event.py +9 -6
  21. pulumi_wavefront/external_link.py +7 -4
  22. pulumi_wavefront/get_alert.py +39 -9
  23. pulumi_wavefront/get_alerts.py +18 -9
  24. pulumi_wavefront/get_dashboard.py +49 -10
  25. pulumi_wavefront/get_dashboards.py +18 -9
  26. pulumi_wavefront/get_default_user_group.py +14 -9
  27. pulumi_wavefront/get_derived_metric.py +37 -9
  28. pulumi_wavefront/get_derived_metrics.py +18 -9
  29. pulumi_wavefront/get_event.py +23 -9
  30. pulumi_wavefront/get_events.py +28 -15
  31. pulumi_wavefront/get_external_link.py +25 -9
  32. pulumi_wavefront/get_external_links.py +18 -9
  33. pulumi_wavefront/get_maintenance_window.py +31 -9
  34. pulumi_wavefront/get_maintenance_window_all.py +16 -5
  35. pulumi_wavefront/get_metrics_policy.py +15 -5
  36. pulumi_wavefront/get_role.py +17 -9
  37. pulumi_wavefront/get_roles.py +18 -9
  38. pulumi_wavefront/get_user.py +19 -9
  39. pulumi_wavefront/get_user_group.py +18 -9
  40. pulumi_wavefront/get_user_groups.py +18 -9
  41. pulumi_wavefront/get_users.py +14 -9
  42. pulumi_wavefront/ingestion_policy.py +14 -9
  43. pulumi_wavefront/maintenance_window.py +13 -12
  44. pulumi_wavefront/metrics_policy.py +30 -33
  45. pulumi_wavefront/outputs.py +13 -8
  46. pulumi_wavefront/provider.py +5 -0
  47. pulumi_wavefront/pulumi-plugin.json +2 -1
  48. pulumi_wavefront/role.py +7 -6
  49. pulumi_wavefront/service_account.py +9 -8
  50. pulumi_wavefront/user.py +5 -4
  51. pulumi_wavefront/user_group.py +11 -6
  52. {pulumi_wavefront-3.2.0a1710161007.dist-info → pulumi_wavefront-3.2.0a1736836107.dist-info}/METADATA +7 -6
  53. pulumi_wavefront-3.2.0a1736836107.dist-info/RECORD +58 -0
  54. {pulumi_wavefront-3.2.0a1710161007.dist-info → pulumi_wavefront-3.2.0a1736836107.dist-info}/WHEEL +1 -1
  55. pulumi_wavefront-3.2.0a1710161007.dist-info/RECORD +0 -58
  56. {pulumi_wavefront-3.2.0a1710161007.dist-info → pulumi_wavefront-3.2.0a1736836107.dist-info}/top_level.txt +0 -0
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
  from . import outputs
12
17
 
@@ -109,17 +114,16 @@ def get_events(earliest_start_time_epoch_millis: Optional[int] = None,
109
114
 
110
115
  ## Example Usage
111
116
 
112
- <!--Start PulumiCodeChooser -->
113
117
  ```python
114
118
  import pulumi
115
119
  import pulumi_wavefront as wavefront
116
120
 
117
- example = wavefront.get_events(earliest_start_time_epoch_millis=1665427195,
121
+ # Get the information about all events
122
+ example = wavefront.get_events(limit=10,
123
+ offset=0,
118
124
  latest_start_time_epoch_millis=1665427195,
119
- limit=10,
120
- offset=0)
125
+ earliest_start_time_epoch_millis=1665427195)
121
126
  ```
122
- <!--End PulumiCodeChooser -->
123
127
 
124
128
 
125
129
  :param int earliest_start_time_epoch_millis: The earliest start time in epoch milliseconds.
@@ -142,30 +146,26 @@ def get_events(earliest_start_time_epoch_millis: Optional[int] = None,
142
146
  latest_start_time_epoch_millis=pulumi.get(__ret__, 'latest_start_time_epoch_millis'),
143
147
  limit=pulumi.get(__ret__, 'limit'),
144
148
  offset=pulumi.get(__ret__, 'offset'))
145
-
146
-
147
- @_utilities.lift_output_func(get_events)
148
149
  def get_events_output(earliest_start_time_epoch_millis: Optional[pulumi.Input[int]] = None,
149
150
  latest_start_time_epoch_millis: Optional[pulumi.Input[int]] = None,
150
151
  limit: Optional[pulumi.Input[Optional[int]]] = None,
151
152
  offset: Optional[pulumi.Input[Optional[int]]] = None,
152
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetEventsResult]:
153
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetEventsResult]:
153
154
  """
154
155
  Use this data source to get information about all Wavefront events.
155
156
 
156
157
  ## Example Usage
157
158
 
158
- <!--Start PulumiCodeChooser -->
159
159
  ```python
160
160
  import pulumi
161
161
  import pulumi_wavefront as wavefront
162
162
 
163
- example = wavefront.get_events(earliest_start_time_epoch_millis=1665427195,
163
+ # Get the information about all events
164
+ example = wavefront.get_events(limit=10,
165
+ offset=0,
164
166
  latest_start_time_epoch_millis=1665427195,
165
- limit=10,
166
- offset=0)
167
+ earliest_start_time_epoch_millis=1665427195)
167
168
  ```
168
- <!--End PulumiCodeChooser -->
169
169
 
170
170
 
171
171
  :param int earliest_start_time_epoch_millis: The earliest start time in epoch milliseconds.
@@ -173,4 +173,17 @@ def get_events_output(earliest_start_time_epoch_millis: Optional[pulumi.Input[in
173
173
  :param int limit: Limit is the maximum number of results to be returned. Defaults to 100.
174
174
  :param int offset: Offset is the offset from the first result to be returned. Defaults to 0.
175
175
  """
176
- ...
176
+ __args__ = dict()
177
+ __args__['earliestStartTimeEpochMillis'] = earliest_start_time_epoch_millis
178
+ __args__['latestStartTimeEpochMillis'] = latest_start_time_epoch_millis
179
+ __args__['limit'] = limit
180
+ __args__['offset'] = offset
181
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
182
+ __ret__ = pulumi.runtime.invoke_output('wavefront:index/getEvents:getEvents', __args__, opts=opts, typ=GetEventsResult)
183
+ return __ret__.apply(lambda __response__: GetEventsResult(
184
+ earliest_start_time_epoch_millis=pulumi.get(__response__, 'earliest_start_time_epoch_millis'),
185
+ events=pulumi.get(__response__, 'events'),
186
+ id=pulumi.get(__response__, 'id'),
187
+ latest_start_time_epoch_millis=pulumi.get(__response__, 'latest_start_time_epoch_millis'),
188
+ limit=pulumi.get(__response__, 'limit'),
189
+ offset=pulumi.get(__response__, 'offset')))
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = [
@@ -186,14 +191,13 @@ def get_external_link(id: Optional[str] = None,
186
191
 
187
192
  ## Example Usage
188
193
 
189
- <!--Start PulumiCodeChooser -->
190
194
  ```python
191
195
  import pulumi
192
196
  import pulumi_wavefront as wavefront
193
197
 
198
+ # Get the information about a specific external links.
194
199
  example = wavefront.get_external_link(id="sample-external-link-id")
195
200
  ```
196
- <!--End PulumiCodeChooser -->
197
201
 
198
202
 
199
203
  :param str id: The ID of the external link.
@@ -216,26 +220,38 @@ def get_external_link(id: Optional[str] = None,
216
220
  template=pulumi.get(__ret__, 'template'),
217
221
  updated_epoch_millis=pulumi.get(__ret__, 'updated_epoch_millis'),
218
222
  updater_id=pulumi.get(__ret__, 'updater_id'))
219
-
220
-
221
- @_utilities.lift_output_func(get_external_link)
222
223
  def get_external_link_output(id: Optional[pulumi.Input[str]] = None,
223
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetExternalLinkResult]:
224
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetExternalLinkResult]:
224
225
  """
225
226
  Use this data source to get information about a Wavefront external link by its ID.
226
227
 
227
228
  ## Example Usage
228
229
 
229
- <!--Start PulumiCodeChooser -->
230
230
  ```python
231
231
  import pulumi
232
232
  import pulumi_wavefront as wavefront
233
233
 
234
+ # Get the information about a specific external links.
234
235
  example = wavefront.get_external_link(id="sample-external-link-id")
235
236
  ```
236
- <!--End PulumiCodeChooser -->
237
237
 
238
238
 
239
239
  :param str id: The ID of the external link.
240
240
  """
241
- ...
241
+ __args__ = dict()
242
+ __args__['id'] = id
243
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
244
+ __ret__ = pulumi.runtime.invoke_output('wavefront:index/getExternalLink:getExternalLink', __args__, opts=opts, typ=GetExternalLinkResult)
245
+ return __ret__.apply(lambda __response__: GetExternalLinkResult(
246
+ created_epoch_millis=pulumi.get(__response__, 'created_epoch_millis'),
247
+ creator_id=pulumi.get(__response__, 'creator_id'),
248
+ description=pulumi.get(__response__, 'description'),
249
+ id=pulumi.get(__response__, 'id'),
250
+ is_log_integration=pulumi.get(__response__, 'is_log_integration'),
251
+ metric_filter_regex=pulumi.get(__response__, 'metric_filter_regex'),
252
+ name=pulumi.get(__response__, 'name'),
253
+ point_tag_filter_regexes=pulumi.get(__response__, 'point_tag_filter_regexes'),
254
+ source_filter_regex=pulumi.get(__response__, 'source_filter_regex'),
255
+ template=pulumi.get(__response__, 'template'),
256
+ updated_epoch_millis=pulumi.get(__response__, 'updated_epoch_millis'),
257
+ updater_id=pulumi.get(__response__, 'updater_id')))
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
  from . import outputs
12
17
 
@@ -83,15 +88,14 @@ def get_external_links(limit: Optional[int] = None,
83
88
 
84
89
  ## Example Usage
85
90
 
86
- <!--Start PulumiCodeChooser -->
87
91
  ```python
88
92
  import pulumi
89
93
  import pulumi_wavefront as wavefront
90
94
 
95
+ # Get the information about all external links.
91
96
  example = wavefront.get_external_links(limit=10,
92
97
  offset=0)
93
98
  ```
94
- <!--End PulumiCodeChooser -->
95
99
 
96
100
 
97
101
  :param int limit: Limit is the maximum number of results to be returned. Defaults to 100.
@@ -108,29 +112,34 @@ def get_external_links(limit: Optional[int] = None,
108
112
  id=pulumi.get(__ret__, 'id'),
109
113
  limit=pulumi.get(__ret__, 'limit'),
110
114
  offset=pulumi.get(__ret__, 'offset'))
111
-
112
-
113
- @_utilities.lift_output_func(get_external_links)
114
115
  def get_external_links_output(limit: Optional[pulumi.Input[Optional[int]]] = None,
115
116
  offset: Optional[pulumi.Input[Optional[int]]] = None,
116
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetExternalLinksResult]:
117
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetExternalLinksResult]:
117
118
  """
118
119
  Use this data source to get information about all Wavefront external links.
119
120
 
120
121
  ## Example Usage
121
122
 
122
- <!--Start PulumiCodeChooser -->
123
123
  ```python
124
124
  import pulumi
125
125
  import pulumi_wavefront as wavefront
126
126
 
127
+ # Get the information about all external links.
127
128
  example = wavefront.get_external_links(limit=10,
128
129
  offset=0)
129
130
  ```
130
- <!--End PulumiCodeChooser -->
131
131
 
132
132
 
133
133
  :param int limit: Limit is the maximum number of results to be returned. Defaults to 100.
134
134
  :param int offset: Offset is the offset from the first result to be returned. Defaults to 0.
135
135
  """
136
- ...
136
+ __args__ = dict()
137
+ __args__['limit'] = limit
138
+ __args__['offset'] = offset
139
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
140
+ __ret__ = pulumi.runtime.invoke_output('wavefront:index/getExternalLinks:getExternalLinks', __args__, opts=opts, typ=GetExternalLinksResult)
141
+ return __ret__.apply(lambda __response__: GetExternalLinksResult(
142
+ external_links=pulumi.get(__response__, 'external_links'),
143
+ id=pulumi.get(__response__, 'id'),
144
+ limit=pulumi.get(__response__, 'limit'),
145
+ offset=pulumi.get(__response__, 'offset')))
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = [
@@ -261,14 +266,13 @@ def get_maintenance_window(id: Optional[str] = None,
261
266
 
262
267
  ## Example Usage
263
268
 
264
- <!--Start PulumiCodeChooser -->
265
269
  ```python
266
270
  import pulumi
267
271
  import pulumi_wavefront as wavefront
268
272
 
273
+ # Get the information about specific maintenance window.
269
274
  example = wavefront.get_maintenance_window(id="sample-maintenance-window-id")
270
275
  ```
271
- <!--End PulumiCodeChooser -->
272
276
 
273
277
 
274
278
  :param str id: The ID of the maintenance window.
@@ -297,26 +301,44 @@ def get_maintenance_window(id: Optional[str] = None,
297
301
  title=pulumi.get(__ret__, 'title'),
298
302
  updated_epoch_millis=pulumi.get(__ret__, 'updated_epoch_millis'),
299
303
  updater_id=pulumi.get(__ret__, 'updater_id'))
300
-
301
-
302
- @_utilities.lift_output_func(get_maintenance_window)
303
304
  def get_maintenance_window_output(id: Optional[pulumi.Input[str]] = None,
304
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetMaintenanceWindowResult]:
305
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetMaintenanceWindowResult]:
305
306
  """
306
307
  Use this data source to get information about a Wavefront maintenance window by its ID.
307
308
 
308
309
  ## Example Usage
309
310
 
310
- <!--Start PulumiCodeChooser -->
311
311
  ```python
312
312
  import pulumi
313
313
  import pulumi_wavefront as wavefront
314
314
 
315
+ # Get the information about specific maintenance window.
315
316
  example = wavefront.get_maintenance_window(id="sample-maintenance-window-id")
316
317
  ```
317
- <!--End PulumiCodeChooser -->
318
318
 
319
319
 
320
320
  :param str id: The ID of the maintenance window.
321
321
  """
322
- ...
322
+ __args__ = dict()
323
+ __args__['id'] = id
324
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
325
+ __ret__ = pulumi.runtime.invoke_output('wavefront:index/getMaintenanceWindow:getMaintenanceWindow', __args__, opts=opts, typ=GetMaintenanceWindowResult)
326
+ return __ret__.apply(lambda __response__: GetMaintenanceWindowResult(
327
+ created_epoch_millis=pulumi.get(__response__, 'created_epoch_millis'),
328
+ creator_id=pulumi.get(__response__, 'creator_id'),
329
+ customer_id=pulumi.get(__response__, 'customer_id'),
330
+ end_time_in_seconds=pulumi.get(__response__, 'end_time_in_seconds'),
331
+ event_name=pulumi.get(__response__, 'event_name'),
332
+ host_tag_group_host_names_group_anded=pulumi.get(__response__, 'host_tag_group_host_names_group_anded'),
333
+ id=pulumi.get(__response__, 'id'),
334
+ reason=pulumi.get(__response__, 'reason'),
335
+ relevant_customer_tags=pulumi.get(__response__, 'relevant_customer_tags'),
336
+ relevant_host_names=pulumi.get(__response__, 'relevant_host_names'),
337
+ relevant_host_tags=pulumi.get(__response__, 'relevant_host_tags'),
338
+ relevant_host_tags_anded=pulumi.get(__response__, 'relevant_host_tags_anded'),
339
+ running_state=pulumi.get(__response__, 'running_state'),
340
+ sort_attr=pulumi.get(__response__, 'sort_attr'),
341
+ start_time_in_seconds=pulumi.get(__response__, 'start_time_in_seconds'),
342
+ title=pulumi.get(__response__, 'title'),
343
+ updated_epoch_millis=pulumi.get(__response__, 'updated_epoch_millis'),
344
+ updater_id=pulumi.get(__response__, 'updater_id')))
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
  from . import outputs
12
17
 
@@ -89,13 +94,19 @@ def get_maintenance_window_all(limit: Optional[int] = None,
89
94
  limit=pulumi.get(__ret__, 'limit'),
90
95
  maintenance_windows=pulumi.get(__ret__, 'maintenance_windows'),
91
96
  offset=pulumi.get(__ret__, 'offset'))
92
-
93
-
94
- @_utilities.lift_output_func(get_maintenance_window_all)
95
97
  def get_maintenance_window_all_output(limit: Optional[pulumi.Input[Optional[int]]] = None,
96
98
  offset: Optional[pulumi.Input[Optional[int]]] = None,
97
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetMaintenanceWindowAllResult]:
99
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetMaintenanceWindowAllResult]:
98
100
  """
99
101
  Use this data source to access information about an existing resource.
100
102
  """
101
- ...
103
+ __args__ = dict()
104
+ __args__['limit'] = limit
105
+ __args__['offset'] = offset
106
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
107
+ __ret__ = pulumi.runtime.invoke_output('wavefront:index/getMaintenanceWindowAll:getMaintenanceWindowAll', __args__, opts=opts, typ=GetMaintenanceWindowAllResult)
108
+ return __ret__.apply(lambda __response__: GetMaintenanceWindowAllResult(
109
+ id=pulumi.get(__response__, 'id'),
110
+ limit=pulumi.get(__response__, 'limit'),
111
+ maintenance_windows=pulumi.get(__response__, 'maintenance_windows'),
112
+ offset=pulumi.get(__response__, 'offset')))
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
  from . import outputs
12
17
 
@@ -95,11 +100,16 @@ def get_metrics_policy(opts: Optional[pulumi.InvokeOptions] = None) -> Awaitable
95
100
  policy_rules=pulumi.get(__ret__, 'policy_rules'),
96
101
  updated_epoch_millis=pulumi.get(__ret__, 'updated_epoch_millis'),
97
102
  updater_id=pulumi.get(__ret__, 'updater_id'))
98
-
99
-
100
- @_utilities.lift_output_func(get_metrics_policy)
101
- def get_metrics_policy_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetMetricsPolicyResult]:
103
+ def get_metrics_policy_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetMetricsPolicyResult]:
102
104
  """
103
105
  Use this data source to access information about an existing resource.
104
106
  """
105
- ...
107
+ __args__ = dict()
108
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
109
+ __ret__ = pulumi.runtime.invoke_output('wavefront:index/getMetricsPolicy:getMetricsPolicy', __args__, opts=opts, typ=GetMetricsPolicyResult)
110
+ return __ret__.apply(lambda __response__: GetMetricsPolicyResult(
111
+ customer=pulumi.get(__response__, 'customer'),
112
+ id=pulumi.get(__response__, 'id'),
113
+ policy_rules=pulumi.get(__response__, 'policy_rules'),
114
+ updated_epoch_millis=pulumi.get(__response__, 'updated_epoch_millis'),
115
+ updater_id=pulumi.get(__response__, 'updater_id')))
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = [
@@ -87,14 +92,13 @@ def get_role(id: Optional[str] = None,
87
92
 
88
93
  ## Example Usage
89
94
 
90
- <!--Start PulumiCodeChooser -->
91
95
  ```python
92
96
  import pulumi
93
97
  import pulumi_wavefront as wavefront
94
98
 
99
+ # Get the information about the role.
95
100
  example = wavefront.get_role(id="role-id")
96
101
  ```
97
- <!--End PulumiCodeChooser -->
98
102
 
99
103
 
100
104
  :param str id: The ID associated with the role data to be fetched.
@@ -109,26 +113,30 @@ def get_role(id: Optional[str] = None,
109
113
  id=pulumi.get(__ret__, 'id'),
110
114
  name=pulumi.get(__ret__, 'name'),
111
115
  permissions=pulumi.get(__ret__, 'permissions'))
112
-
113
-
114
- @_utilities.lift_output_func(get_role)
115
116
  def get_role_output(id: Optional[pulumi.Input[str]] = None,
116
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRoleResult]:
117
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetRoleResult]:
117
118
  """
118
119
  Use this data source to get information about a Wavefront role by its ID.
119
120
 
120
121
  ## Example Usage
121
122
 
122
- <!--Start PulumiCodeChooser -->
123
123
  ```python
124
124
  import pulumi
125
125
  import pulumi_wavefront as wavefront
126
126
 
127
+ # Get the information about the role.
127
128
  example = wavefront.get_role(id="role-id")
128
129
  ```
129
- <!--End PulumiCodeChooser -->
130
130
 
131
131
 
132
132
  :param str id: The ID associated with the role data to be fetched.
133
133
  """
134
- ...
134
+ __args__ = dict()
135
+ __args__['id'] = id
136
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
137
+ __ret__ = pulumi.runtime.invoke_output('wavefront:index/getRole:getRole', __args__, opts=opts, typ=GetRoleResult)
138
+ return __ret__.apply(lambda __response__: GetRoleResult(
139
+ description=pulumi.get(__response__, 'description'),
140
+ id=pulumi.get(__response__, 'id'),
141
+ name=pulumi.get(__response__, 'name'),
142
+ permissions=pulumi.get(__response__, 'permissions')))
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
  from . import outputs
12
17
 
@@ -83,15 +88,14 @@ def get_roles(limit: Optional[int] = None,
83
88
 
84
89
  ## Example Usage
85
90
 
86
- <!--Start PulumiCodeChooser -->
87
91
  ```python
88
92
  import pulumi
89
93
  import pulumi_wavefront as wavefront
90
94
 
95
+ # Get all Roles
91
96
  roles = wavefront.get_roles(limit=10,
92
97
  offset=0)
93
98
  ```
94
- <!--End PulumiCodeChooser -->
95
99
 
96
100
 
97
101
  :param int limit: Limit is the maximum number of results to be returned. Defaults to 100.
@@ -108,29 +112,34 @@ def get_roles(limit: Optional[int] = None,
108
112
  limit=pulumi.get(__ret__, 'limit'),
109
113
  offset=pulumi.get(__ret__, 'offset'),
110
114
  roles=pulumi.get(__ret__, 'roles'))
111
-
112
-
113
- @_utilities.lift_output_func(get_roles)
114
115
  def get_roles_output(limit: Optional[pulumi.Input[Optional[int]]] = None,
115
116
  offset: Optional[pulumi.Input[Optional[int]]] = None,
116
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRolesResult]:
117
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetRolesResult]:
117
118
  """
118
119
  Use this data source to get all Roles in Wavefront.
119
120
 
120
121
  ## Example Usage
121
122
 
122
- <!--Start PulumiCodeChooser -->
123
123
  ```python
124
124
  import pulumi
125
125
  import pulumi_wavefront as wavefront
126
126
 
127
+ # Get all Roles
127
128
  roles = wavefront.get_roles(limit=10,
128
129
  offset=0)
129
130
  ```
130
- <!--End PulumiCodeChooser -->
131
131
 
132
132
 
133
133
  :param int limit: Limit is the maximum number of results to be returned. Defaults to 100.
134
134
  :param int offset: Offset is the offset from the first result to be returned. Defaults to 0.
135
135
  """
136
- ...
136
+ __args__ = dict()
137
+ __args__['limit'] = limit
138
+ __args__['offset'] = offset
139
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
140
+ __ret__ = pulumi.runtime.invoke_output('wavefront:index/getRoles:getRoles', __args__, opts=opts, typ=GetRolesResult)
141
+ return __ret__.apply(lambda __response__: GetRolesResult(
142
+ id=pulumi.get(__response__, 'id'),
143
+ limit=pulumi.get(__response__, 'limit'),
144
+ offset=pulumi.get(__response__, 'offset'),
145
+ roles=pulumi.get(__response__, 'roles')))
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = [
@@ -108,14 +113,13 @@ def get_user(email: Optional[str] = None,
108
113
 
109
114
  ## Example Usage
110
115
 
111
- <!--Start PulumiCodeChooser -->
112
116
  ```python
113
117
  import pulumi
114
118
  import pulumi_wavefront as wavefront
115
119
 
120
+ # Get the info for user "example.user@example.com"
116
121
  example = wavefront.get_user(email="example.user@example.com")
117
122
  ```
118
- <!--End PulumiCodeChooser -->
119
123
 
120
124
 
121
125
  :param str email: The email associated with the user data to be fetched.
@@ -132,26 +136,32 @@ def get_user(email: Optional[str] = None,
132
136
  last_successful_login=pulumi.get(__ret__, 'last_successful_login'),
133
137
  permissions=pulumi.get(__ret__, 'permissions'),
134
138
  user_group_ids=pulumi.get(__ret__, 'user_group_ids'))
135
-
136
-
137
- @_utilities.lift_output_func(get_user)
138
139
  def get_user_output(email: Optional[pulumi.Input[str]] = None,
139
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetUserResult]:
140
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetUserResult]:
140
141
  """
141
142
  Use this data source to get information for a given user by email from Wavefront.
142
143
 
143
144
  ## Example Usage
144
145
 
145
- <!--Start PulumiCodeChooser -->
146
146
  ```python
147
147
  import pulumi
148
148
  import pulumi_wavefront as wavefront
149
149
 
150
+ # Get the info for user "example.user@example.com"
150
151
  example = wavefront.get_user(email="example.user@example.com")
151
152
  ```
152
- <!--End PulumiCodeChooser -->
153
153
 
154
154
 
155
155
  :param str email: The email associated with the user data to be fetched.
156
156
  """
157
- ...
157
+ __args__ = dict()
158
+ __args__['email'] = email
159
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
160
+ __ret__ = pulumi.runtime.invoke_output('wavefront:index/getUser:getUser', __args__, opts=opts, typ=GetUserResult)
161
+ return __ret__.apply(lambda __response__: GetUserResult(
162
+ customer=pulumi.get(__response__, 'customer'),
163
+ email=pulumi.get(__response__, 'email'),
164
+ id=pulumi.get(__response__, 'id'),
165
+ last_successful_login=pulumi.get(__response__, 'last_successful_login'),
166
+ permissions=pulumi.get(__response__, 'permissions'),
167
+ user_group_ids=pulumi.get(__response__, 'user_group_ids')))