pulumi-random 4.19.0a1768284769__tar.gz → 4.19.0a1768544066__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 (24) hide show
  1. {pulumi_random-4.19.0a1768284769 → pulumi_random-4.19.0a1768544066}/PKG-INFO +1 -1
  2. {pulumi_random-4.19.0a1768284769 → pulumi_random-4.19.0a1768544066}/pulumi_random/__init__.py +18 -0
  3. {pulumi_random-4.19.0a1768284769 → pulumi_random-4.19.0a1768544066}/pulumi_random/pulumi-plugin.json +1 -1
  4. {pulumi_random-4.19.0a1768284769 → pulumi_random-4.19.0a1768544066}/pulumi_random/random_bytes.py +4 -0
  5. {pulumi_random-4.19.0a1768284769 → pulumi_random-4.19.0a1768544066}/pulumi_random/random_id.py +4 -0
  6. {pulumi_random-4.19.0a1768284769 → pulumi_random-4.19.0a1768544066}/pulumi_random/random_integer.py +4 -0
  7. {pulumi_random-4.19.0a1768284769 → pulumi_random-4.19.0a1768544066}/pulumi_random/random_uuid.py +4 -0
  8. pulumi_random-4.19.0a1768544066/pulumi_random/random_uuid4.py +239 -0
  9. pulumi_random-4.19.0a1768544066/pulumi_random/random_uuid7.py +239 -0
  10. {pulumi_random-4.19.0a1768284769 → pulumi_random-4.19.0a1768544066}/pulumi_random.egg-info/PKG-INFO +1 -1
  11. {pulumi_random-4.19.0a1768284769 → pulumi_random-4.19.0a1768544066}/pulumi_random.egg-info/SOURCES.txt +2 -0
  12. {pulumi_random-4.19.0a1768284769 → pulumi_random-4.19.0a1768544066}/pyproject.toml +1 -1
  13. {pulumi_random-4.19.0a1768284769 → pulumi_random-4.19.0a1768544066}/README.md +0 -0
  14. {pulumi_random-4.19.0a1768284769 → pulumi_random-4.19.0a1768544066}/pulumi_random/_utilities.py +0 -0
  15. {pulumi_random-4.19.0a1768284769 → pulumi_random-4.19.0a1768544066}/pulumi_random/provider.py +0 -0
  16. {pulumi_random-4.19.0a1768284769 → pulumi_random-4.19.0a1768544066}/pulumi_random/py.typed +0 -0
  17. {pulumi_random-4.19.0a1768284769 → pulumi_random-4.19.0a1768544066}/pulumi_random/random_password.py +0 -0
  18. {pulumi_random-4.19.0a1768284769 → pulumi_random-4.19.0a1768544066}/pulumi_random/random_pet.py +0 -0
  19. {pulumi_random-4.19.0a1768284769 → pulumi_random-4.19.0a1768544066}/pulumi_random/random_shuffle.py +0 -0
  20. {pulumi_random-4.19.0a1768284769 → pulumi_random-4.19.0a1768544066}/pulumi_random/random_string.py +0 -0
  21. {pulumi_random-4.19.0a1768284769 → pulumi_random-4.19.0a1768544066}/pulumi_random.egg-info/dependency_links.txt +0 -0
  22. {pulumi_random-4.19.0a1768284769 → pulumi_random-4.19.0a1768544066}/pulumi_random.egg-info/requires.txt +0 -0
  23. {pulumi_random-4.19.0a1768284769 → pulumi_random-4.19.0a1768544066}/pulumi_random.egg-info/top_level.txt +0 -0
  24. {pulumi_random-4.19.0a1768284769 → pulumi_random-4.19.0a1768544066}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pulumi_random
3
- Version: 4.19.0a1768284769
3
+ Version: 4.19.0a1768544066
4
4
  Summary: A Pulumi package to safely use randomness in Pulumi programs.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -15,6 +15,8 @@ from .random_pet import *
15
15
  from .random_shuffle import *
16
16
  from .random_string import *
17
17
  from .random_uuid import *
