@pulumi/random 4.16.0 → 4.16.2
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/package.json +3 -2
- package/randomBytes.d.ts +9 -6
- package/randomBytes.js +7 -4
- package/randomBytes.js.map +1 -1
- package/randomId.d.ts +9 -10
- package/randomId.js +9 -10
- package/randomId.js.map +1 -1
- package/randomInteger.d.ts +5 -6
- package/randomInteger.js +5 -6
- package/randomInteger.js.map +1 -1
- package/randomPassword.d.ts +7 -13
- package/randomPassword.js +1 -7
- package/randomPassword.js.map +1 -1
- package/randomPet.d.ts +5 -6
- package/randomPet.js +5 -6
- package/randomPet.js.map +1 -1
- package/randomShuffle.d.ts +4 -3
- package/randomShuffle.js +0 -1
- package/randomShuffle.js.map +1 -1
- package/randomString.d.ts +7 -15
- package/randomString.js +1 -9
- package/randomString.js.map +1 -1
- package/randomUuid.d.ts +9 -5
- package/randomUuid.js +9 -5
- package/randomUuid.js.map +1 -1
- package/package.json.bak +0 -26
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/random",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.16.2",
|
|
4
4
|
"description": "A Pulumi package to safely use randomness in Pulumi programs.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"pulumi": {
|
|
23
23
|
"resource": true,
|
|
24
|
-
"name": "random"
|
|
24
|
+
"name": "random",
|
|
25
|
+
"version": "4.16.2"
|
|
25
26
|
}
|
|
26
27
|
}
|
package/randomBytes.d.ts
CHANGED
|
@@ -2,17 +2,20 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* The resource `random.RandomBytes` generates random bytes that are intended to be used as a secret, or key. Use this in preference to `random.RandomId` when the output is considered sensitive, and should not be displayed in the CLI.
|
|
4
4
|
*
|
|
5
|
+
* This resource *does* use a cryptographic random number generator.
|
|
6
|
+
*
|
|
5
7
|
* ## Example Usage
|
|
6
8
|
*
|
|
7
9
|
* ```typescript
|
|
8
10
|
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
-
* import * as
|
|
11
|
+
* import * as azurerm from "@pulumi/azurerm";
|
|
10
12
|
* import * as random from "@pulumi/random";
|
|
11
13
|
*
|
|
12
|
-
* const
|
|
13
|
-
* const
|
|
14
|
+
* const jwtSecret = new random.RandomBytes("jwt_secret", {length: 64});
|
|
15
|
+
* const jwtSecretKeyVaultSecret = new azurerm.index.KeyVaultSecret("jwt_secret", {
|
|
14
16
|
* keyVaultId: "some-azure-key-vault-id",
|
|
15
|
-
*
|
|
17
|
+
* name: "JwtSecret",
|
|
18
|
+
* value: jwtSecret.base64,
|
|
16
19
|
* });
|
|
17
20
|
* ```
|
|
18
21
|
*
|
|
@@ -45,7 +48,7 @@ export declare class RandomBytes extends pulumi.CustomResource {
|
|
|
45
48
|
*/
|
|
46
49
|
readonly base64: pulumi.Output<string>;
|
|
47
50
|
/**
|
|
48
|
-
* The generated bytes presented in
|
|
51
|
+
* The generated bytes presented in lowercase hexadecimal string format. The length of the encoded string is exactly twice the `length` parameter.
|
|
49
52
|
*/
|
|
50
53
|
readonly hex: pulumi.Output<string>;
|
|
51
54
|
/**
|
|
@@ -76,7 +79,7 @@ export interface RandomBytesState {
|
|
|
76
79
|
*/
|
|
77
80
|
base64?: pulumi.Input<string>;
|
|
78
81
|
/**
|
|
79
|
-
* The generated bytes presented in
|
|
82
|
+
* The generated bytes presented in lowercase hexadecimal string format. The length of the encoded string is exactly twice the `length` parameter.
|
|
80
83
|
*/
|
|
81
84
|
hex?: pulumi.Input<string>;
|
|
82
85
|
/**
|
package/randomBytes.js
CHANGED
|
@@ -8,17 +8,20 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* The resource `random.RandomBytes` generates random bytes that are intended to be used as a secret, or key. Use this in preference to `random.RandomId` when the output is considered sensitive, and should not be displayed in the CLI.
|
|
10
10
|
*
|
|
11
|
+
* This resource *does* use a cryptographic random number generator.
|
|
12
|
+
*
|
|
11
13
|
* ## Example Usage
|
|
12
14
|
*
|
|
13
15
|
* ```typescript
|
|
14
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as
|
|
17
|
+
* import * as azurerm from "@pulumi/azurerm";
|
|
16
18
|
* import * as random from "@pulumi/random";
|
|
17
19
|
*
|
|
18
|
-
* const
|
|
19
|
-
* const
|
|
20
|
+
* const jwtSecret = new random.RandomBytes("jwt_secret", {length: 64});
|
|
21
|
+
* const jwtSecretKeyVaultSecret = new azurerm.index.KeyVaultSecret("jwt_secret", {
|
|
20
22
|
* keyVaultId: "some-azure-key-vault-id",
|
|
21
|
-
*
|
|
23
|
+
* name: "JwtSecret",
|
|
24
|
+
* value: jwtSecret.base64,
|
|
22
25
|
* });
|
|
23
26
|
* ```
|
|
24
27
|
*
|
package/randomBytes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"randomBytes.js","sourceRoot":"","sources":["../randomBytes.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"randomBytes.js","sourceRoot":"","sources":["../randomBytes.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,CAAC;IAKD;;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AC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,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,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
|
@@ -24,36 +24,35 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
24
24
|
*
|
|
25
25
|
* // The following example shows how to generate a unique name for an AWS EC2
|
|
26
26
|
* // instance that changes each time a new AMI id is selected.
|
|
27
|
-
* const
|
|
27
|
+
* const server = new random.RandomId("server", {
|
|
28
28
|
* keepers: {
|
|
29
|
-
* ami_id:
|
|
29
|
+
* ami_id: amiId,
|
|
30
30
|
* },
|
|
31
31
|
* byteLength: 8,
|
|
32
32
|
* });
|
|
33
|
-
* const serverInstance = new aws.ec2.Instance("
|
|
33
|
+
* const serverInstance = new aws.ec2.Instance("server", {
|
|
34
34
|
* tags: {
|
|
35
|
-
* Name: pulumi.interpolate`web-server ${
|
|
35
|
+
* Name: pulumi.interpolate`web-server ${server.hex}`,
|
|
36
36
|
* },
|
|
37
|
-
* ami:
|
|
37
|
+
* ami: server.keepers.apply(keepers => keepers?.amiId),
|
|
38
38
|
* });
|
|
39
|
-
* // ... (other aws_instance arguments) ...
|
|
40
39
|
* ```
|
|
41
40
|
*
|
|
42
41
|
* ## Import
|
|
43
42
|
*
|
|
44
43
|
* Random IDs can be imported using the b64_url with an optional prefix. This
|
|
45
44
|
*
|
|
46
|
-
*
|
|
45
|
+
* can be used to replace a config value with a value interpolated from the
|
|
47
46
|
*
|
|
48
|
-
*
|
|
47
|
+
* random provider without experiencing diffs.
|
|
49
48
|
*
|
|
50
|
-
*
|
|
49
|
+
* Example with no prefix:
|
|
51
50
|
*
|
|
52
51
|
* ```sh
|
|
53
52
|
* $ pulumi import random:index/randomId:RandomId server p-9hUg
|
|
54
53
|
* ```
|
|
55
54
|
*
|
|
56
|
-
*
|
|
55
|
+
* Example with prefix (prefix is separated by a ,):
|
|
57
56
|
*
|
|
58
57
|
* ```sh
|
|
59
58
|
* $ pulumi import random:index/randomId:RandomId server my-prefix-,p-9hUg
|
package/randomId.js
CHANGED
|
@@ -30,36 +30,35 @@ const utilities = require("./utilities");
|
|
|
30
30
|
*
|
|
31
31
|
* // The following example shows how to generate a unique name for an AWS EC2
|
|
32
32
|
* // instance that changes each time a new AMI id is selected.
|
|
33
|
-
* const
|
|
33
|
+
* const server = new random.RandomId("server", {
|
|
34
34
|
* keepers: {
|
|
35
|
-
* ami_id:
|
|
35
|
+
* ami_id: amiId,
|
|
36
36
|
* },
|
|
37
37
|
* byteLength: 8,
|
|
38
38
|
* });
|
|
39
|
-
* const serverInstance = new aws.ec2.Instance("
|
|
39
|
+
* const serverInstance = new aws.ec2.Instance("server", {
|
|
40
40
|
* tags: {
|
|
41
|
-
* Name: pulumi.interpolate`web-server ${
|
|
41
|
+
* Name: pulumi.interpolate`web-server ${server.hex}`,
|
|
42
42
|
* },
|
|
43
|
-
* ami:
|
|
43
|
+
* ami: server.keepers.apply(keepers => keepers?.amiId),
|
|
44
44
|
* });
|
|
45
|
-
* // ... (other aws_instance arguments) ...
|
|
46
45
|
* ```
|
|
47
46
|
*
|
|
48
47
|
* ## Import
|
|
49
48
|
*
|
|
50
49
|
* Random IDs can be imported using the b64_url with an optional prefix. This
|
|
51
50
|
*
|
|
52
|
-
*
|
|
51
|
+
* can be used to replace a config value with a value interpolated from the
|
|
53
52
|
*
|
|
54
|
-
*
|
|
53
|
+
* random provider without experiencing diffs.
|
|
55
54
|
*
|
|
56
|
-
*
|
|
55
|
+
* Example with no prefix:
|
|
57
56
|
*
|
|
58
57
|
* ```sh
|
|
59
58
|
* $ pulumi import random:index/randomId:RandomId server p-9hUg
|
|
60
59
|
* ```
|
|
61
60
|
*
|
|
62
|
-
*
|
|
61
|
+
* Example with prefix (prefix is separated by a ,):
|
|
63
62
|
*
|
|
64
63
|
* ```sh
|
|
65
64
|
* $ pulumi import random:index/randomId:RandomId server my-prefix-,p-9hUg
|
package/randomId.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"randomId.js","sourceRoot":"","sources":["../randomId.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"randomId.js","sourceRoot":"","sources":["../randomId.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO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AAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,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
|
@@ -17,7 +17,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
17
17
|
* min: 1,
|
|
18
18
|
* max: 50000,
|
|
19
19
|
* keepers: {
|
|
20
|
-
* listener_arn:
|
|
20
|
+
* listener_arn: listenerArn,
|
|
21
21
|
* },
|
|
22
22
|
* });
|
|
23
23
|
* const main = new aws.alb.ListenerRule("main", {
|
|
@@ -25,21 +25,20 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
25
25
|
* priority: priority.result,
|
|
26
26
|
* actions: [{
|
|
27
27
|
* type: "forward",
|
|
28
|
-
* targetGroupArn:
|
|
28
|
+
* targetGroupArn: targetGroupArn,
|
|
29
29
|
* }],
|
|
30
30
|
* });
|
|
31
|
-
* // ... (other aws_alb_listener_rule arguments) ...
|
|
32
31
|
* ```
|
|
33
32
|
*
|
|
34
33
|
* ## Import
|
|
35
34
|
*
|
|
36
35
|
* Random integers can be imported using the result, min, and max, with an
|
|
37
36
|
*
|
|
38
|
-
*
|
|
37
|
+
* optional seed. This can be used to replace a config value with a value
|
|
39
38
|
*
|
|
40
|
-
*
|
|
39
|
+
* interpolated from the random provider without experiencing diffs.
|
|
41
40
|
*
|
|
42
|
-
*
|
|
41
|
+
* Example (values are separated by a ,):
|
|
43
42
|
*
|
|
44
43
|
* ```sh
|
|
45
44
|
* $ pulumi import random:index/randomInteger:RandomInteger priority 15390,1,50000
|
package/randomInteger.js
CHANGED
|
@@ -23,7 +23,7 @@ const utilities = require("./utilities");
|
|
|
23
23
|
* min: 1,
|
|
24
24
|
* max: 50000,
|
|
25
25
|
* keepers: {
|
|
26
|
-
* listener_arn:
|
|
26
|
+
* listener_arn: listenerArn,
|
|
27
27
|
* },
|
|
28
28
|
* });
|
|
29
29
|
* const main = new aws.alb.ListenerRule("main", {
|
|
@@ -31,21 +31,20 @@ const utilities = require("./utilities");
|
|
|
31
31
|
* priority: priority.result,
|
|
32
32
|
* actions: [{
|
|
33
33
|
* type: "forward",
|
|
34
|
-
* targetGroupArn:
|
|
34
|
+
* targetGroupArn: targetGroupArn,
|
|
35
35
|
* }],
|
|
36
36
|
* });
|
|
37
|
-
* // ... (other aws_alb_listener_rule arguments) ...
|
|
38
37
|
* ```
|
|
39
38
|
*
|
|
40
39
|
* ## Import
|
|
41
40
|
*
|
|
42
41
|
* Random integers can be imported using the result, min, and max, with an
|
|
43
42
|
*
|
|
44
|
-
*
|
|
43
|
+
* optional seed. This can be used to replace a config value with a value
|
|
45
44
|
*
|
|
46
|
-
*
|
|
45
|
+
* interpolated from the random provider without experiencing diffs.
|
|
47
46
|
*
|
|
48
|
-
*
|
|
47
|
+
* Example (values are separated by a ,):
|
|
49
48
|
*
|
|
50
49
|
* ```sh
|
|
51
50
|
* $ pulumi import random:index/randomInteger:RandomInteger priority 15390,1,50000
|
package/randomInteger.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"randomInteger.js","sourceRoot":"","sources":["../randomInteger.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"randomInteger.js","sourceRoot":"","sources":["../randomInteger.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,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,cAA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AS,CAAC;YACpD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,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,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AAnFL,sCAoFC;AAtEG,gBAAgB;AACO,0BAAY,GAAG,0CAA0C,CAAC"}
|
package/randomPassword.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
17
17
|
* overrideSpecial: "!#$%&*()-_=+[]{}<>:?",
|
|
18
18
|
* });
|
|
19
19
|
* const example = new aws.rds.Instance("example", {
|
|
20
|
-
* instanceClass:
|
|
20
|
+
* instanceClass: aws.rds.InstanceType.T3_Micro,
|
|
21
21
|
* allocatedStorage: 64,
|
|
22
22
|
* engine: "mysql",
|
|
23
23
|
* username: "someone",
|
|
@@ -28,12 +28,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
28
28
|
* ## Import
|
|
29
29
|
*
|
|
30
30
|
* You can import external passwords into your Pulumi programs as follows:
|
|
31
|
-
*
|
|
32
|
-
* ```sh
|
|
33
|
-
* $ import random:index/randomPassword:RandomPassword newPassword supersecret
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* This command will encode the `supersecret` token in Pulumi state and generate a code suggestion to include a new RandomPassword resource in your Pulumi program. Include the suggested code and do a `pulumi up`. Your secret password is now securely stored in Pulumi, and you can reference it in your Pulumi program as `newPassword.result`.
|
|
37
31
|
*/
|
|
38
32
|
export declare class RandomPassword extends pulumi.CustomResource {
|
|
39
33
|
/**
|
|
@@ -86,13 +80,13 @@ export declare class RandomPassword extends pulumi.CustomResource {
|
|
|
86
80
|
*/
|
|
87
81
|
readonly minUpper: pulumi.Output<number>;
|
|
88
82
|
/**
|
|
89
|
-
* Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead.
|
|
83
|
+
* Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead.
|
|
90
84
|
*
|
|
91
85
|
* @deprecated **NOTE**: This is deprecated, use `numeric` instead.
|
|
92
86
|
*/
|
|
93
87
|
readonly number: pulumi.Output<boolean>;
|
|
94
88
|
/**
|
|
95
|
-
* Include numeric characters in the result. Default value is `true`.
|
|
89
|
+
* Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`.
|
|
96
90
|
*/
|
|
97
91
|
readonly numeric: pulumi.Output<boolean>;
|
|
98
92
|
/**
|
|
@@ -159,13 +153,13 @@ export interface RandomPasswordState {
|
|
|
159
153
|
*/
|
|
160
154
|
minUpper?: pulumi.Input<number>;
|
|
161
155
|
/**
|
|
162
|
-
* Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead.
|
|
156
|
+
* Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead.
|
|
163
157
|
*
|
|
164
158
|
* @deprecated **NOTE**: This is deprecated, use `numeric` instead.
|
|
165
159
|
*/
|
|
166
160
|
number?: pulumi.Input<boolean>;
|
|
167
161
|
/**
|
|
168
|
-
* Include numeric characters in the result. Default value is `true`.
|
|
162
|
+
* Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`.
|
|
169
163
|
*/
|
|
170
164
|
numeric?: pulumi.Input<boolean>;
|
|
171
165
|
/**
|
|
@@ -220,13 +214,13 @@ export interface RandomPasswordArgs {
|
|
|
220
214
|
*/
|
|
221
215
|
minUpper?: pulumi.Input<number>;
|
|
222
216
|
/**
|
|
223
|
-
* Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead.
|
|
217
|
+
* Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead.
|
|
224
218
|
*
|
|
225
219
|
* @deprecated **NOTE**: This is deprecated, use `numeric` instead.
|
|
226
220
|
*/
|
|
227
221
|
number?: pulumi.Input<boolean>;
|
|
228
222
|
/**
|
|
229
|
-
* Include numeric characters in the result. Default value is `true`.
|
|
223
|
+
* Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`.
|
|
230
224
|
*/
|
|
231
225
|
numeric?: pulumi.Input<boolean>;
|
|
232
226
|
/**
|
package/randomPassword.js
CHANGED
|
@@ -23,7 +23,7 @@ const utilities = require("./utilities");
|
|
|
23
23
|
* overrideSpecial: "!#$%&*()-_=+[]{}<>:?",
|
|
24
24
|
* });
|
|
25
25
|
* const example = new aws.rds.Instance("example", {
|
|
26
|
-
* instanceClass:
|
|
26
|
+
* instanceClass: aws.rds.InstanceType.T3_Micro,
|
|
27
27
|
* allocatedStorage: 64,
|
|
28
28
|
* engine: "mysql",
|
|
29
29
|
* username: "someone",
|
|
@@ -34,12 +34,6 @@ const utilities = require("./utilities");
|
|
|
34
34
|
* ## Import
|
|
35
35
|
*
|
|
36
36
|
* You can import external passwords into your Pulumi programs as follows:
|
|
37
|
-
*
|
|
38
|
-
* ```sh
|
|
39
|
-
* $ import random:index/randomPassword:RandomPassword newPassword supersecret
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* This command will encode the `supersecret` token in Pulumi state and generate a code suggestion to include a new RandomPassword resource in your Pulumi program. Include the suggested code and do a `pulumi up`. Your secret password is now securely stored in Pulumi, and you can reference it in your Pulumi program as `newPassword.result`.
|
|
43
37
|
*/
|
|
44
38
|
class RandomPassword extends pulumi.CustomResource {
|
|
45
39
|
/**
|
package/randomPassword.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"randomPassword.js","sourceRoot":"","sources":["../randomPassword.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"randomPassword.js","sourceRoot":"","sources":["../randomPassword.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IAqED,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,SAA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,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,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,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,YAAY,EAAE,QAAQ,CAAC,EAAE,CAAC;QACzE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AA1IL,wCA2IC;AA7HG,gBAAgB;AACO,2BAAY,GAAG,4CAA4C,CAAC"}
|
package/randomPet.d.ts
CHANGED
|
@@ -14,16 +14,15 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
14
14
|
* // The following example shows how to generate a unique pet name
|
|
15
15
|
* // for an AWS EC2 instance that changes each time a new AMI id is
|
|
16
16
|
* // selected.
|
|
17
|
-
* const
|
|
18
|
-
* ami_id:
|
|
17
|
+
* const server = new random.RandomPet("server", {keepers: {
|
|
18
|
+
* ami_id: amiId,
|
|
19
19
|
* }});
|
|
20
|
-
* const serverInstance = new aws.ec2.Instance("
|
|
20
|
+
* const serverInstance = new aws.ec2.Instance("server", {
|
|
21
21
|
* tags: {
|
|
22
|
-
* Name: pulumi.interpolate`web-server-${
|
|
22
|
+
* Name: pulumi.interpolate`web-server-${server.id}`,
|
|
23
23
|
* },
|
|
24
|
-
* ami:
|
|
24
|
+
* ami: server.keepers.apply(keepers => keepers?.amiId),
|
|
25
25
|
* });
|
|
26
|
-
* // ... (other aws_instance arguments) ...
|
|
27
26
|
* ```
|
|
28
27
|
*/
|
|
29
28
|
export declare class RandomPet extends pulumi.CustomResource {
|
package/randomPet.js
CHANGED
|
@@ -20,16 +20,15 @@ const utilities = require("./utilities");
|
|
|
20
20
|
* // The following example shows how to generate a unique pet name
|
|
21
21
|
* // for an AWS EC2 instance that changes each time a new AMI id is
|
|
22
22
|
* // selected.
|
|
23
|
-
* const
|
|
24
|
-
* ami_id:
|
|
23
|
+
* const server = new random.RandomPet("server", {keepers: {
|
|
24
|
+
* ami_id: amiId,
|
|
25
25
|
* }});
|
|
26
|
-
* const serverInstance = new aws.ec2.Instance("
|
|
26
|
+
* const serverInstance = new aws.ec2.Instance("server", {
|
|
27
27
|
* tags: {
|
|
28
|
-
* Name: pulumi.interpolate`web-server-${
|
|
28
|
+
* Name: pulumi.interpolate`web-server-${server.id}`,
|
|
29
29
|
* },
|
|
30
|
-
* ami:
|
|
30
|
+
* ami: server.keepers.apply(keepers => keepers?.amiId),
|
|
31
31
|
* });
|
|
32
|
-
* // ... (other aws_instance arguments) ...
|
|
33
32
|
* ```
|
|
34
33
|
*/
|
|
35
34
|
class RandomPet extends pulumi.CustomResource {
|
package/randomPet.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"randomPet.js","sourceRoot":"","sources":["../randomPet.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFA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AC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SACrE;aAAM;YACH,MAAM,IAAI,GAAG,WAAwC,CAAC;YACtD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AAvEL,8BAwEC;AA1DG,gBAAgB;AACO,sBAAY,GAAG,kCAAkC,CAAC"}
|
package/randomShuffle.d.ts
CHANGED
|
@@ -19,7 +19,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
19
19
|
* resultCount: 2,
|
|
20
20
|
* });
|
|
21
21
|
* const example = new aws.elb.LoadBalancer("example", {availabilityZones: az.results});
|
|
22
|
-
* // ... and other aws_elb arguments ...
|
|
23
22
|
* ```
|
|
24
23
|
*/
|
|
25
24
|
export declare class RandomShuffle extends pulumi.CustomResource {
|
|
@@ -53,7 +52,8 @@ export declare class RandomShuffle extends pulumi.CustomResource {
|
|
|
53
52
|
*/
|
|
54
53
|
readonly resultCount: pulumi.Output<number | undefined>;
|
|
55
54
|
/**
|
|
56
|
-
* Random permutation of the list of strings given in `input`.
|
|
55
|
+
* Random permutation of the list of strings given in `input`. The number of elements is determined by `resultCount` if
|
|
56
|
+
* set, or the number of elements in `input`.
|
|
57
57
|
*/
|
|
58
58
|
readonly results: pulumi.Output<string[]>;
|
|
59
59
|
/**
|
|
@@ -88,7 +88,8 @@ export interface RandomShuffleState {
|
|
|
88
88
|
*/
|
|
89
89
|
resultCount?: pulumi.Input<number>;
|
|
90
90
|
/**
|
|
91
|
-
* Random permutation of the list of strings given in `input`.
|
|
91
|
+
* Random permutation of the list of strings given in `input`. The number of elements is determined by `resultCount` if
|
|
92
|
+
* set, or the number of elements in `input`.
|
|
92
93
|
*/
|
|
93
94
|
results?: pulumi.Input<pulumi.Input<string>[]>;
|
|
94
95
|
/**
|
package/randomShuffle.js
CHANGED
|
@@ -25,7 +25,6 @@ const utilities = require("./utilities");
|
|
|
25
25
|
* resultCount: 2,
|
|
26
26
|
* });
|
|
27
27
|
* const example = new aws.elb.LoadBalancer("example", {availabilityZones: az.results});
|
|
28
|
-
* // ... and other aws_elb arguments ...
|
|
29
28
|
* ```
|
|
30
29
|
*/
|
|
31
30
|
class RandomShuffle extends pulumi.CustomResource {
|
package/randomShuffle.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"randomShuffle.js","sourceRoot":"","sources":["../randomShuffle.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"randomShuffle.js","sourceRoot":"","sources":["../randomShuffle.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE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,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACjD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AAjFL,sCAkFC;AApEG,gBAAgB;AACO,0BAAY,GAAG,0CAA0C,CAAC"}
|
package/randomString.d.ts
CHANGED
|
@@ -14,22 +14,14 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
14
14
|
*
|
|
15
15
|
* const random = new random.RandomString("random", {
|
|
16
16
|
* length: 16,
|
|
17
|
-
* overrideSpecial: "/@£$",
|
|
18
17
|
* special: true,
|
|
18
|
+
* overrideSpecial: "/@£$",
|
|
19
19
|
* });
|
|
20
20
|
* ```
|
|
21
21
|
*
|
|
22
22
|
* ## Import
|
|
23
23
|
*
|
|
24
24
|
* You can import external strings into your Pulumi programs as RandomString resources as follows:
|
|
25
|
-
*
|
|
26
|
-
* ```sh
|
|
27
|
-
* $ import random:index/randomString:RandomString newString myspecialdata
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* This command will encode the `myspecialdata` token in Pulumi state and generate a code suggestion to include a new RandomString resource in your Pulumi program. Include the suggested code and do a `pulumi up`. Your data is now stored in Pulumi, and you can reference it in your Pulumi program as `newString.result`.
|
|
31
|
-
*
|
|
32
|
-
* If the data needs to be stored securily as a secret, consider using the RandomPassword resource instead.
|
|
33
25
|
*/
|
|
34
26
|
export declare class RandomString extends pulumi.CustomResource {
|
|
35
27
|
/**
|
|
@@ -78,13 +70,13 @@ export declare class RandomString extends pulumi.CustomResource {
|
|
|
78
70
|
*/
|
|
79
71
|
readonly minUpper: pulumi.Output<number>;
|
|
80
72
|
/**
|
|
81
|
-
* Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead.
|
|
73
|
+
* Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead.
|
|
82
74
|
*
|
|
83
75
|
* @deprecated **NOTE**: This is deprecated, use `numeric` instead.
|
|
84
76
|
*/
|
|
85
77
|
readonly number: pulumi.Output<boolean>;
|
|
86
78
|
/**
|
|
87
|
-
* Include numeric characters in the result. Default value is `true`.
|
|
79
|
+
* Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`.
|
|
88
80
|
*/
|
|
89
81
|
readonly numeric: pulumi.Output<boolean>;
|
|
90
82
|
/**
|
|
@@ -147,13 +139,13 @@ export interface RandomStringState {
|
|
|
147
139
|
*/
|
|
148
140
|
minUpper?: pulumi.Input<number>;
|
|
149
141
|
/**
|
|
150
|
-
* Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead.
|
|
142
|
+
* Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead.
|
|
151
143
|
*
|
|
152
144
|
* @deprecated **NOTE**: This is deprecated, use `numeric` instead.
|
|
153
145
|
*/
|
|
154
146
|
number?: pulumi.Input<boolean>;
|
|
155
147
|
/**
|
|
156
|
-
* Include numeric characters in the result. Default value is `true`.
|
|
148
|
+
* Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`.
|
|
157
149
|
*/
|
|
158
150
|
numeric?: pulumi.Input<boolean>;
|
|
159
151
|
/**
|
|
@@ -208,13 +200,13 @@ export interface RandomStringArgs {
|
|
|
208
200
|
*/
|
|
209
201
|
minUpper?: pulumi.Input<number>;
|
|
210
202
|
/**
|
|
211
|
-
* Include numeric characters in the result. Default value is `true`. **NOTE**: This is deprecated, use `numeric` instead.
|
|
203
|
+
* Include numeric characters in the result. Default value is `true`. If `number`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`. **NOTE**: This is deprecated, use `numeric` instead.
|
|
212
204
|
*
|
|
213
205
|
* @deprecated **NOTE**: This is deprecated, use `numeric` instead.
|
|
214
206
|
*/
|
|
215
207
|
number?: pulumi.Input<boolean>;
|
|
216
208
|
/**
|
|
217
|
-
* Include numeric characters in the result. Default value is `true`.
|
|
209
|
+
* Include numeric characters in the result. Default value is `true`. If `numeric`, `upper`, `lower`, and `special` are all configured, at least one of them must be set to `true`.
|
|
218
210
|
*/
|
|
219
211
|
numeric?: pulumi.Input<boolean>;
|
|
220
212
|
/**
|
package/randomString.js
CHANGED
|
@@ -20,22 +20,14 @@ const utilities = require("./utilities");
|
|
|
20
20
|
*
|
|
21
21
|
* const random = new random.RandomString("random", {
|
|
22
22
|
* length: 16,
|
|
23
|
-
* overrideSpecial: "/@£$",
|
|
24
23
|
* special: true,
|
|
24
|
+
* overrideSpecial: "/@£$",
|
|
25
25
|
* });
|
|
26
26
|
* ```
|
|
27
27
|
*
|
|
28
28
|
* ## Import
|
|
29
29
|
*
|
|
30
30
|
* You can import external strings into your Pulumi programs as RandomString resources as follows:
|
|
31
|
-
*
|
|
32
|
-
* ```sh
|
|
33
|
-
* $ import random:index/randomString:RandomString newString myspecialdata
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* This command will encode the `myspecialdata` token in Pulumi state and generate a code suggestion to include a new RandomString resource in your Pulumi program. Include the suggested code and do a `pulumi up`. Your data is now stored in Pulumi, and you can reference it in your Pulumi program as `newString.result`.
|
|
37
|
-
*
|
|
38
|
-
* If the data needs to be stored securily as a secret, consider using the RandomPassword resource instead.
|
|
39
31
|
*/
|
|
40
32
|
class RandomString extends pulumi.CustomResource {
|
|
41
33
|
/**
|
package/randomString.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"randomString.js","sourceRoot":"","sources":["../randomString.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"randomString.js","sourceRoot":"","sources":["../randomString.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;IAiED,YAAY,I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AAC,SAAS,CAAC;YAClE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,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,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AAlIL,oCAmIC;AArHG,gBAAgB;AACO,yBAAY,GAAG,wCAAwC,CAAC"}
|
package/randomUuid.d.ts
CHANGED
|
@@ -4,20 +4,24 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
4
4
|
*
|
|
5
5
|
* ```typescript
|
|
6
6
|
* import * as pulumi from "@pulumi/pulumi";
|
|
7
|
-
* import * as
|
|
7
|
+
* import * as azurerm from "@pulumi/azurerm";
|
|
8
8
|
* import * as random from "@pulumi/random";
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
* const
|
|
10
|
+
* // The following example shows how to generate a unique name for an Azure Resource Group.
|
|
11
|
+
* const test = new random.RandomUuid("test", {});
|
|
12
|
+
* const testResourceGroup = new azurerm.index.ResourceGroup("test", {
|
|
13
|
+
* name: `${test.result}-rg`,
|
|
14
|
+
* location: "Central US",
|
|
15
|
+
* });
|
|
12
16
|
* ```
|
|
13
17
|
*
|
|
14
18
|
* ## Import
|
|
15
19
|
*
|
|
16
20
|
* Random UUID's can be imported. This can be used to replace a config
|
|
17
21
|
*
|
|
18
|
-
*
|
|
22
|
+
* value with a value interpolated from the random provider without
|
|
19
23
|
*
|
|
20
|
-
*
|
|
24
|
+
* experiencing diffs.
|
|
21
25
|
*
|
|
22
26
|
* ```sh
|
|
23
27
|
* $ pulumi import random:index/randomUuid:RandomUuid main aabbccdd-eeff-0011-2233-445566778899
|
package/randomUuid.js
CHANGED
|
@@ -10,20 +10,24 @@ const utilities = require("./utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* ```typescript
|
|
12
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
-
* import * as
|
|
13
|
+
* import * as azurerm from "@pulumi/azurerm";
|
|
14
14
|
* import * as random from "@pulumi/random";
|
|
15
15
|
*
|
|
16
|
-
*
|
|
17
|
-
* const
|
|
16
|
+
* // The following example shows how to generate a unique name for an Azure Resource Group.
|
|
17
|
+
* const test = new random.RandomUuid("test", {});
|
|
18
|
+
* const testResourceGroup = new azurerm.index.ResourceGroup("test", {
|
|
19
|
+
* name: `${test.result}-rg`,
|
|
20
|
+
* location: "Central US",
|
|
21
|
+
* });
|
|
18
22
|
* ```
|
|
19
23
|
*
|
|
20
24
|
* ## Import
|
|
21
25
|
*
|
|
22
26
|
* Random UUID's can be imported. This can be used to replace a config
|
|
23
27
|
*
|
|
24
|
-
*
|
|
28
|
+
* value with a value interpolated from the random provider without
|
|
25
29
|
*
|
|
26
|
-
*
|
|
30
|
+
* experiencing diffs.
|
|
27
31
|
*
|
|
28
32
|
* ```sh
|
|
29
33
|
* $ pulumi import random:index/randomUuid:RandomUuid main aabbccdd-eeff-0011-2233-445566778899
|
package/randomUuid.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"randomUuid.js","sourceRoot":"","sources":["../randomUuid.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"randomUuid.js","sourceRoot":"","sources":["../randomUuid.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,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,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;aAAM;YACH,MAAM,IAAI,GAAG,WAAyC,CAAC;YACvD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,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/package.json.bak
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@pulumi/random",
|
|
3
|
-
"version": "${VERSION}",
|
|
4
|
-
"description": "A Pulumi package to safely use randomness in Pulumi programs.",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"pulumi",
|
|
7
|
-
"random"
|
|
8
|
-
],
|
|
9
|
-
"homepage": "https://pulumi.io",
|
|
10
|
-
"repository": "https://github.com/pulumi/pulumi-random",
|
|
11
|
-
"license": "Apache-2.0",
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "tsc"
|
|
14
|
-
},
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"@pulumi/pulumi": "^3.0.0"
|
|
17
|
-
},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"@types/node": "^10.0.0",
|
|
20
|
-
"typescript": "^4.3.5"
|
|
21
|
-
},
|
|
22
|
-
"pulumi": {
|
|
23
|
-
"resource": true,
|
|
24
|
-
"name": "random"
|
|
25
|
-
}
|
|
26
|
-
}
|