pulumi-newrelic 5.22.0__py3-none-any.whl → 5.58.0a1763707205__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.

Potentially problematic release.


This version of pulumi-newrelic might be problematic. Click here for more details.

Files changed (92) hide show
  1. pulumi_newrelic/__init__.py +28 -1
  2. pulumi_newrelic/_inputs.py +10385 -2976
  3. pulumi_newrelic/_utilities.py +50 -10
  4. pulumi_newrelic/account_management.py +48 -42
  5. pulumi_newrelic/alert_channel.py +165 -175
  6. pulumi_newrelic/alert_condition.py +307 -319
  7. pulumi_newrelic/alert_muting_rule.py +193 -140
  8. pulumi_newrelic/alert_policy.py +121 -117
  9. pulumi_newrelic/alert_policy_channel.py +89 -79
  10. pulumi_newrelic/api_access_key.py +195 -193
  11. pulumi_newrelic/browser_application.py +120 -114
  12. pulumi_newrelic/cloud/__init__.py +3 -1
  13. pulumi_newrelic/cloud/_inputs.py +4267 -2714
  14. pulumi_newrelic/cloud/aws_govcloud_integrations.py +206 -196
  15. pulumi_newrelic/cloud/aws_govcloud_link_account.py +143 -228
  16. pulumi_newrelic/cloud/aws_integrations.py +510 -1490
  17. pulumi_newrelic/cloud/aws_link_account.py +80 -76
  18. pulumi_newrelic/cloud/azure_integrations.py +673 -587
  19. pulumi_newrelic/cloud/azure_link_account.py +121 -117
  20. pulumi_newrelic/cloud/gcp_integrations.py +428 -408
  21. pulumi_newrelic/cloud/gcp_link_account.py +65 -61
  22. pulumi_newrelic/cloud/oci_link_account.py +926 -0
  23. pulumi_newrelic/cloud/outputs.py +1678 -2321
  24. pulumi_newrelic/config/__init__.py +2 -1
  25. pulumi_newrelic/config/__init__.pyi +8 -3
  26. pulumi_newrelic/config/vars.py +22 -17
  27. pulumi_newrelic/data_partition_rule.py +119 -117
  28. pulumi_newrelic/entity_tags.py +111 -53
  29. pulumi_newrelic/events_to_metrics_rule.py +106 -102
  30. pulumi_newrelic/get_account.py +41 -33
  31. pulumi_newrelic/get_alert_channel.py +73 -28
  32. pulumi_newrelic/get_alert_policy.py +82 -33
  33. pulumi_newrelic/get_application.py +51 -43
  34. pulumi_newrelic/get_authentication_domain.py +27 -23
  35. pulumi_newrelic/get_cloud_account.py +43 -35
  36. pulumi_newrelic/get_entity.py +126 -183
  37. pulumi_newrelic/get_group.py +76 -31
  38. pulumi_newrelic/get_key_transaction.py +117 -42
  39. pulumi_newrelic/get_notification_destination.py +75 -38
  40. pulumi_newrelic/get_obfuscation_expression.py +47 -39
  41. pulumi_newrelic/get_service_level_alert_helper.py +189 -171
  42. pulumi_newrelic/get_test_grok_pattern.py +47 -36
  43. pulumi_newrelic/get_user.py +39 -31
  44. pulumi_newrelic/group.py +59 -199
  45. pulumi_newrelic/infra_alert_condition.py +399 -405
  46. pulumi_newrelic/insights/__init__.py +2 -1
  47. pulumi_newrelic/insights/_inputs.py +71 -28
  48. pulumi_newrelic/insights/event.py +54 -52
  49. pulumi_newrelic/insights/outputs.py +28 -23
  50. pulumi_newrelic/key_transaction.py +465 -0
  51. pulumi_newrelic/log_parsing_rule.py +159 -157
  52. pulumi_newrelic/monitor_downtime.py +311 -331
  53. pulumi_newrelic/notification_channel.py +534 -464
  54. pulumi_newrelic/notification_destination.py +238 -141
  55. pulumi_newrelic/nrql_alert_condition.py +820 -614
  56. pulumi_newrelic/nrql_drop_rule.py +113 -151
  57. pulumi_newrelic/obfuscation_expression.py +80 -76
  58. pulumi_newrelic/obfuscation_rule.py +115 -109
  59. pulumi_newrelic/one_dashboard.py +110 -104
  60. pulumi_newrelic/one_dashboard_json.py +69 -63
  61. pulumi_newrelic/one_dashboard_raw.py +212 -206
  62. pulumi_newrelic/outputs.py +4936 -2234
  63. pulumi_newrelic/pipeline_cloud_rule.py +335 -0
  64. pulumi_newrelic/plugins/__init__.py +2 -1
  65. pulumi_newrelic/plugins/_inputs.py +519 -89
  66. pulumi_newrelic/plugins/application_settings.py +463 -187
  67. pulumi_newrelic/plugins/outputs.py +336 -74
  68. pulumi_newrelic/plugins/workload.py +313 -189
  69. pulumi_newrelic/provider.py +156 -142
  70. pulumi_newrelic/pulumi-plugin.json +2 -1
  71. pulumi_newrelic/service_level.py +263 -263
  72. pulumi_newrelic/synthetics/__init__.py +2 -1
  73. pulumi_newrelic/synthetics/_inputs.py +265 -108
  74. pulumi_newrelic/synthetics/alert_condition.py +170 -180
  75. pulumi_newrelic/synthetics/broken_links_monitor.py +297 -249
  76. pulumi_newrelic/synthetics/cert_check_monitor.py +306 -258
  77. pulumi_newrelic/synthetics/get_private_location.py +51 -47
  78. pulumi_newrelic/synthetics/get_secure_credential.py +39 -31
  79. pulumi_newrelic/synthetics/monitor.py +658 -460
  80. pulumi_newrelic/synthetics/multi_location_alert_condition.py +211 -205
  81. pulumi_newrelic/synthetics/outputs.py +92 -87
  82. pulumi_newrelic/synthetics/private_location.py +118 -112
  83. pulumi_newrelic/synthetics/script_monitor.py +613 -373
  84. pulumi_newrelic/synthetics/secure_credential.py +97 -95
  85. pulumi_newrelic/synthetics/step_monitor.py +445 -275
  86. pulumi_newrelic/user.py +84 -80
  87. pulumi_newrelic/workflow.py +336 -322
  88. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +7 -6
  89. pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
  90. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
  91. pulumi_newrelic-5.22.0.dist-info/RECORD +0 -89
  92. {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/top_level.txt +0 -0
@@ -1,7 +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 builtins as _builtins
5
6
  from .. import _utilities
6
7
  import typing
7
8
  # Export this package's modules as members:
@@ -1,36 +1,62 @@
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
+ 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__ = [
13
18
  'EventEventArgs',
19
+ 'EventEventArgsDict',
14
20
  'EventEventAttributeArgs',
21
+ 'EventEventAttributeArgsDict',
15
22
  ]
16
23
 
24
+ MYPY = False
25
+
26
+ if not MYPY:
27
+ class EventEventArgsDict(TypedDict):
28
+ attributes: pulumi.Input[Sequence[pulumi.Input['EventEventAttributeArgsDict']]]
29
+ """
30
+ An attribute to include in your event payload. Multiple attribute blocks can be defined for an event.
31
+ """
32
+ type: pulumi.Input[_builtins.str]
33
+ """
34
+ The event's name. Can be a combination of alphanumeric characters, underscores, and colons.
35
+ """
36
+ timestamp: NotRequired[pulumi.Input[_builtins.int]]
37
+ """
38
+ Must be a Unix epoch timestamp. You can define timestamps either in seconds or in milliseconds.
39
+ """
40
+ elif False:
41
+ EventEventArgsDict: TypeAlias = Mapping[str, Any]
42
+
17
43
  @pulumi.input_type
18
44
  class EventEventArgs:
19
45
  def __init__(__self__, *,
20
46
  attributes: pulumi.Input[Sequence[pulumi.Input['EventEventAttributeArgs']]],
21
- type: pulumi.Input[str],
22
- timestamp: Optional[pulumi.Input[int]] = None):
47
+ type: pulumi.Input[_builtins.str],
48
+ timestamp: Optional[pulumi.Input[_builtins.int]] = None):
23
49
  """
24
50
  :param pulumi.Input[Sequence[pulumi.Input['EventEventAttributeArgs']]] attributes: An attribute to include in your event payload. Multiple attribute blocks can be defined for an event.
25
- :param pulumi.Input[str] type: The event's name. Can be a combination of alphanumeric characters, underscores, and colons.
26
- :param pulumi.Input[int] timestamp: Must be a Unix epoch timestamp. You can define timestamps either in seconds or in milliseconds.
51
+ :param pulumi.Input[_builtins.str] type: The event's name. Can be a combination of alphanumeric characters, underscores, and colons.
52
+ :param pulumi.Input[_builtins.int] timestamp: Must be a Unix epoch timestamp. You can define timestamps either in seconds or in milliseconds.
27
53
  """
