@pulumi/random 4.19.0-alpha.1768284769 → 4.19.0-alpha.1768457499
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.
- package/index.d.ts +6 -0
- package/index.js +11 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/randomBytes.d.ts +2 -0
- package/randomBytes.js +2 -0
- package/randomBytes.js.map +1 -1
- package/randomId.d.ts +2 -0
- package/randomId.js +2 -0
- package/randomId.js.map +1 -1
- package/randomInteger.d.ts +2 -0
- package/randomInteger.js +2 -0
- package/randomInteger.js.map +1 -1
- package/randomUuid.d.ts +2 -0
- package/randomUuid.js +2 -0
- package/randomUuid.js.map +1 -1
- package/randomUuid4.d.ts +96 -0
- package/randomUuid4.js +85 -0
- package/randomUuid4.js.map +1 -0
- package/randomUuid7.d.ts +96 -0
- package/randomUuid7.js +85 -0
- package/randomUuid7.js.map +1 -0
package/index.d.ts
CHANGED
|
@@ -23,3 +23,9 @@ export declare const RandomString: typeof import("./randomString").RandomString;
|
|
|
23
23
|
export { RandomUuidArgs, RandomUuidState } from "./randomUuid";
|
|
24
24
|
export type RandomUuid = import("./randomUuid").RandomUuid;
|
|
25
25
|
export declare const RandomUuid: typeof import("./randomUuid").RandomUuid;
|
|
26
|
+
export { RandomUuid4Args, RandomUuid4State } from "./randomUuid4";
|
|
27
|
+
export type RandomUuid4 = import("./randomUuid4").RandomUuid4;
|
|
28
|
+
export declare const RandomUuid4: typeof import("./randomUuid4").RandomUuid4;
|
|
29
|
+
export { RandomUuid7Args, RandomUuid7State } from "./randomUuid7";
|
|
30
|
+
export type RandomUuid7 = import("./randomUuid7").RandomUuid7;
|
|
31
|
+
export declare const RandomUuid7: typeof import("./randomUuid7").RandomUuid7;
|
package/index.js
CHANGED
|
@@ -16,7 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.RandomUuid = exports.RandomString = exports.RandomShuffle = exports.RandomPet = exports.RandomPassword = exports.RandomInteger = exports.RandomId = exports.RandomBytes = void 0;
|
|
19
|
+
exports.RandomUuid7 = exports.RandomUuid4 = exports.RandomUuid = exports.RandomString = exports.RandomShuffle = exports.RandomPet = exports.RandomPassword = exports.RandomInteger = exports.RandomId = exports.RandomBytes = void 0;
|
|
20
20
|
const pulumi = require("@pulumi/pulumi");
|
|
21
21
|
const utilities = require("./utilities");
|
|
22
22
|
// Export members:
|
|
@@ -38,6 +38,10 @@ exports.RandomString = null;
|
|
|
38
38
|
utilities.lazyLoad(exports, ["RandomString"], () => require("./randomString"));
|
|
39
39
|
exports.RandomUuid = null;
|
|
40
40
|
utilities.lazyLoad(exports, ["RandomUuid"], () => require("./randomUuid"));
|
|
41
|
+
exports.RandomUuid4 = null;
|
|
42
|
+
utilities.lazyLoad(exports, ["RandomUuid4"], () => require("./randomUuid4"));
|
|
43
|
+
exports.RandomUuid7 = null;
|
|
44
|
+
utilities.lazyLoad(exports, ["RandomUuid7"], () => require("./randomUuid7"));
|
|
41
45
|
const _module = {
|
|
42
46
|
version: utilities.getVersion(),
|
|
43
47
|
construct: (name, type, urn) => {
|
|
@@ -56,6 +60,10 @@ const _module = {
|
|
|
56
60
|
return new exports.RandomShuffle(name, undefined, { urn });
|
|
57
61
|
case "random:index/randomString:RandomString":
|
|
58
62
|
return new exports.RandomString(name, undefined, { urn });
|
|
63
|
+
case "random:index/randomUuid4:RandomUuid4":
|
|
64
|
+
return new exports.RandomUuid4(name, undefined, { urn });
|
|
65
|
+
case "random:index/randomUuid7:RandomUuid7":
|
|
66
|
+
return new exports.RandomUuid7(name, undefined, { urn });
|
|
59
67
|
case "random:index/randomUuid:RandomUuid":
|
|
60
68
|
return new exports.RandomUuid(name, undefined, { urn });
|
|
61
69
|
default:
|
|
@@ -71,6 +79,8 @@ pulumi.runtime.registerResourceModule("random", "index/randomPet", _module);
|
|
|
71
79
|
pulumi.runtime.registerResourceModule("random", "index/randomShuffle", _module);
|
|
72
80
|
pulumi.runtime.registerResourceModule("random", "index/randomString", _module);
|
|
73
81
|
pulumi.runtime.registerResourceModule("random", "index/randomUuid", _module);
|
|
82
|
+
pulumi.runtime.registerResourceModule("random", "index/randomUuid4", _module);
|
|
83
|
+
pulumi.runtime.registerResourceModule("random", "index/randomUuid7", _module);
|
|
74
84
|
pulumi.runtime.registerResourcePackage("random", {
|
|
75
85
|
version: utilities.getVersion(),
|
|
76
86
|
constructProvider: (name, type, urn) => {
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,kBAAkB;AAClB,6CAA2B;AAC3B,yCAAsC;AAIzB,QAAA,WAAW,GAA+C,IAAW,CAAC;AACnF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;AAIhE,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAI1D,QAAA,aAAa,GAAmD,IAAW,CAAC;AACzF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,eAAe,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAIpE,QAAA,cAAc,GAAqD,IAAW,CAAC;AAC5F,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,gBAAgB,CAAC,EAAE,G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;QACpF,IAAI,IAAI,KAAK,yBAAyB,EAAE;YACpC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,mBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/random",
|
|
3
|
-
"version": "4.19.0-alpha.
|
|
3
|
+
"version": "4.19.0-alpha.1768457499",
|
|
4
4
|
"description": "A Pulumi package to safely use randomness in Pulumi programs.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"pulumi": {
|
|
23
23
|
"resource": true,
|
|
24
24
|
"name": "random",
|
|
25
|
-
"version": "4.19.0-alpha.
|
|
25
|
+
"version": "4.19.0-alpha.1768457499"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/randomBytes.d.ts
CHANGED
package/randomBytes.js
CHANGED
package/randomBytes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"randomBytes.js","sourceRoot":"","sources":["../randomBytes.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"randomBytes.js","sourceRoot":"","sources":["../randomBytes.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IA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AC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC;QAClE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AA5EL,kCA6EC;AA/DG,gBAAgB;AACO,wBAAY,GAAG,sCAAsC,CAAC"}
|
package/randomId.d.ts
CHANGED
|
@@ -40,6 +40,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
40
40
|
*
|
|
41
41
|
* ## Import
|
|
42
42
|
*
|
|
43
|
+
* The `pulumi import` command can be used, for example:
|
|
44
|
+
*
|
|
43
45
|
* Random IDs can be imported using the b64_url with an optional prefix. This
|
|
44
46
|
*
|
|
45
47
|
* can be used to replace a config value with a value interpolated from the
|
package/randomId.js
CHANGED
|
@@ -46,6 +46,8 @@ const utilities = require("./utilities");
|
|
|
46
46
|
*
|
|
47
47
|
* ## Import
|
|
48
48
|
*
|
|
49
|
+
* The `pulumi import` command can be used, for example:
|
|
50
|
+
*
|
|
49
51
|
* Random IDs can be imported using the b64_url with an optional prefix. This
|
|
50
52
|
*
|
|
51
53
|
* can be used to replace a config value with a value interpolated from the
|
package/randomId.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"randomId.js","sourceRoot":"","sources":["../randomId.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"randomId.js","sourceRoot":"","sources":["../randomId.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;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I,EAAE,UAAU,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC7C,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1C,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA5FL,4BA6FC;AA/EG,gBAAgB;AACO,qBAAY,GAAG,gCAAgC,CAAC"}
|
package/randomInteger.d.ts
CHANGED
|
@@ -32,6 +32,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
32
32
|
*
|
|
33
33
|
* ## Import
|
|
34
34
|
*
|
|
35
|
+
* The `pulumi import` command can be used, for example:
|
|
36
|
+
*
|
|
35
37
|
* Random integers can be imported using the result, min, and max, with an
|
|
36
38
|
*
|
|
37
39
|
* optional seed. This can be used to replace a config value with a value
|
package/randomInteger.js
CHANGED
|
@@ -38,6 +38,8 @@ const utilities = require("./utilities");
|
|
|
38
38
|
*
|
|
39
39
|
* ## Import
|
|
40
40
|
*
|
|
41
|
+
* The `pulumi import` command can be used, for example:
|
|
42
|
+
*
|
|
41
43
|
* Random integers can be imported using the result, min, and max, with an
|
|
42
44
|
*
|
|
43
45
|
* optional seed. This can be used to replace a config value with a value
|
package/randomInteger.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"randomInteger.js","sourceRoot":"","sources":["../randomInteger.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"randomInteger.js","sourceRoot":"","sources":["../randomInteger.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IA+BD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;YAC3C,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19
19
|
*
|
|
20
|
+
* The `pulumi import` command can be used, for example:
|
|
21
|
+
*
|
|
20
22
|
* Random UUID's can be imported. This can be used to replace a config
|
|
21
23
|
*
|
|
22
24
|
* value with a value interpolated from the random provider without
|
package/randomUuid.js
CHANGED
|
@@ -23,6 +23,8 @@ const utilities = require("./utilities");
|
|
|
23
23
|
*
|
|
24
24
|
* ## Import
|
|
25
25
|
*
|
|
26
|
+
* The `pulumi import` command can be used, for example:
|
|
27
|
+
*
|
|
26
28
|
* Random UUID's can be imported. This can be used to replace a config
|
|
27
29
|
*
|
|
28
30
|
* value with a value interpolated from the random provider without
|
package/randomUuid.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"randomUuid.js","sourceRoot":"","sources":["../randomUuid.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"randomUuid.js","sourceRoot":"","sources":["../randomUuid.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACjE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IAmBD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;YAC3C,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;SAC5C;aAAM;YACH,MAAM,IAAI,GAAG,WAAyC,CAAC;YACvD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AA3DL,gCA4DC;AA9CG,gBAAgB;AACO,uBAAY,GAAG,oCAAoC,CAAC"}
|
package/randomUuid4.d.ts
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The resource `random.RandomUuid4` generates a random version 4 uuid string that is intended to be used as a unique identifier for other resources.
|
|
4
|
+
*
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as azurerm from "@pulumi/azurerm";
|
|
12
|
+
* import * as random from "@pulumi/random";
|
|
13
|
+
*
|
|
14
|
+
* // The following example shows how to generate a unique name for an Azure Resource Group.
|
|
15
|
+
* const test = new random.RandomUuid4("test", {});
|
|
16
|
+
* const testResourceGroup = new azurerm.index.ResourceGroup("test", {
|
|
17
|
+
* name: `${test.result}-rg`,
|
|
18
|
+
* location: "Central US",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ## Import
|
|
23
|
+
*
|
|
24
|
+
* The `pulumi import` command can be used, for example:
|
|
25
|
+
*
|
|
26
|
+
* Random UUID's can be imported. This can be used to replace a config
|
|
27
|
+
*
|
|
28
|
+
* value with a value interpolated from the random provider without
|
|
29
|
+
*
|
|
30
|
+
* experiencing diffs.
|
|
31
|
+
*
|
|
32
|
+
* ```sh
|
|
33
|
+
* $ pulumi import random:index/randomUuid4:RandomUuid4 main 7e4436da-7c71-486e-a57c-830b25fff7bd
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare class RandomUuid4 extends pulumi.CustomResource {
|
|
37
|
+
/**
|
|
38
|
+
* Get an existing RandomUuid4 resource's state with the given name, ID, and optional extra
|
|
39
|
+
* properties used to qualify the lookup.
|
|
40
|
+
*
|
|
41
|
+
* @param name The _unique_ name of the resulting resource.
|
|
42
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
43
|
+
* @param state Any extra arguments used during the lookup.
|
|
44
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
45
|
+
*/
|
|
46
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RandomUuid4State, opts?: pulumi.CustomResourceOptions): RandomUuid4;
|
|
47
|
+
/**
|
|
48
|
+
* Returns true if the given object is an instance of RandomUuid4. This is designed to work even
|
|
49
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
50
|
+
*/
|
|
51
|
+
static isInstance(obj: any): obj is RandomUuid4;
|
|
52
|
+
/**
|
|
53
|
+
* Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
|
|
54
|
+
*/
|
|
55
|
+
readonly keepers: pulumi.Output<{
|
|
56
|
+
[key: string]: string;
|
|
57
|
+
} | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* The generated uuid presented in string format.
|
|
60
|
+
*/
|
|
61
|
+
readonly result: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Create a RandomUuid4 resource with the given unique name, arguments, and options.
|
|
64
|
+
*
|
|
65
|
+
* @param name The _unique_ name of the resource.
|
|
66
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
67
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
68
|
+
*/
|
|
69
|
+
constructor(name: string, args?: RandomUuid4Args, opts?: pulumi.CustomResourceOptions);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Input properties used for looking up and filtering RandomUuid4 resources.
|
|
73
|
+
*/
|
|
74
|
+
export interface RandomUuid4State {
|
|
75
|
+
/**
|
|
76
|
+
* Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
|
|
77
|
+
*/
|
|
78
|
+
keepers?: pulumi.Input<{
|
|
79
|
+
[key: string]: pulumi.Input<string>;
|
|
80
|
+
}>;
|
|
81
|
+
/**
|
|
82
|
+
* The generated uuid presented in string format.
|
|
83
|
+
*/
|
|
84
|
+
result?: pulumi.Input<string>;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The set of arguments for constructing a RandomUuid4 resource.
|
|
88
|
+
*/
|
|
89
|
+
export interface RandomUuid4Args {
|
|
90
|
+
/**
|
|
91
|
+
* Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
|
|
92
|
+
*/
|
|
93
|
+
keepers?: pulumi.Input<{
|
|
94
|
+
[key: string]: pulumi.Input<string>;
|
|
95
|
+
}>;
|
|
96
|
+
}
|
package/randomUuid4.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.RandomUuid4 = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The resource `random.RandomUuid4` generates a random version 4 uuid string that is intended to be used as a unique identifier for other resources.
|
|
10
|
+
*
|
|
11
|
+
* 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.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as azurerm from "@pulumi/azurerm";
|
|
18
|
+
* import * as random from "@pulumi/random";
|
|
19
|
+
*
|
|
20
|
+
* // The following example shows how to generate a unique name for an Azure Resource Group.
|
|
21
|
+
* const test = new random.RandomUuid4("test", {});
|
|
22
|
+
* const testResourceGroup = new azurerm.index.ResourceGroup("test", {
|
|
23
|
+
* name: `${test.result}-rg`,
|
|
24
|
+
* location: "Central US",
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* ## Import
|
|
29
|
+
*
|
|
30
|
+
* The `pulumi import` command can be used, for example:
|
|
31
|
+
*
|
|
32
|
+
* Random UUID's can be imported. This can be used to replace a config
|
|
33
|
+
*
|
|
34
|
+
* value with a value interpolated from the random provider without
|
|
35
|
+
*
|
|
36
|
+
* experiencing diffs.
|
|
37
|
+
*
|
|
38
|
+
* ```sh
|
|
39
|
+
* $ pulumi import random:index/randomUuid4:RandomUuid4 main 7e4436da-7c71-486e-a57c-830b25fff7bd
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
class RandomUuid4 extends pulumi.CustomResource {
|
|
43
|
+
/**
|
|
44
|
+
* Get an existing RandomUuid4 resource's state with the given name, ID, and optional extra
|
|
45
|
+
* properties used to qualify the lookup.
|
|
46
|
+
*
|
|
47
|
+
* @param name The _unique_ name of the resulting resource.
|
|
48
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
49
|
+
* @param state Any extra arguments used during the lookup.
|
|
50
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
51
|
+
*/
|
|
52
|
+
static get(name, id, state, opts) {
|
|
53
|
+
return new RandomUuid4(name, state, { ...opts, id: id });
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Returns true if the given object is an instance of RandomUuid4. This is designed to work even
|
|
57
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
58
|
+
*/
|
|
59
|
+
static isInstance(obj) {
|
|
60
|
+
if (obj === undefined || obj === null) {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
return obj['__pulumiType'] === RandomUuid4.__pulumiType;
|
|
64
|
+
}
|
|
65
|
+
constructor(name, argsOrState, opts) {
|
|
66
|
+
let resourceInputs = {};
|
|
67
|
+
opts = opts || {};
|
|
68
|
+
if (opts.id) {
|
|
69
|
+
const state = argsOrState;
|
|
70
|
+
resourceInputs["keepers"] = state?.keepers;
|
|
71
|
+
resourceInputs["result"] = state?.result;
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
const args = argsOrState;
|
|
75
|
+
resourceInputs["keepers"] = args?.keepers;
|
|
76
|
+
resourceInputs["result"] = undefined /*out*/;
|
|
77
|
+
}
|
|
78
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
79
|
+
super(RandomUuid4.__pulumiType, name, resourceInputs, opts);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.RandomUuid4 = RandomUuid4;
|
|
83
|
+
/** @internal */
|
|
84
|
+
RandomUuid4.__pulumiType = 'random:index/randomUuid4:RandomUuid4';
|
|
85
|
+
//# sourceMappingURL=randomUuid4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version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E,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AA3DL,kCA4DC;AA9CG,gBAAgB;AACO,wBAAY,GAAG,sCAAsC,CAAC"}
|
package/randomUuid7.d.ts
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The resource `random.RandomUuid7` generates a random version 7 uuid string that is intended to be used as a unique identifier for other resources.
|
|
4
|
+
*
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as azurerm from "@pulumi/azurerm";
|
|
12
|
+
* import * as random from "@pulumi/random";
|
|
13
|
+
*
|
|
14
|
+
* // The following example shows how to generate a unique name for an Azure Resource Group.
|
|
15
|
+
* const test = new random.RandomUuid7("test", {});
|
|
16
|
+
* const testResourceGroup = new azurerm.index.ResourceGroup("test", {
|
|
17
|
+
* name: `${test.result}-rg`,
|
|
18
|
+
* location: "Central US",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ## Import
|
|
23
|
+
*
|
|
24
|
+
* The `pulumi import` command can be used, for example:
|
|
25
|
+
*
|
|
26
|
+
* Random UUID's can be imported. This can be used to replace a config
|
|
27
|
+
*
|
|
28
|
+
* value with a value interpolated from the random provider without
|
|
29
|
+
*
|
|
30
|
+
* experiencing diffs.
|
|
31
|
+
*
|
|
32
|
+
* ```sh
|
|
33
|
+
* $ pulumi import random:index/randomUuid7:RandomUuid7 main 0197ad85-fe6e-7e92-a2f5-7550daa83030
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare class RandomUuid7 extends pulumi.CustomResource {
|
|
37
|
+
/**
|
|
38
|
+
* Get an existing RandomUuid7 resource's state with the given name, ID, and optional extra
|
|
39
|
+
* properties used to qualify the lookup.
|
|
40
|
+
*
|
|
41
|
+
* @param name The _unique_ name of the resulting resource.
|
|
42
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
43
|
+
* @param state Any extra arguments used during the lookup.
|
|
44
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
45
|
+
*/
|
|
46
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RandomUuid7State, opts?: pulumi.CustomResourceOptions): RandomUuid7;
|
|
47
|
+
/**
|
|
48
|
+
* Returns true if the given object is an instance of RandomUuid7. This is designed to work even
|
|
49
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
50
|
+
*/
|
|
51
|
+
static isInstance(obj: any): obj is RandomUuid7;
|
|
52
|
+
/**
|
|
53
|
+
* Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
|
|
54
|
+
*/
|
|
55
|
+
readonly keepers: pulumi.Output<{
|
|
56
|
+
[key: string]: string;
|
|
57
|
+
} | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* The generated uuid presented in string format.
|
|
60
|
+
*/
|
|
61
|
+
readonly result: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Create a RandomUuid7 resource with the given unique name, arguments, and options.
|
|
64
|
+
*
|
|
65
|
+
* @param name The _unique_ name of the resource.
|
|
66
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
67
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
68
|
+
*/
|
|
69
|
+
constructor(name: string, args?: RandomUuid7Args, opts?: pulumi.CustomResourceOptions);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Input properties used for looking up and filtering RandomUuid7 resources.
|
|
73
|
+
*/
|
|
74
|
+
export interface RandomUuid7State {
|
|
75
|
+
/**
|
|
76
|
+
* Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
|
|
77
|
+
*/
|
|
78
|
+
keepers?: pulumi.Input<{
|
|
79
|
+
[key: string]: pulumi.Input<string>;
|
|
80
|
+
}>;
|
|
81
|
+
/**
|
|
82
|
+
* The generated uuid presented in string format.
|
|
83
|
+
*/
|
|
84
|
+
result?: pulumi.Input<string>;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The set of arguments for constructing a RandomUuid7 resource.
|
|
88
|
+
*/
|
|
89
|
+
export interface RandomUuid7Args {
|
|
90
|
+
/**
|
|
91
|
+
* Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
|
|
92
|
+
*/
|
|
93
|
+
keepers?: pulumi.Input<{
|
|
94
|
+
[key: string]: pulumi.Input<string>;
|
|
95
|
+
}>;
|
|
96
|
+
}
|
package/randomUuid7.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.RandomUuid7 = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The resource `random.RandomUuid7` generates a random version 7 uuid string that is intended to be used as a unique identifier for other resources.
|
|
10
|
+
*
|
|
11
|
+
* 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.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as azurerm from "@pulumi/azurerm";
|
|
18
|
+
* import * as random from "@pulumi/random";
|
|
19
|
+
*
|
|
20
|
+
* // The following example shows how to generate a unique name for an Azure Resource Group.
|
|
21
|
+
* const test = new random.RandomUuid7("test", {});
|
|
22
|
+
* const testResourceGroup = new azurerm.index.ResourceGroup("test", {
|
|
23
|
+
* name: `${test.result}-rg`,
|
|
24
|
+
* location: "Central US",
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* ## Import
|
|
29
|
+
*
|
|
30
|
+
* The `pulumi import` command can be used, for example:
|
|
31
|
+
*
|
|
32
|
+
* Random UUID's can be imported. This can be used to replace a config
|
|
33
|
+
*
|
|
34
|
+
* value with a value interpolated from the random provider without
|
|
35
|
+
*
|
|
36
|
+
* experiencing diffs.
|
|
37
|
+
*
|
|
38
|
+
* ```sh
|
|
39
|
+
* $ pulumi import random:index/randomUuid7:RandomUuid7 main 0197ad85-fe6e-7e92-a2f5-7550daa83030
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
class RandomUuid7 extends pulumi.CustomResource {
|
|
43
|
+
/**
|
|
44
|
+
* Get an existing RandomUuid7 resource's state with the given name, ID, and optional extra
|
|
45
|
+
* properties used to qualify the lookup.
|
|
46
|
+
*
|
|
47
|
+
* @param name The _unique_ name of the resulting resource.
|
|
48
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
49
|
+
* @param state Any extra arguments used during the lookup.
|
|
50
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
51
|
+
*/
|
|
52
|
+
static get(name, id, state, opts) {
|
|
53
|
+
return new RandomUuid7(name, state, { ...opts, id: id });
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Returns true if the given object is an instance of RandomUuid7. This is designed to work even
|
|
57
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
58
|
+
*/
|
|
59
|
+
static isInstance(obj) {
|
|
60
|
+
if (obj === undefined || obj === null) {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
return obj['__pulumiType'] === RandomUuid7.__pulumiType;
|
|
64
|
+
}
|
|
65
|
+
constructor(name, argsOrState, opts) {
|
|
66
|
+
let resourceInputs = {};
|
|
67
|
+
opts = opts || {};
|
|
68
|
+
if (opts.id) {
|
|
69
|
+
const state = argsOrState;
|
|
70
|
+
resourceInputs["keepers"] = state?.keepers;
|
|
71
|
+
resourceInputs["result"] = state?.result;
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
const args = argsOrState;
|
|
75
|
+
resourceInputs["keepers"] = args?.keepers;
|
|
76
|
+
resourceInputs["result"] = undefined /*out*/;
|
|
77
|
+
}
|
|
78
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
79
|
+
super(RandomUuid7.__pulumiType, name, resourceInputs, opts);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.RandomUuid7 = RandomUuid7;
|
|
83
|
+
/** @internal */
|
|
84
|
+
RandomUuid7.__pulumiType = 'random:index/randomUuid7:RandomUuid7';
|
|
85
|
+
//# sourceMappingURL=randomUuid7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"randomUuid7.js","sourceRoot":"","sources":["../randomUuid7.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;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