18
+ from .random_uuid4 import *
19
+ from .random_uuid7 import *
18
20
  _utilities.register(
19
21
  resource_modules="""
20
22
  [
@@ -81,6 +83,22 @@ _utilities.register(
81
83
  "classes": {
82
84
  "random:index/randomUuid:RandomUuid": "RandomUuid"
83
85
  }
86
+ },
87
+ {
88
+ "pkg": "random",
89
+ "mod": "index/randomUuid4",
90
+ "fqn": "pulumi_random",
91
+ "classes": {
92
+ "random:index/randomUuid4:RandomUuid4": "RandomUuid4"
93
+ }
94
+ },
95
+ {
96
+ "pkg": "random",
97
+ "mod": "index/randomUuid7",
98
+ "fqn": "pulumi_random",
99
+ "classes": {
100
+ "random:index/randomUuid7:RandomUuid7": "RandomUuid7"
101
+ }
84
102
  }
85
103
  ]
86
104
  """,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "random",
4
- "version": "4.19.0-alpha.1768284769"
4
+ "version": "4.19.0-alpha.1768544066"
5
5
  }
@@ -157,6 +157,8 @@ class RandomBytes(pulumi.CustomResource):
157
157
 
158
158
  ## Import
159
159
 
160
+ The `pulumi import` command can be used, for example:
161
+
160
162
  Random bytes can be imported by specifying the value as base64 string.
161
163
 
162
164
  ```sh
@@ -195,6 +197,8 @@ class RandomBytes(pulumi.CustomResource):
195
197
 
196
198
  ## Import
197
199
 
200
+ The `pulumi import` command can be used, for example:
201
+
198
202
  Random bytes can be imported by specifying the value as base64 string.
199
203
 
200
204
  ```sh
@@ -240,6 +240,8 @@ class RandomId(pulumi.CustomResource):
240
240
 
241
241
  ## Import
242
242
 
243
+ The `pulumi import` command can be used, for example:
244
+
243
245
  Random IDs can be imported using the b64_url with an optional prefix. This
244
246
 
245
247
  can be used to replace a config value with a value interpolated from the
@@ -309,6 +311,8 @@ class RandomId(pulumi.CustomResource):
309
311
 
310
312
  ## Import
311
313
 
314
+ The `pulumi import` command can be used, for example:
315
+
312
316
  Random IDs can be imported using the b64_url with an optional prefix. This
313
317
 
314
318
  can be used to replace a config value with a value interpolated from the
@@ -216,6 +216,8 @@ class RandomInteger(pulumi.CustomResource):
216
216
 
217
217
  ## Import
218
218
 
219
+ The `pulumi import` command can be used, for example:
220
+
219
221
  Random integers can be imported using the result, min, and max, with an
220
222
 
221
223
  optional seed. This can be used to replace a config value with a value
@@ -272,6 +274,8 @@ class RandomInteger(pulumi.CustomResource):
272
274
 
273
275
  ## Import
274
276
 
277
+ The `pulumi import` command can be used, for example:
278
+
275
279
  Random integers can be imported using the result, min, and max, with an
276
280
 
277
281
  optional seed. This can be used to replace a config value with a value
@@ -105,6 +105,8 @@ class RandomUuid(pulumi.CustomResource):
105
105
 
106
106
  ## Import
107
107
 
108
+ The `pulumi import` command can be used, for example:
109
+
108
110
  Random UUID's can be imported. This can be used to replace a config
109
111
 
110
112
  value with a value interpolated from the random provider without
@@ -142,6 +144,8 @@ class RandomUuid(pulumi.CustomResource):
142
144
 
143
145
  ## Import
144
146
 
147
+ The `pulumi import` command can be used, for example:
148
+
145
149
  Random UUID's can be imported. This can be used to replace a config
146
150
 
147
151
  value with a value interpolated from the random provider without