28
54
  pulumi.set(__self__, "attributes", attributes)
29
55
  pulumi.set(__self__, "type", type)
30
56
  if timestamp is not None:
31
57
  pulumi.set(__self__, "timestamp", timestamp)
32
58
 
33
- @property
59
+ @_builtins.property
34
60
  @pulumi.getter
35
61
  def attributes(self) -> pulumi.Input[Sequence[pulumi.Input['EventEventAttributeArgs']]]:
36
62
  """
@@ -42,81 +68,98 @@ class EventEventArgs:
42
68
  def attributes(self, value: pulumi.Input[Sequence[pulumi.Input['EventEventAttributeArgs']]]):
43
69
  pulumi.set(self, "attributes", value)
44
70
 
45
- @property
71
+ @_builtins.property
46
72
  @pulumi.getter
47
- def type(self) -> pulumi.Input[str]:
73
+ def type(self) -> pulumi.Input[_builtins.str]:
48
74
  """
49
75
  The event's name. Can be a combination of alphanumeric characters, underscores, and colons.
50
76
  """
51
77
  return pulumi.get(self, "type")
52
78
 
53
79
  @type.setter
54
- def type(self, value: pulumi.Input[str]):
80
+ def type(self, value: pulumi.Input[_builtins.str]):
55
81
  pulumi.set(self, "type", value)
56
82
 
57
- @property
83
+ @_builtins.property
58
84
  @pulumi.getter
59
- def timestamp(self) -> Optional[pulumi.Input[int]]:
85
+ def timestamp(self) -> Optional[pulumi.Input[_builtins.int]]:
60
86
  """
