@pulumi/random 4.3.1 → 4.4.0-alpha.1651660284
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.js +5 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/package.json.bak +2 -1
- package/package.json.dev +3 -2
- package/provider.js +3 -5
- package/provider.js.map +1 -1
- package/randomId.d.ts +20 -10
- package/randomId.js +17 -19
- package/randomId.js.map +1 -1
- package/randomInteger.d.ts +6 -3
- package/randomInteger.js +13 -15
- package/randomInteger.js.map +1 -1
- package/randomPassword.d.ts +46 -38
- package/randomPassword.js +28 -34
- package/randomPassword.js.map +1 -1
- package/randomPet.d.ts +6 -3
- package/randomPet.js +11 -13
- package/randomPet.js.map +1 -1
- package/randomShuffle.d.ts +24 -9
- package/randomShuffle.js +13 -15
- package/randomShuffle.js.map +1 -1
- package/randomString.d.ts +45 -33
- package/randomString.js +27 -29
- package/randomString.js.map +1 -1
- package/randomUuid.d.ts +6 -3
- package/randomUuid.js +7 -9
- package/randomUuid.js.map +1 -1
- package/utilities.js +6 -1
- package/utilities.js.map +1 -1
package/randomPassword.js
CHANGED
|
@@ -6,10 +6,6 @@ exports.RandomPassword = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Identical to random.RandomString with the exception that the result is treated as sensitive and, thus, _not_ displayed in console output.
|
|
10
|
-
*
|
|
11
|
-
* This resource *does* use a cryptographic random number generator.
|
|
12
|
-
*
|
|
13
9
|
* ## Example Usage
|
|
14
10
|
*
|
|
15
11
|
* ```typescript
|
|
@@ -20,7 +16,7 @@ const utilities = require("./utilities");
|
|
|
20
16
|
* const password = new random.RandomPassword("password", {
|
|
21
17
|
* length: 16,
|
|
22
18
|
* special: true,
|
|
23
|
-
* overrideSpecial:
|
|
19
|
+
* overrideSpecial: `!#$%&*()-_=+[]{}<>:?`,
|
|
24
20
|
* });
|
|
25
21
|
* const example = new aws.rds.Instance("example", {
|
|
26
22
|
* instanceClass: "db.t3.micro",
|
|
@@ -41,45 +37,43 @@ const utilities = require("./utilities");
|
|
|
41
37
|
*/
|
|
42
38
|
class RandomPassword extends pulumi.CustomResource {
|
|
43
39
|
constructor(name, argsOrState, opts) {
|
|
44
|
-
let
|
|
40
|
+
let resourceInputs = {};
|
|
45
41
|
opts = opts || {};
|
|
46
42
|
if (opts.id) {
|
|
47
43
|
const state = argsOrState;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
44
|
+
resourceInputs["keepers"] = state ? state.keepers : undefined;
|
|
45
|
+
resourceInputs["length"] = state ? state.length : undefined;
|
|
46
|
+
resourceInputs["lower"] = state ? state.lower : undefined;
|
|
47
|
+
resourceInputs["minLower"] = state ? state.minLower : undefined;
|
|
48
|
+
resourceInputs["minNumeric"] = state ? state.minNumeric : undefined;
|
|
49
|
+
resourceInputs["minSpecial"] = state ? state.minSpecial : undefined;
|
|
50
|
+
resourceInputs["minUpper"] = state ? state.minUpper : undefined;
|
|
51
|
+
resourceInputs["number"] = state ? state.number : undefined;
|
|
52
|
+
resourceInputs["overrideSpecial"] = state ? state.overrideSpecial : undefined;
|
|
53
|
+
resourceInputs["result"] = state ? state.result : undefined;
|
|
54
|
+
resourceInputs["special"] = state ? state.special : undefined;
|
|
55
|
+
resourceInputs["upper"] = state ? state.upper : undefined;
|
|
60
56
|
}
|
|
61
57
|
else {
|
|
62
58
|
const args = argsOrState;
|
|
63
59
|
if ((!args || args.length === undefined) && !opts.urn) {
|
|
64
60
|
throw new Error("Missing required property 'length'");
|
|
65
61
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
if (!opts.version) {
|
|
80
|
-
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
62
|
+
resourceInputs["keepers"] = args ? args.keepers : undefined;
|
|
63
|
+
resourceInputs["length"] = args ? args.length : undefined;
|
|
64
|
+
resourceInputs["lower"] = args ? args.lower : undefined;
|
|
65
|
+
resourceInputs["minLower"] = args ? args.minLower : undefined;
|
|
66
|
+
resourceInputs["minNumeric"] = args ? args.minNumeric : undefined;
|
|
67
|
+
resourceInputs["minSpecial"] = args ? args.minSpecial : undefined;
|
|
68
|
+
resourceInputs["minUpper"] = args ? args.minUpper : undefined;
|
|
69
|
+
resourceInputs["number"] = args ? args.number : undefined;
|
|
70
|
+
resourceInputs["overrideSpecial"] = args ? args.overrideSpecial : undefined;
|
|
71
|
+
resourceInputs["special"] = args ? args.special : undefined;
|
|
72
|
+
resourceInputs["upper"] = args ? args.upper : undefined;
|
|
73
|
+
resourceInputs["result"] = undefined /*out*/;
|
|
81
74
|
}
|
|
82
|
-
|
|
75
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
76
|
+
super(RandomPassword.__pulumiType, name, resourceInputs, opts);
|
|
83
77
|
}
|
|
84
78
|
/**
|
|
85
79
|
* Get an existing RandomPassword resource's state with the given name, ID, and optional extra
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA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B;AACO,2BAAY,GAAG,4CAA4C,CAAC"}
|
package/randomPet.d.ts
CHANGED
|
@@ -43,7 +43,8 @@ export declare class RandomPet extends pulumi.CustomResource {
|
|
|
43
43
|
*/
|
|
44
44
|
static isInstance(obj: any): obj is RandomPet;
|
|
45
45
|
/**
|
|
46
|
-
* Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider
|
|
46
|
+
* Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
|
|
47
|
+
* documentation](../index.html) for more information.
|
|
47
48
|
*/
|
|
48
49
|
readonly keepers: pulumi.Output<{
|
|
49
50
|
[key: string]: any;
|
|
@@ -74,7 +75,8 @@ export declare class RandomPet extends pulumi.CustomResource {
|
|
|
74
75
|
*/
|
|
75
76
|
export interface RandomPetState {
|
|
76
77
|
/**
|
|
77
|
-
* Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider
|
|
78
|
+
* Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
|
|
79
|
+
* documentation](../index.html) for more information.
|
|
78
80
|
*/
|
|
79
81
|
keepers?: pulumi.Input<{
|
|
80
82
|
[key: string]: any;
|
|
@@ -97,7 +99,8 @@ export interface RandomPetState {
|
|
|
97
99
|
*/
|
|
98
100
|
export interface RandomPetArgs {
|
|
99
101
|
/**
|
|
100
|
-
* Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider
|
|
102
|
+
* Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
|
|
103
|
+
* documentation](../index.html) for more information.
|
|
101
104
|
*/
|
|
102
105
|
keepers?: pulumi.Input<{
|
|
103
106
|
[key: string]: any;
|
package/randomPet.js
CHANGED
|
@@ -34,26 +34,24 @@ const utilities = require("./utilities");
|
|
|
34
34
|
*/
|
|
35
35
|
class RandomPet extends pulumi.CustomResource {
|
|
36
36
|
constructor(name, argsOrState, opts) {
|
|
37
|
-
let
|
|
37
|
+
let resourceInputs = {};
|
|
38
38
|
opts = opts || {};
|
|
39
39
|
if (opts.id) {
|
|
40
40
|
const state = argsOrState;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
resourceInputs["keepers"] = state ? state.keepers : undefined;
|
|
42
|
+
resourceInputs["length"] = state ? state.length : undefined;
|
|
43
|
+
resourceInputs["prefix"] = state ? state.prefix : undefined;
|
|
44
|
+
resourceInputs["separator"] = state ? state.separator : undefined;
|
|
45
45
|
}
|
|
46
46
|
else {
|
|
47
47
|
const args = argsOrState;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
resourceInputs["keepers"] = args ? args.keepers : undefined;
|
|
49
|
+
resourceInputs["length"] = args ? args.length : undefined;
|
|
50
|
+
resourceInputs["prefix"] = args ? args.prefix : undefined;
|
|
51
|
+
resourceInputs["separator"] = args ? args.separator : undefined;
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
super(RandomPet.__pulumiType, name, inputs, opts);
|
|
53
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
54
|
+
super(RandomPet.__pulumiType, name, resourceInputs, opts);
|
|
57
55
|
}
|
|
58
56
|
/**
|
|
59
57
|
* Get an existing RandomPet resource's state with the given name, ID, and optional extra
|
package/randomPet.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"randomPet.js","sourceRoot":"","sources":["../randomPet.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"randomPet.js","sourceRoot":"","sources":["../randomPet.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG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oB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;IAvED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,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,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;;AA1BL,8BAyEC;AA3DG,gBAAgB;AACO,sBAAY,GAAG,kCAAkC,CAAC"}
|
package/randomShuffle.d.ts
CHANGED
|
@@ -46,13 +46,16 @@ export declare class RandomShuffle extends pulumi.CustomResource {
|
|
|
46
46
|
*/
|
|
47
47
|
readonly inputs: pulumi.Output<string[]>;
|
|
48
48
|
/**
|
|
49
|
-
* Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider
|
|
49
|
+
* Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
|
|
50
|
+
* documentation](../index.html) for more information.
|
|
50
51
|
*/
|
|
51
52
|
readonly keepers: pulumi.Output<{
|
|
52
53
|
[key: string]: any;
|
|
53
54
|
} | undefined>;
|
|
54
55
|
/**
|
|
55
|
-
* The number of results to return. Defaults to the number of items in the `input` list. If fewer items are requested, some
|
|
56
|
+
* The number of results to return. Defaults to the number of items in the `input` list. If fewer items are requested, some
|
|
57
|
+
* elements will be excluded from the result. If more items are requested, items will be repeated in the result but not
|
|
58
|
+
* more frequently than the number of items in the input list.
|
|
56
59
|
*/
|
|
57
60
|
readonly resultCount: pulumi.Output<number | undefined>;
|
|
58
61
|
/**
|
|
@@ -60,7 +63,9 @@ export declare class RandomShuffle extends pulumi.CustomResource {
|
|
|
60
63
|
*/
|
|
61
64
|
readonly results: pulumi.Output<string[]>;
|
|
62
65
|
/**
|
|
63
|
-
* Arbitrary string with which to seed the random number generator, in order to produce less-volatile permutations of the
|
|
66
|
+
* Arbitrary string with which to seed the random number generator, in order to produce less-volatile permutations of the
|
|
67
|
+
* list. **Important:** Even with an identical seed, it is not guaranteed that the same permutation will be produced across
|
|
68
|
+
* different versions of Terraform. This argument causes the result to be *less volatile*, but not fixed for all time.
|
|
64
69
|
*/
|
|
65
70
|
readonly seed: pulumi.Output<string | undefined>;
|
|
66
71
|
/**
|
|
@@ -81,13 +86,16 @@ export interface RandomShuffleState {
|
|
|
81
86
|
*/
|
|
82
87
|
inputs?: pulumi.Input<pulumi.Input<string>[]>;
|
|
83
88
|
/**
|
|
84
|
-
* Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider
|
|
89
|
+
* Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
|
|
90
|
+
* documentation](../index.html) for more information.
|
|
85
91
|
*/
|
|
86
92
|
keepers?: pulumi.Input<{
|
|
87
93
|
[key: string]: any;
|
|
88
94
|
}>;
|
|
89
95
|
/**
|
|
90
|
-
* The number of results to return. Defaults to the number of items in the `input` list. If fewer items are requested, some
|
|
96
|
+
* The number of results to return. Defaults to the number of items in the `input` list. If fewer items are requested, some
|
|
97
|
+
* elements will be excluded from the result. If more items are requested, items will be repeated in the result but not
|
|
98
|
+
* more frequently than the number of items in the input list.
|
|
91
99
|
*/
|
|
92
100
|
resultCount?: pulumi.Input<number>;
|
|
93
101
|
/**
|
|
@@ -95,7 +103,9 @@ export interface RandomShuffleState {
|
|
|
95
103
|
*/
|
|
96
104
|
results?: pulumi.Input<pulumi.Input<string>[]>;
|
|
97
105
|
/**
|
|
98
|
-
* Arbitrary string with which to seed the random number generator, in order to produce less-volatile permutations of the
|
|
106
|
+
* Arbitrary string with which to seed the random number generator, in order to produce less-volatile permutations of the
|
|
107
|
+
* list. **Important:** Even with an identical seed, it is not guaranteed that the same permutation will be produced across
|
|
108
|
+
* different versions of Terraform. This argument causes the result to be *less volatile*, but not fixed for all time.
|
|
99
109
|
*/
|
|
100
110
|
seed?: pulumi.Input<string>;
|
|
101
111
|
}
|
|
@@ -108,17 +118,22 @@ export interface RandomShuffleArgs {
|
|
|
108
118
|
*/
|
|
109
119
|
inputs: pulumi.Input<pulumi.Input<string>[]>;
|
|
110
120
|
/**
|
|
111
|
-
* Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider
|
|
121
|
+
* Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
|
|
122
|
+
* documentation](../index.html) for more information.
|
|
112
123
|
*/
|
|
113
124
|
keepers?: pulumi.Input<{
|
|
114
125
|
[key: string]: any;
|
|
115
126
|
}>;
|
|
116
127
|
/**
|
|
117
|
-
* The number of results to return. Defaults to the number of items in the `input` list. If fewer items are requested, some
|
|
128
|
+
* The number of results to return. Defaults to the number of items in the `input` list. If fewer items are requested, some
|
|
129
|
+
* elements will be excluded from the result. If more items are requested, items will be repeated in the result but not
|
|
130
|
+
* more frequently than the number of items in the input list.
|
|
118
131
|
*/
|
|
119
132
|
resultCount?: pulumi.Input<number>;
|
|
120
133
|
/**
|
|
121
|
-
* Arbitrary string with which to seed the random number generator, in order to produce less-volatile permutations of the
|
|
134
|
+
* Arbitrary string with which to seed the random number generator, in order to produce less-volatile permutations of the
|
|
135
|
+
* list. **Important:** Even with an identical seed, it is not guaranteed that the same permutation will be produced across
|
|
136
|
+
* different versions of Terraform. This argument causes the result to be *less volatile*, but not fixed for all time.
|
|
122
137
|
*/
|
|
123
138
|
seed?: pulumi.Input<string>;
|
|
124
139
|
}
|
package/randomShuffle.js
CHANGED
|
@@ -33,31 +33,29 @@ const utilities = require("./utilities");
|
|
|
33
33
|
*/
|
|
34
34
|
class RandomShuffle extends pulumi.CustomResource {
|
|
35
35
|
constructor(name, argsOrState, opts) {
|
|
36
|
-
let
|
|
36
|
+
let resourceInputs = {};
|
|
37
37
|
opts = opts || {};
|
|
38
38
|
if (opts.id) {
|
|
39
39
|
const state = argsOrState;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
resourceInputs["inputs"] = state ? state.inputs : undefined;
|
|
41
|
+
resourceInputs["keepers"] = state ? state.keepers : undefined;
|
|
42
|
+
resourceInputs["resultCount"] = state ? state.resultCount : undefined;
|
|
43
|
+
resourceInputs["results"] = state ? state.results : undefined;
|
|
44
|
+
resourceInputs["seed"] = state ? state.seed : undefined;
|
|
45
45
|
}
|
|
46
46
|
else {
|
|
47
47
|
const args = argsOrState;
|
|
48
48
|
if ((!args || args.inputs === undefined) && !opts.urn) {
|
|
49
49
|
throw new Error("Missing required property 'inputs'");
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
resourceInputs["inputs"] = args ? args.inputs : undefined;
|
|
52
|
+
resourceInputs["keepers"] = args ? args.keepers : undefined;
|
|
53
|
+
resourceInputs["resultCount"] = args ? args.resultCount : undefined;
|
|
54
|
+
resourceInputs["seed"] = args ? args.seed : undefined;
|
|
55
|
+
resourceInputs["results"] = undefined /*out*/;
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
super(RandomShuffle.__pulumiType, name, inputs, opts);
|
|
57
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
58
|
+
super(RandomShuffle.__pulumiType, name, resourceInputs, opts);
|
|
61
59
|
}
|
|
62
60
|
/**
|
|
63
61
|
* Get an existing RandomShuffle resource's state with the given name, ID, and optional extra
|
package/randomShuffle.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"randomShuffle.js","sourceRoot":"","sources":["../randomShuff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,CAAC;;AA1BL,sCAsFC;AAxEG,gBAAgB;AACO,0BAAY,GAAG,0CAA0C,CAAC"}
|
package/randomString.d.ts
CHANGED
|
@@ -44,41 +44,45 @@ export declare class RandomString extends pulumi.CustomResource {
|
|
|
44
44
|
*/
|
|
45
45
|
static isInstance(obj: any): obj is RandomString;
|
|
46
46
|
/**
|
|
47
|
-
* Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider
|
|
47
|
+
* Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
|
|
48
|
+
* documentation](../index.html) for more information.
|
|
48
49
|
*/
|
|
49
50
|
readonly keepers: pulumi.Output<{
|
|
50
51
|
[key: string]: any;
|
|
51
52
|
} | undefined>;
|
|
52
53
|
/**
|
|
53
|
-
* The length of the string desired.
|
|
54
|
+
* The length of the string desired. The minimum value for length is 1 and, length must also be >= (`min_upper` +
|
|
55
|
+
* `min_lower` + `min_numeric` + `min_special`).
|
|
54
56
|
*/
|
|
55
57
|
readonly length: pulumi.Output<number>;
|
|
56
58
|
/**
|
|
57
|
-
* Include lowercase alphabet characters in the result.
|
|
59
|
+
* Include lowercase alphabet characters in the result. Default value is `true`.
|
|
58
60
|
*/
|
|
59
61
|
readonly lower: pulumi.Output<boolean | undefined>;
|
|
60
62
|
/**
|
|
61
|
-
* Minimum number of lowercase alphabet characters in the result.
|
|
63
|
+
* Minimum number of lowercase alphabet characters in the result. Default value is `0`.
|
|
62
64
|
*/
|
|
63
65
|
readonly minLower: pulumi.Output<number | undefined>;
|
|
64
66
|
/**
|
|
65
|
-
* Minimum number of numeric characters in the result.
|
|
67
|
+
* Minimum number of numeric characters in the result. Default value is `0`.
|
|
66
68
|
*/
|
|
67
69
|
readonly minNumeric: pulumi.Output<number | undefined>;
|
|
68
70
|
/**
|
|
69
|
-
* Minimum number of special characters in the result.
|
|
71
|
+
* Minimum number of special characters in the result. Default value is `0`.
|
|
70
72
|
*/
|
|
71
73
|
readonly minSpecial: pulumi.Output<number | undefined>;
|
|
72
74
|
/**
|
|
73
|
-
* Minimum number of uppercase alphabet characters in the result.
|
|
75
|
+
* Minimum number of uppercase alphabet characters in the result. Default value is `0`.
|
|
74
76
|
*/
|
|
75
77
|
readonly minUpper: pulumi.Output<number | undefined>;
|
|
76
78
|
/**
|
|
77
|
-
* Include numeric characters in the result.
|
|
79
|
+
* Include numeric characters in the result. Default value is `true`.
|
|
78
80
|
*/
|
|
79
81
|
readonly number: pulumi.Output<boolean | undefined>;
|
|
80
82
|
/**
|
|
81
|
-
* Supply your own list of special characters to use for string generation.
|
|
83
|
+
* Supply your own list of special characters to use for string generation. This overrides the default character list in
|
|
84
|
+
* the special argument. The `special` argument must still be set to true for any overwritten characters to be used in
|
|
85
|
+
* generation.
|
|
82
86
|
*/
|
|
83
87
|
readonly overrideSpecial: pulumi.Output<string | undefined>;
|
|
84
88
|
/**
|
|
@@ -86,11 +90,11 @@ export declare class RandomString extends pulumi.CustomResource {
|
|
|
86
90
|
*/
|
|
87
91
|
readonly result: pulumi.Output<string>;
|
|
88
92
|
/**
|
|
89
|
-
* Include special characters in the result. These are `!@#$%&*()-_=+[]{}
|
|
93
|
+
* Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`.
|
|
90
94
|
*/
|
|
91
95
|
readonly special: pulumi.Output<boolean | undefined>;
|
|
92
96
|
/**
|
|
93
|
-
* Include uppercase alphabet characters in the result.
|
|
97
|
+
* Include uppercase alphabet characters in the result. Default value is `true`.
|
|
94
98
|
*/
|
|
95
99
|
readonly upper: pulumi.Output<boolean | undefined>;
|
|
96
100
|
/**
|
|
@@ -107,41 +111,45 @@ export declare class RandomString extends pulumi.CustomResource {
|
|
|
107
111
|
*/
|
|
108
112
|
export interface RandomStringState {
|
|
109
113
|
/**
|
|
110
|
-
* Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider
|
|
114
|
+
* Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
|
|
115
|
+
* documentation](../index.html) for more information.
|
|
111
116
|
*/
|
|
112
117
|
keepers?: pulumi.Input<{
|
|
113
118
|
[key: string]: any;
|
|
114
119
|
}>;
|
|
115
120
|
/**
|
|
116
|
-
* The length of the string desired.
|
|
121
|
+
* The length of the string desired. The minimum value for length is 1 and, length must also be >= (`min_upper` +
|
|
122
|
+
* `min_lower` + `min_numeric` + `min_special`).
|
|
117
123
|
*/
|
|
118
124
|
length?: pulumi.Input<number>;
|
|
119
125
|
/**
|
|
120
|
-
* Include lowercase alphabet characters in the result.
|
|
126
|
+
* Include lowercase alphabet characters in the result. Default value is `true`.
|
|
121
127
|
*/
|
|
122
128
|
lower?: pulumi.Input<boolean>;
|
|
123
129
|
/**
|
|
124
|
-
* Minimum number of lowercase alphabet characters in the result.
|
|
130
|
+
* Minimum number of lowercase alphabet characters in the result. Default value is `0`.
|
|
125
131
|
*/
|
|
126
132
|
minLower?: pulumi.Input<number>;
|
|
127
133
|
/**
|
|
128
|
-
* Minimum number of numeric characters in the result.
|
|
134
|
+
* Minimum number of numeric characters in the result. Default value is `0`.
|
|
129
135
|
*/
|
|
130
136
|
minNumeric?: pulumi.Input<number>;
|
|
131
137
|
/**
|
|
132
|
-
* Minimum number of special characters in the result.
|
|
138
|
+
* Minimum number of special characters in the result. Default value is `0`.
|
|
133
139
|
*/
|
|
134
140
|
minSpecial?: pulumi.Input<number>;
|
|
135
141
|
/**
|
|
136
|
-
* Minimum number of uppercase alphabet characters in the result.
|
|
142
|
+
* Minimum number of uppercase alphabet characters in the result. Default value is `0`.
|
|
137
143
|
*/
|
|
138
144
|
minUpper?: pulumi.Input<number>;
|
|
139
145
|
/**
|
|
140
|
-
* Include numeric characters in the result.
|
|
146
|
+
* Include numeric characters in the result. Default value is `true`.
|
|
141
147
|
*/
|
|
142
148
|
number?: pulumi.Input<boolean>;
|
|
143
149
|
/**
|
|
144
|
-
* Supply your own list of special characters to use for string generation.
|
|
150
|
+
* Supply your own list of special characters to use for string generation. This overrides the default character list in
|
|
151
|
+
* the special argument. The `special` argument must still be set to true for any overwritten characters to be used in
|
|
152
|
+
* generation.
|
|
145
153
|
*/
|
|
146
154
|
overrideSpecial?: pulumi.Input<string>;
|
|
147
155
|
/**
|
|
@@ -149,11 +157,11 @@ export interface RandomStringState {
|
|
|
149
157
|
*/
|
|
150
158
|
result?: pulumi.Input<string>;
|
|
151
159
|
/**
|
|
152
|
-
* Include special characters in the result. These are `!@#$%&*()-_=+[]{}
|
|
160
|
+
* Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`.
|
|
153
161
|
*/
|
|
154
162
|
special?: pulumi.Input<boolean>;
|
|
155
163
|
/**
|
|
156
|
-
* Include uppercase alphabet characters in the result.
|
|
164
|
+
* Include uppercase alphabet characters in the result. Default value is `true`.
|
|
157
165
|
*/
|
|
158
166
|
upper?: pulumi.Input<boolean>;
|
|
159
167
|
}
|
|
@@ -162,49 +170,53 @@ export interface RandomStringState {
|
|
|
162
170
|
*/
|
|
163
171
|
export interface RandomStringArgs {
|
|
164
172
|
/**
|
|
165
|
-
* Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider
|
|
173
|
+
* Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
|
|
174
|
+
* documentation](../index.html) for more information.
|
|
166
175
|
*/
|
|
167
176
|
keepers?: pulumi.Input<{
|
|
168
177
|
[key: string]: any;
|
|
169
178
|
}>;
|
|
170
179
|
/**
|
|
171
|
-
* The length of the string desired.
|
|
180
|
+
* The length of the string desired. The minimum value for length is 1 and, length must also be >= (`min_upper` +
|
|
181
|
+
* `min_lower` + `min_numeric` + `min_special`).
|
|
172
182
|
*/
|
|
173
183
|
length: pulumi.Input<number>;
|
|
174
184
|
/**
|
|
175
|
-
* Include lowercase alphabet characters in the result.
|
|
185
|
+
* Include lowercase alphabet characters in the result. Default value is `true`.
|
|
176
186
|
*/
|
|
177
187
|
lower?: pulumi.Input<boolean>;
|
|
178
188
|
/**
|
|
179
|
-
* Minimum number of lowercase alphabet characters in the result.
|
|
189
|
+
* Minimum number of lowercase alphabet characters in the result. Default value is `0`.
|
|
180
190
|
*/
|
|
181
191
|
minLower?: pulumi.Input<number>;
|
|
182
192
|
/**
|
|
183
|
-
* Minimum number of numeric characters in the result.
|
|
193
|
+
* Minimum number of numeric characters in the result. Default value is `0`.
|
|
184
194
|
*/
|
|
185
195
|
minNumeric?: pulumi.Input<number>;
|
|
186
196
|
/**
|
|
187
|
-
* Minimum number of special characters in the result.
|
|
197
|
+
* Minimum number of special characters in the result. Default value is `0`.
|
|
188
198
|
*/
|
|
189
199
|
minSpecial?: pulumi.Input<number>;
|
|
190
200
|
/**
|
|
191
|
-
* Minimum number of uppercase alphabet characters in the result.
|
|
201
|
+
* Minimum number of uppercase alphabet characters in the result. Default value is `0`.
|
|
192
202
|
*/
|
|
193
203
|
minUpper?: pulumi.Input<number>;
|
|
194
204
|
/**
|
|
195
|
-
* Include numeric characters in the result.
|
|
205
|
+
* Include numeric characters in the result. Default value is `true`.
|
|
196
206
|
*/
|
|
197
207
|
number?: pulumi.Input<boolean>;
|
|
198
208
|
/**
|
|
199
|
-
* Supply your own list of special characters to use for string generation.
|
|
209
|
+
* Supply your own list of special characters to use for string generation. This overrides the default character list in
|
|
210
|
+
* the special argument. The `special` argument must still be set to true for any overwritten characters to be used in
|
|
211
|
+
* generation.
|
|
200
212
|
*/
|
|
201
213
|
overrideSpecial?: pulumi.Input<string>;
|
|
202
214
|
/**
|
|
203
|
-
* Include special characters in the result. These are `!@#$%&*()-_=+[]{}
|
|
215
|
+
* Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`.
|
|
204
216
|
*/
|
|
205
217
|
special?: pulumi.Input<boolean>;
|
|
206
218
|
/**
|
|
207
|
-
* Include uppercase alphabet characters in the result.
|
|
219
|
+
* Include uppercase alphabet characters in the result. Default value is `true`.
|
|
208
220
|
*/
|
|
209
221
|
upper?: pulumi.Input<boolean>;
|
|
210
222
|
}
|
package/randomString.js
CHANGED
|
@@ -35,45 +35,43 @@ const utilities = require("./utilities");
|
|
|
35
35
|
*/
|
|
36
36
|
class RandomString extends pulumi.CustomResource {
|
|
37
37
|
constructor(name, argsOrState, opts) {
|
|
38
|
-
let
|
|
38
|
+
let resourceInputs = {};
|
|
39
39
|
opts = opts || {};
|
|
40
40
|
if (opts.id) {
|
|
41
41
|
const state = argsOrState;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
42
|
+
resourceInputs["keepers"] = state ? state.keepers : undefined;
|
|
43
|
+
resourceInputs["length"] = state ? state.length : undefined;
|
|
44
|
+
resourceInputs["lower"] = state ? state.lower : undefined;
|
|
45
|
+
resourceInputs["minLower"] = state ? state.minLower : undefined;
|
|
46
|
+
resourceInputs["minNumeric"] = state ? state.minNumeric : undefined;
|
|
47
|
+
resourceInputs["minSpecial"] = state ? state.minSpecial : undefined;
|
|
48
|
+
resourceInputs["minUpper"] = state ? state.minUpper : undefined;
|
|
49
|
+
resourceInputs["number"] = state ? state.number : undefined;
|
|
50
|
+
resourceInputs["overrideSpecial"] = state ? state.overrideSpecial : undefined;
|
|
51
|
+
resourceInputs["result"] = state ? state.result : undefined;
|
|
52
|
+
resourceInputs["special"] = state ? state.special : undefined;
|
|
53
|
+
resourceInputs["upper"] = state ? state.upper : undefined;
|
|
54
54
|
}
|
|
55
55
|
else {
|
|
56
56
|
const args = argsOrState;
|
|
57
57
|
if ((!args || args.length === undefined) && !opts.urn) {
|
|
58
58
|
throw new Error("Missing required property 'length'");
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
60
|
+
resourceInputs["keepers"] = args ? args.keepers : undefined;
|
|
61
|
+
resourceInputs["length"] = args ? args.length : undefined;
|
|
62
|
+
resourceInputs["lower"] = args ? args.lower : undefined;
|
|
63
|
+
resourceInputs["minLower"] = args ? args.minLower : undefined;
|
|
64
|
+
resourceInputs["minNumeric"] = args ? args.minNumeric : undefined;
|
|
65
|
+
resourceInputs["minSpecial"] = args ? args.minSpecial : undefined;
|
|
66
|
+
resourceInputs["minUpper"] = args ? args.minUpper : undefined;
|
|
67
|
+
resourceInputs["number"] = args ? args.number : undefined;
|
|
68
|
+
resourceInputs["overrideSpecial"] = args ? args.overrideSpecial : undefined;
|
|
69
|
+
resourceInputs["special"] = args ? args.special : undefined;
|
|
70
|
+
resourceInputs["upper"] = args ? args.upper : undefined;
|
|
71
|
+
resourceInputs["result"] = undefined /*out*/;
|
|
72
72
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
super(RandomString.__pulumiType, name, inputs, opts);
|
|
73
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
74
|
+
super(RandomString.__pulumiType, name, resourceInputs, opts);
|
|
77
75
|
}
|
|
78
76
|
/**
|
|
79
77
|
* Get an existing RandomString resource's state with the given name, ID, and optional extra
|