@@ -0,0 +1,239 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import builtins as _builtins
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
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
15
+ from . import _utilities
16
+
17
+ __all__ = ['RandomUuid4Args', 'RandomUuid4']
18
+
19
+ @pulumi.input_type
20
+ class RandomUuid4Args:
21
+ def __init__(__self__, *,
22
+ keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None):
23
+ """
24
+ The set of arguments for constructing a RandomUuid4 resource.
25
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] keepers: Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
26
+ """
27
+ if keepers is not None:
28
+ pulumi.set(__self__, "keepers", keepers)
29
+
30
+ @_builtins.property
31
+ @pulumi.getter
32
+ def keepers(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
33
+ """
34
+ Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
35
+ """
36
+ return pulumi.get(self, "keepers")
37
+
38
+ @keepers.setter
39
+ def keepers(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
40
+ pulumi.set(self, "keepers", value)
41
+
42
+
43
+ @pulumi.input_type
44
+ class _RandomUuid4State:
45
+ def __init__(__self__, *,
46
+ keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
47
+ result: Optional[pulumi.Input[_builtins.str]] = None):
48
+ """
49
+ Input properties used for looking up and filtering RandomUuid4 resources.
50
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] keepers: Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
51
+ :param pulumi.Input[_builtins.str] result: The generated uuid presented in string format.
52
+ """
53
+ if keepers is not None:
54
+ pulumi.set(__self__, "keepers", keepers)
55
+ if result is not None:
56
+ pulumi.set(__self__, "result", result)
57
+
58
+ @_builtins.property
59
+ @pulumi.getter
60
+ def keepers(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
61
+ """
62
+ Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
63
+ """
64
+ return pulumi.get(self, "keepers")
65
+
66
+ @keepers.setter
67
+ def keepers(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
68
+ pulumi.set(self, "keepers", value)
69
+
70
+ @_builtins.property
71
+ @pulumi.getter
72
+ def result(self) -> Optional[pulumi.Input[_builtins.str]]:
73
+ """
74
+ The generated uuid presented in string format.
75
+ """
76
+ return pulumi.get(self, "result")
77
+
78
+ @result.setter
79
+ def result(self, value: Optional[pulumi.Input[_builtins.str]]):
80
+ pulumi.set(self, "result", value)
81
+
82
+
83
+ @pulumi.type_token("random:index/randomUuid4:RandomUuid4")
84
+ class RandomUuid4(pulumi.CustomResource):
85
+ @overload
86
+ def __init__(__self__,
87
+ resource_name: str,
88
+ opts: Optional[pulumi.ResourceOptions] = None,
89
+ keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
90
+ __props__=None):
91
+ """
92
+ The resource `RandomUuid4` generates a random version 4 uuid string that is intended to be used as a unique identifier for other resources.
93
+
94
+ This resource uses [google/uuid](https://github.com/google/uuid) to generate a valid V4 UUID for use with services needing a unique string identifier.
95
+
96
+ ## Example Usage
97
+
98
+ ```python
99
+ import pulumi
100
+ import pulumi_azurerm as azurerm
101
+ import pulumi_random as random
102
+
103
+ # The following example shows how to generate a unique name for an Azure Resource Group.
104
+ test = random.RandomUuid4("test")
105
+ test_resource_group = azurerm.index.ResourceGroup("test",
106
+ name=f{test.result}-rg,
107
+ location=Central US)
108
+ ```
109
+
110
+ ## Import
111
+
112
+ The `pulumi import` command can be used, for example:
113
+
114
+ Random UUID's can be imported. This can be used to replace a config
115
+
116
+ value with a value interpolated from the random provider without
117
+
118
+ experiencing diffs.
119
+
120
+ ```sh
121
+ $ pulumi import random:index/randomUuid4:RandomUuid4 main 7e4436da-7c71-486e-a57c-830b25fff7bd
122
+ ```
123
+
124
+ :param str resource_name: The name of the resource.
125
+ :param pulumi.ResourceOptions opts: Options for the resource.
126
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] keepers: Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
127
+ """
128
+ ...
129
+ @overload
130
+ def __init__(__self__,
131
+ resource_name: str,
132
+ args: Optional[RandomUuid4Args] = None,
133
+ opts: Optional[pulumi.ResourceOptions] = None):
134
+ """
135
+ The resource `RandomUuid4` generates a random version 4 uuid string that is intended to be used as a unique identifier for other resources.
136
+
137
+ This resource uses [google/uuid](https://github.com/google/uuid) to generate a valid V4 UUID for use with services needing a unique string identifier.
138
+
139
+ ## Example Usage
140
+
141
+ ```python
142
+ import pulumi
143
+ import pulumi_azurerm as azurerm
144
+ import pulumi_random as random
145
+
146
+ # The following example shows how to generate a unique name for an Azure Resource Group.
147
+ test = random.RandomUuid4("test")
148
+ test_resource_group = azurerm.index.ResourceGroup("test",
149
+ name=f{test.result}-rg,
150
+ location=Central US)
151
+ ```
152
+
153
+ ## Import
154
+
155
+ The `pulumi import` command can be used, for example:
156
+
157
+ Random UUID's can be imported. This can be used to replace a config
158
+
159
+ value with a value interpolated from the random provider without
160
+
161
+ experiencing diffs.
162
+
163
+ ```sh
164
+ $ pulumi import random:index/randomUuid4:RandomUuid4 main 7e4436da-7c71-486e-a57c-830b25fff7bd
165
+ ```
166
+
167
+ :param str resource_name: The name of the resource.
168
+ :param RandomUuid4Args args: The arguments to use to populate this resource's properties.
169
+ :param pulumi.ResourceOptions opts: Options for the resource.
170
+ """
171
+ ...
172
+ def __init__(__self__, resource_name: str, *args, **kwargs):
173
+ resource_args, opts = _utilities.get_resource_args_opts(RandomUuid4Args, pulumi.ResourceOptions, *args, **kwargs)
174
+ if resource_args is not None:
175
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
176
+ else:
177
+ __self__._internal_init(resource_name, *args, **kwargs)
178
+
179
+ def _internal_init(__self__,
180
+ resource_name: str,
181
+ opts: Optional[pulumi.ResourceOptions] = None,
182
+ keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
183
+ __props__=None):
184
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
185
+ if not isinstance(opts, pulumi.ResourceOptions):
186
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
187
+ if opts.id is None:
188
+ if __props__ is not None:
189
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
190
+ __props__ = RandomUuid4Args.__new__(RandomUuid4Args)
191
+
192
+ __props__.__dict__["keepers"] = keepers
193
+ __props__.__dict__["result"] = None
194
+ super(RandomUuid4, __self__).__init__(
195
+ 'random:index/randomUuid4:RandomUuid4',
196
+ resource_name,
197
+ __props__,
198
+ opts)
199
+
200
+ @staticmethod
201
+ def get(resource_name: str,
202
+ id: pulumi.Input[str],
203
+ opts: Optional[pulumi.ResourceOptions] = None,
204
+ keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
205
+ result: Optional[pulumi.Input[_builtins.str]] = None) -> 'RandomUuid4':
206
+ """
207
+ Get an existing RandomUuid4 resource's state with the given name, id, and optional extra
208
+ properties used to qualify the lookup.
209
+
210
+ :param str resource_name: The unique name of the resulting resource.
211
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
212
+ :param pulumi.ResourceOptions opts: Options for the resource.
213
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] keepers: Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
214
+ :param pulumi.Input[_builtins.str] result: The generated uuid presented in string format.
215
+ """
216
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
217
+
218
+ __props__ = _RandomUuid4State.__new__(_RandomUuid4State)
219
+
220
+ __props__.__dict__["keepers"] = keepers
221
+ __props__.__dict__["result"] = result
222
+ return RandomUuid4(resource_name, opts=opts, __props__=__props__)
223
+
224
+ @_builtins.property
225
+ @pulumi.getter
226
+ def keepers(self) -> pulumi.Output[Optional[Mapping[str, _builtins.str]]]:
227
+ """
228
+ Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
229
+ """
230
+ return pulumi.get(self, "keepers")
231
+
232
+ @_builtins.property
233
+ @pulumi.getter
234
+ def result(self) -> pulumi.Output[_builtins.str]:
235
+ """
236
+ The generated uuid presented in string format.
237
+ """
238
+ return pulumi.get(self, "result")
239
+
@@ -0,0 +1,239 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import builtins as _builtins
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
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
15
+ from . import _utilities
16
+
17
+ __all__ = ['RandomUuid7Args', 'RandomUuid7']
18
+
19
+ @pulumi.input_type
20
+ class RandomUuid7Args:
21
+ def __init__(__self__, *,
22
+ keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None):
23
+ """
24
+ The set of arguments for constructing a RandomUuid7 resource.
25
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] keepers: Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
26
+ """
27
+ if keepers is not None:
28
+ pulumi.set(__self__, "keepers", keepers)
29
+
30
+ @_builtins.property
31
+ @pulumi.getter
32
+ def keepers(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
33
+ """
34
+ Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
35
+ """
36
+ return pulumi.get(self, "keepers")
37
+
38
+ @keepers.setter
39
+ def keepers(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
40
+ pulumi.set(self, "keepers", value)
41
+
42
+
43
+ @pulumi.input_type
44
+ class _RandomUuid7State:
45
+ def __init__(__self__, *,
46
+ keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
47
+ result: Optional[pulumi.Input[_builtins.str]] = None):
48
+ """
49
+ Input properties used for looking up and filtering RandomUuid7 resources.
50
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] keepers: Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
51
+ :param pulumi.Input[_builtins.str] result: The generated uuid presented in string format.
52
+ """
53
+ if keepers is not None:
54
+ pulumi.set(__self__, "keepers", keepers)
55
+ if result is not None:
56
+ pulumi.set(__self__, "result", result)
57
+
58
+ @_builtins.property
59
+ @pulumi.getter
60
+ def keepers(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
61
+ """
62
+ Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
63
+ """
64
+ return pulumi.get(self, "keepers")
65
+
66
+ @keepers.setter
67
+ def keepers(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
68
+ pulumi.set(self, "keepers", value)
69
+
70
+ @_builtins.property
71
+ @pulumi.getter
72
+ def result(self) -> Optional[pulumi.Input[_builtins.str]]:
73
+ """
74
+ The generated uuid presented in string format.
75
+ """
76
+ return pulumi.get(self, "result")
77
+
78
+ @result.setter
79
+ def result(self, value: Optional[pulumi.Input[_builtins.str]]):
80
+ pulumi.set(self, "result", value)
81
+
82
+
83
+ @pulumi.type_token("random:index/randomUuid7:RandomUuid7")
84
+ class RandomUuid7(pulumi.CustomResource):
85
+ @overload
86
+ def __init__(__self__,
87
+ resource_name: str,
88
+ opts: Optional[pulumi.ResourceOptions] = None,
89
+ keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
90
+ __props__=None):
91
+ """
92
+ The resource `RandomUuid7` generates a random version 7 uuid string that is intended to be used as a unique identifier for other resources.
93
+
94
+ This resource uses [google/uuid](https://github.com/google/uuid) to generate a valid V7 UUID for use with services needing a unique string identifier.
95
+
96
+ ## Example Usage
97
+
98
+ ```python
99
+ import pulumi
100
+ import pulumi_azurerm as azurerm
101
+ import pulumi_random as random
102
+
103
+ # The following example shows how to generate a unique name for an Azure Resource Group.
104
+ test = random.RandomUuid7("test")
105
+ test_resource_group = azurerm.index.ResourceGroup("test",
106
+ name=f{test.result}-rg,
107
+ location=Central US)
108
+ ```
109
+
110
+ ## Import
111
+
112
+ The `pulumi import` command can be used, for example:
113
+
114
+ Random UUID's can be imported. This can be used to replace a config
115
+
116
+ value with a value interpolated from the random provider without
117
+
118
+ experiencing diffs.
119
+
120
+ ```sh
121
+ $ pulumi import random:index/randomUuid7:RandomUuid7 main 0197ad85-fe6e-7e92-a2f5-7550daa83030
122
+ ```
123
+
124
+ :param str resource_name: The name of the resource.
125
+ :param pulumi.ResourceOptions opts: Options for the resource.
126
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] keepers: Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
127
+ """
128
+ ...
129
+ @overload
130
+ def __init__(__self__,
131
+ resource_name: str,
132
+ args: Optional[RandomUuid7Args] = None,
133
+ opts: Optional[pulumi.ResourceOptions] = None):
134
+ """
135
+ The resource `RandomUuid7` generates a random version 7 uuid string that is intended to be used as a unique identifier for other resources.
136
+
137
+ This resource uses [google/uuid](https://github.com/google/uuid) to generate a valid V7 UUID for use with services needing a unique string identifier.
138
+
139
+ ## Example Usage
140
+
141
+ ```python
142
+ import pulumi
143
+ import pulumi_azurerm as azurerm
144
+ import pulumi_random as random
145
+
146
+ # The following example shows how to generate a unique name for an Azure Resource Group.
147
+ test = random.RandomUuid7("test")
148
+ test_resource_group = azurerm.index.ResourceGroup("test",
149
+ name=f{test.result}-rg,
150
+ location=Central US)
151
+ ```
152
+
153
+ ## Import
154
+
155
+ The `pulumi import` command can be used, for example:
156
+
157
+ Random UUID's can be imported. This can be used to replace a config
158
+
159
+ value with a value interpolated from the random provider without
160
+
161
+ experiencing diffs.
162
+
163
+ ```sh
164
+ $ pulumi import random:index/randomUuid7:RandomUuid7 main 0197ad85-fe6e-7e92-a2f5-7550daa83030
165
+ ```
166
+
167
+ :param str resource_name: The name of the resource.
168
+ :param RandomUuid7Args args: The arguments to use to populate this resource's properties.
169
+ :param pulumi.ResourceOptions opts: Options for the resource.
170
+ """
171
+ ...
172
+ def __init__(__self__, resource_name: str, *args, **kwargs):
173
+ resource_args, opts = _utilities.get_resource_args_opts(RandomUuid7Args, pulumi.ResourceOptions, *args, **kwargs)
174
+ if resource_args is not None:
175
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
176
+ else:
177
+ __self__._internal_init(resource_name, *args, **kwargs)
178
+
179
+ def _internal_init(__self__,
180
+ resource_name: str,
181
+ opts: Optional[pulumi.ResourceOptions] = None,
182
+ keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
183
+ __props__=None):
184
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
185
+ if not isinstance(opts, pulumi.ResourceOptions):
186
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
187
+ if opts.id is None:
188
+ if __props__ is not None:
189
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
190
+ __props__ = RandomUuid7Args.__new__(RandomUuid7Args)
191
+
192
+ __props__.__dict__["keepers"] = keepers
193
+ __props__.__dict__["result"] = None
194
+ super(RandomUuid7, __self__).__init__(
195
+ 'random:index/randomUuid7:RandomUuid7',
196
+ resource_name,
197
+ __props__,
198
+ opts)
199
+
200
+ @staticmethod
201
+ def get(resource_name: str,
202
+ id: pulumi.Input[str],
203
+ opts: Optional[pulumi.ResourceOptions] = None,
204
+ keepers: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
205
+ result: Optional[pulumi.Input[_builtins.str]] = None) -> 'RandomUuid7':
206
+ """
207
+ Get an existing RandomUuid7 resource's state with the given name, id, and optional extra
208
+ properties used to qualify the lookup.
209
+
210
+ :param str resource_name: The unique name of the resulting resource.
211
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
212
+ :param pulumi.ResourceOptions opts: Options for the resource.
213
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] keepers: Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
214
+ :param pulumi.Input[_builtins.str] result: The generated uuid presented in string format.
215
+ """
216
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
217
+
218
+ __props__ = _RandomUuid7State.__new__(_RandomUuid7State)
219
+
220
+ __props__.__dict__["keepers"] = keepers
221
+ __props__.__dict__["result"] = result
222
+ return RandomUuid7(resource_name, opts=opts, __props__=__props__)
223
+
224
+ @_builtins.property
225
+ @pulumi.getter
226
+ def keepers(self) -> pulumi.Output[Optional[Mapping[str, _builtins.str]]]:
227
+ """
228
+ Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
229
+ """
230
+ return pulumi.get(self, "keepers")
231
+
232
+ @_builtins.property
233
+ @pulumi.getter
234
+ def result(self) -> pulumi.Output[_builtins.str]:
235
+ """
236
+ The generated uuid presented in string format.
237
+ """
238
+ return pulumi.get(self, "result")
239
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pulumi_random
3
- Version: 4.19.0a1768284769
3
+ Version: 4.19.0a1768544066
4
4
  Summary: A Pulumi package to safely use randomness in Pulumi programs.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -13,6 +13,8 @@ pulumi_random/random_pet.py
13
13
  pulumi_random/random_shuffle.py
14
14
  pulumi_random/random_string.py
15
15
  pulumi_random/random_uuid.py
16
+ pulumi_random/random_uuid4.py
17
+ pulumi_random/random_uuid7.py
16
18
  pulumi_random.egg-info/PKG-INFO
17
19
  pulumi_random.egg-info/SOURCES.txt
18
20
  pulumi_random.egg-info/dependency_links.txt
@@ -5,7 +5,7 @@
5
5
  keywords = ["pulumi", "random"]
6
6
  readme = "README.md"
7
7
  requires-python = ">=3.9"
8
- version = "4.19.0a1768284769"
8
+ version = "4.19.0a1768544066"
9
9
  [project.license]
10
10
  text = "Apache-2.0"
11
11
  [project.urls]