61
87
  Must be a Unix epoch timestamp. You can define timestamps either in seconds or in milliseconds.
62
88
  """
63
89
  return pulumi.get(self, "timestamp")
64
90
 
65
91
  @timestamp.setter
66
- def timestamp(self, value: Optional[pulumi.Input[int]]):
92
+ def timestamp(self, value: Optional[pulumi.Input[_builtins.int]]):
67
93
  pulumi.set(self, "timestamp", value)
68
94
 
69
95
 
96
+ if not MYPY:
97
+ class EventEventAttributeArgsDict(TypedDict):
98
+ key: pulumi.Input[_builtins.str]
99
+ """
100
+ The name of the attribute.
101
+ """
102
+ value: pulumi.Input[_builtins.str]
103
+ """
104
+ The value of the attribute.
105
+ """
106
+ type: NotRequired[pulumi.Input[_builtins.str]]
107
+ """
108
+ Specify the type for the attribute value. This is useful when passing integer or float values to Insights. Allowed values are string, int, or float. Defaults to string.
109
+ """
110
+ elif False:
111
+ EventEventAttributeArgsDict: TypeAlias = Mapping[str, Any]
112
+
70
113
  @pulumi.input_type
71
114
  class EventEventAttributeArgs:
72
115
  def __init__(__self__, *,
73
- key: pulumi.Input[str],
74
- value: pulumi.Input[str],
75
- type: Optional[pulumi.Input[str]] = None):
116
+ key: pulumi.Input[_builtins.str],
117
+ value: pulumi.Input[_builtins.str],
118
+ type: Optional[pulumi.Input[_builtins.str]] = None):
76
119
  """
77
- :param pulumi.Input[str] key: The name of the attribute.
78
- :param pulumi.Input[str] value: The value of the attribute.
79
- :param pulumi.Input[str] type: Specify the type for the attribute value. This is useful when passing integer or float values to Insights. Allowed values are string, int, or float. Defaults to string.
120
+ :param pulumi.Input[_builtins.str] key: The name of the attribute.
121
+ :param pulumi.Input[_builtins.str] value: The value of the attribute.
122
+ :param pulumi.Input[_builtins.str] type: Specify the type for the attribute value. This is useful when passing integer or float values to Insights. Allowed values are string, int, or float. Defaults to string.
80
123
  """
81
124
  pulumi.set(__self__, "key", key)
82
125
  pulumi.set(__self__, "value", value)
83
126
  if type is not None:
84
127
  pulumi.set(__self__, "type", type)
85
128
 
86
- @property
129
+ @_builtins.property
87
130
  @pulumi.getter
88
- def key(self) -> pulumi.Input[str]:
131
+ def key(self) -> pulumi.Input[_builtins.str]:
89
132
  """
90
133
  The name of the attribute.
91
134
  """
92
135
  return pulumi.get(self, "key")
93
136
 
94
137
  @key.setter
95
- def key(self, value: pulumi.Input[str]):
138
+ def key(self, value: pulumi.Input[_builtins.str]):
96
139
  pulumi.set(self, "key", value)
97
140
 
98
- @property
141
+ @_builtins.property
99
142
  @pulumi.getter
100
- def value(self) -> pulumi.Input[str]:
143
+ def value(self) -> pulumi.Input[_builtins.str]:
101
144
  """
102
145
  The value of the attribute.
103
146
  """
104
147
  return pulumi.get(self, "value")
105
148
 
106
149
  @value.setter
107
- def value(self, value: pulumi.Input[str]):
150
+ def value(self, value: pulumi.Input[_builtins.str]):
108
151
  pulumi.set(self, "value", value)
109
152
 
110
- @property
153
+ @_builtins.property
111
154
  @pulumi.getter
112
- def type(self) -> Optional[pulumi.Input[str]]:
155
+ def type(self) -> Optional[pulumi.Input[_builtins.str]]:
113
156
  """
114
157
  Specify the type for the attribute value. This is useful when passing integer or float values to Insights. Allowed values are string, int, or float. Defaults to string.
115
158
  """
116
159
  return pulumi.get(self, "type")
117
160
 
118
161
  @type.setter
119
- def type(self, value: Optional[pulumi.Input[str]]):
162
+ def type(self, value: Optional[pulumi.Input[_builtins.str]]):
120
163
  pulumi.set(self, "type", value)
121
164
 
122
165
 
@@ -1,12 +1,17 @@
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
+ 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
  from ._inputs import *
@@ -23,7 +28,7 @@ class EventArgs:
23
28
  """
24
29
  pulumi.set(__self__, "events", events)
25
30
 
26
- @property
31
+ @_builtins.property
27
32
  @pulumi.getter
28
33
  def events(self) -> pulumi.Input[Sequence[pulumi.Input['EventEventArgs']]]:
29
34
  """
@@ -47,7 +52,7 @@ class _EventState:
47
52
  if events is not None:
48
53
  pulumi.set(__self__, "events", events)
49
54
 
50
- @property
55
+ @_builtins.property
51
56
  @pulumi.getter
52
57
  def events(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EventEventArgs']]]]:
53
58
  """
@@ -60,45 +65,44 @@ class _EventState:
60
65
  pulumi.set(self, "events", value)
61
66
 
62
67
 
68
+ @pulumi.type_token("newrelic:insights/event:Event")
63
69
  class Event(pulumi.CustomResource):
64
70
  @overload
65
71
  def __init__(__self__,
66
72
  resource_name: str,
67
73
  opts: Optional[pulumi.ResourceOptions] = None,
68
- events: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EventEventArgs']]]]] = None,
74
+ events: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EventEventArgs', 'EventEventArgsDict']]]]] = None,
69
75
  __props__=None):
70
76
  """
71
77
  Use this resource to create one or more Insights events.
72
78
 
73
79
  ## Example Usage
74
80
 
75
- <!--Start PulumiCodeChooser -->
76
81
  ```python
77
82
  import pulumi
78
83
  import pulumi_newrelic as newrelic
79
84
 
80
- foo = newrelic.insights.Event("foo", events=[newrelic.insights.EventEventArgs(
81
- attributes=[
82
- newrelic.insights.EventEventAttributeArgs(
83
- key="a_string_attribute",
84
- value="a string",
85
- ),
86
- newrelic.insights.EventEventAttributeArgs(
87
- key="an_integer_attribute",
88
- type="int",
89
- value="42",
90
- ),
91
- newrelic.insights.EventEventAttributeArgs(
92
- key="a_float_attribute",
93
- type="float",
94
- value="101.1",
95
- ),
85
+ foo = newrelic.insights.Event("foo", events=[{
86
+ "type": "MyEvent",
87
+ "timestamp": 1232471100,
88
+ "attributes": [
89
+ {
90
+ "key": "a_string_attribute",
91
+ "value": "a string",
92
+ },
93
+ {
94
+ "key": "an_integer_attribute",
95
+ "value": "42",
96
+ "type": "int",
97
+ },
98
+ {
99
+ "key": "a_float_attribute",
100
+ "value": "101.1",
101
+ "type": "float",
102
+ },
96
103
  ],
97
- timestamp=1232471100,
98
- type="MyEvent",
99
- )])
104
+ }])
100
105
  ```
101
- <!--End PulumiCodeChooser -->
102
106
 
103
107
  ## Events
104
108
 
@@ -118,7 +122,7 @@ class Event(pulumi.CustomResource):
118
122
 
119
123
  :param str resource_name: The name of the resource.
120
124
  :param pulumi.ResourceOptions opts: Options for the resource.
121
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EventEventArgs']]]] events: An event to insert into Insights. Multiple event blocks can be defined. See Events below for details.
125
+ :param pulumi.Input[Sequence[pulumi.Input[Union['EventEventArgs', 'EventEventArgsDict']]]] events: An event to insert into Insights. Multiple event blocks can be defined. See Events below for details.
122
126
  """
123
127
  ...
124
128
  @overload
@@ -131,33 +135,31 @@ class Event(pulumi.CustomResource):
131
135
 
132
136
  ## Example Usage
133
137
 
134
- <!--Start PulumiCodeChooser -->
135
138
  ```python
136
139
  import pulumi
137
140
  import pulumi_newrelic as newrelic
138
141
 
139
- foo = newrelic.insights.Event("foo", events=[newrelic.insights.EventEventArgs(
140
- attributes=[
141
- newrelic.insights.EventEventAttributeArgs(
142
- key="a_string_attribute",
143
- value="a string",
144
- ),
145
- newrelic.insights.EventEventAttributeArgs(
146
- key="an_integer_attribute",
147
- type="int",
148
- value="42",
149
- ),
150
- newrelic.insights.EventEventAttributeArgs(
151
- key="a_float_attribute",
152
- type="float",
153
- value="101.1",
154
- ),
142
+ foo = newrelic.insights.Event("foo", events=[{
143
+ "type": "MyEvent",
144
+ "timestamp": 1232471100,
145
+ "attributes": [
146
+ {
147
+ "key": "a_string_attribute",
148
+ "value": "a string",
149
+ },
150
+ {
151
+ "key": "an_integer_attribute",
152
+ "value": "42",
153
+ "type": "int",
154
+ },
155
+ {
156
+ "key": "a_float_attribute",
157
+ "value": "101.1",
158
+ "type": "float",
159
+ },
155
160
  ],
156
- timestamp=1232471100,
157
- type="MyEvent",
158
- )])
161
+ }])
159
162
  ```
160
- <!--End PulumiCodeChooser -->
161
163
 
162
164
  ## Events
163
165
 
@@ -190,7 +192,7 @@ class Event(pulumi.CustomResource):
190
192
  def _internal_init(__self__,
191
193
  resource_name: str,
192
194
  opts: Optional[pulumi.ResourceOptions] = None,
193
- events: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EventEventArgs']]]]] = None,
195
+ events: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EventEventArgs', 'EventEventArgsDict']]]]] = None,
194
196
  __props__=None):
195
197
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
196
198
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -213,7 +215,7 @@ class Event(pulumi.CustomResource):
213
215
  def get(resource_name: str,
214
216
  id: pulumi.Input[str],
215
217
  opts: Optional[pulumi.ResourceOptions] = None,
216
- events: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EventEventArgs']]]]] = None) -> 'Event':
218
+ events: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EventEventArgs', 'EventEventArgsDict']]]]] = None) -> 'Event':
217
219
  """
218
220
  Get an existing Event resource's state with the given name, id, and optional extra
219
221
  properties used to qualify the lookup.
@@ -221,7 +223,7 @@ class Event(pulumi.CustomResource):
221
223
  :param str resource_name: The unique name of the resulting resource.
222
224
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
223
225
  :param pulumi.ResourceOptions opts: Options for the resource.
224
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EventEventArgs']]]] events: An event to insert into Insights. Multiple event blocks can be defined. See Events below for details.
226
+ :param pulumi.Input[Sequence[pulumi.Input[Union['EventEventArgs', 'EventEventArgsDict']]]] events: An event to insert into Insights. Multiple event blocks can be defined. See Events below for details.
225
227
  """
226
228
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
227
229
 
@@ -230,7 +232,7 @@ class Event(pulumi.CustomResource):
230
232
  __props__.__dict__["events"] = events
231
233
  return Event(resource_name, opts=opts, __props__=__props__)
232
234
 
233
- @property
235
+ @_builtins.property
234
236
  @pulumi.getter
235
237
  def events(self) -> pulumi.Output[Sequence['outputs.EventEvent']]:
236
238
  """
@@ -1,12 +1,17 @@
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
+ 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
 
@@ -19,19 +24,19 @@ __all__ = [
19
24
  class EventEvent(dict):
20
25
  def __init__(__self__, *,
21
26
  attributes: Sequence['outputs.EventEventAttribute'],
22
- type: str,
23
- timestamp: Optional[int] = None):
27
+ type: _builtins.str,
28
+ timestamp: Optional[_builtins.int] = None):
24
29
  """
25
30
  :param Sequence['EventEventAttributeArgs'] attributes: An attribute to include in your event payload. Multiple attribute blocks can be defined for an event.
26
- :param str type: The event's name. Can be a combination of alphanumeric characters, underscores, and colons.
27
- :param int timestamp: Must be a Unix epoch timestamp. You can define timestamps either in seconds or in milliseconds.
31
+ :param _builtins.str type: The event's name. Can be a combination of alphanumeric characters, underscores, and colons.
32
+ :param _builtins.int timestamp: Must be a Unix epoch timestamp. You can define timestamps either in seconds or in milliseconds.
28
33
  """
29
34
  pulumi.set(__self__, "attributes", attributes)
30
35
  pulumi.set(__self__, "type", type)
31
36
  if timestamp is not None:
32
37
  pulumi.set(__self__, "timestamp", timestamp)
33
38
 
34
- @property
39
+ @_builtins.property
35
40
  @pulumi.getter
36
41
  def attributes(self) -> Sequence['outputs.EventEventAttribute']:
37
42
  """
@@ -39,17 +44,17 @@ class EventEvent(dict):
39
44
  """
40
45
  return pulumi.get(self, "attributes")
41
46
 
42
- @property
47
+ @_builtins.property
43
48
  @pulumi.getter
44
- def type(self) -> str:
49
+ def type(self) -> _builtins.str:
45
50
  """
46
51
  The event's name. Can be a combination of alphanumeric characters, underscores, and colons.
47
52
  """
48
53
  return pulumi.get(self, "type")
49
54
 
50
- @property
55
+ @_builtins.property
51
56
  @pulumi.getter
52
- def timestamp(self) -> Optional[int]:
57
+ def timestamp(self) -> Optional[_builtins.int]:
53
58
  """
54
59
  Must be a Unix epoch timestamp. You can define timestamps either in seconds or in milliseconds.
55
60
  """
@@ -59,38 +64,38 @@ class EventEvent(dict):
59
64
  @pulumi.output_type
60
65
  class EventEventAttribute(dict):
61
66
  def __init__(__self__, *,
62
- key: str,
63
- value: str,
64
- type: Optional[str] = None):
67
+ key: _builtins.str,
68
+ value: _builtins.str,
69
+ type: Optional[_builtins.str] = None):
65
70
  """
66
- :param str key: The name of the attribute.
67
- :param str value: The value of the attribute.
68
- :param str type: Specify the type for the attribute value. This is useful when passing integer or float values to Insights. Allowed values are string, int, or float. Defaults to string.
71
+ :param _builtins.str key: The name of the attribute.
72
+ :param _builtins.str value: The value of the attribute.
73
+ :param _builtins.str type: Specify the type for the attribute value. This is useful when passing integer or float values to Insights. Allowed values are string, int, or float. Defaults to string.
69
74
  """
70
75
  pulumi.set(__self__, "key", key)
71
76
  pulumi.set(__self__, "value", value)
72
77
  if type is not None:
73
78
  pulumi.set(__self__, "type", type)
74
79
 
75
- @property
80
+ @_builtins.property
76
81
  @pulumi.getter
77
- def key(self) -> str:
82
+ def key(self) -> _builtins.str:
78
83
  """
79
84
  The name of the attribute.
80
85
  """
81
86
  return pulumi.get(self, "key")
82
87
 
83
- @property
88
+ @_builtins.property
84
89
  @pulumi.getter
85
- def value(self) -> str:
90
+ def value(self) -> _builtins.str:
86
91
  """
87
92
  The value of the attribute.
88
93
  """
89
94
  return pulumi.get(self, "value")
90
95
 
91
- @property
96
+ @_builtins.property
92
97
  @pulumi.getter
93
- def type(self) -> Optional[str]:
98
+ def type(self) -> Optional[_builtins.str]:
94
99
  """
95
100
  Specify the type for the attribute value. This is useful when passing integer or float values to Insights. Allowed values are string, int, or float. Defaults to string.
96
101
  """