@pulumi/random 4.3.1 → 4.4.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/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 +40 -35
- 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 +39 -30
- 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,M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AY,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;AACH,MAAa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AAE,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":["../randomShuffle.ts"],"names":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1BL,sCAsFC;AAxEG,gBAAgB;AACO,0BAAY,GAAG,0CAA0C,CAAC"}
|
package/randomString.d.ts
CHANGED
|
@@ -44,7 +44,8 @@ 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;
|
|
@@ -54,31 +55,33 @@ export declare class RandomString extends pulumi.CustomResource {
|
|
|
54
55
|
*/
|
|
55
56
|
readonly length: pulumi.Output<number>;
|
|
56
57
|
/**
|
|
57
|
-
* Include lowercase alphabet characters in the result.
|
|
58
|
+
* Include lowercase alphabet characters in the result. Default value is `true`.
|
|
58
59
|
*/
|
|
59
60
|
readonly lower: pulumi.Output<boolean | undefined>;
|
|
60
61
|
/**
|
|
61
|
-
* Minimum number of lowercase alphabet characters in the result.
|
|
62
|
+
* Minimum number of lowercase alphabet characters in the result. Default value is `0`.
|
|
62
63
|
*/
|
|
63
64
|
readonly minLower: pulumi.Output<number | undefined>;
|
|
64
65
|
/**
|
|
65
|
-
* Minimum number of numeric characters in the result.
|
|
66
|
+
* Minimum number of numeric characters in the result. Default value is `0`.
|
|
66
67
|
*/
|
|
67
68
|
readonly minNumeric: pulumi.Output<number | undefined>;
|
|
68
69
|
/**
|
|
69
|
-
* Minimum number of special characters in the result.
|
|
70
|
+
* Minimum number of special characters in the result. Default value is `0`.
|
|
70
71
|
*/
|
|
71
72
|
readonly minSpecial: pulumi.Output<number | undefined>;
|
|
72
73
|
/**
|
|
73
|
-
* Minimum number of uppercase alphabet characters in the result.
|
|
74
|
+
* Minimum number of uppercase alphabet characters in the result. Default value is `0`.
|
|
74
75
|
*/
|
|
75
76
|
readonly minUpper: pulumi.Output<number | undefined>;
|
|
76
77
|
/**
|
|
77
|
-
* Include numeric characters in the result.
|
|
78
|
+
* Include numeric characters in the result. Default value is `true`.
|
|
78
79
|
*/
|
|
79
80
|
readonly number: pulumi.Output<boolean | undefined>;
|
|
80
81
|
/**
|
|
81
|
-
* Supply your own list of special characters to use for string generation.
|
|
82
|
+
* Supply your own list of special characters to use for string generation. This overrides the default character list in
|
|
83
|
+
* the special argument. The `special` argument must still be set to true for any overwritten characters to be used in
|
|
84
|
+
* generation.
|
|
82
85
|
*/
|
|
83
86
|
readonly overrideSpecial: pulumi.Output<string | undefined>;
|
|
84
87
|
/**
|
|
@@ -86,11 +89,11 @@ export declare class RandomString extends pulumi.CustomResource {
|
|
|
86
89
|
*/
|
|
87
90
|
readonly result: pulumi.Output<string>;
|
|
88
91
|
/**
|
|
89
|
-
* Include special characters in the result. These are `!@#$%&*()-_=+[]{}
|
|
92
|
+
* Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`.
|
|
90
93
|
*/
|
|
91
94
|
readonly special: pulumi.Output<boolean | undefined>;
|
|
92
95
|
/**
|
|
93
|
-
* Include uppercase alphabet characters in the result.
|
|
96
|
+
* Include uppercase alphabet characters in the result. Default value is `true`.
|
|
94
97
|
*/
|
|
95
98
|
readonly upper: pulumi.Output<boolean | undefined>;
|
|
96
99
|
/**
|
|
@@ -107,7 +110,8 @@ export declare class RandomString extends pulumi.CustomResource {
|
|
|
107
110
|
*/
|
|
108
111
|
export interface RandomStringState {
|
|
109
112
|
/**
|
|
110
|
-
* Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider
|
|
113
|
+
* Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
|
|
114
|
+
* documentation](../index.html) for more information.
|
|
111
115
|
*/
|
|
112
116
|
keepers?: pulumi.Input<{
|
|
113
117
|
[key: string]: any;
|
|
@@ -117,31 +121,33 @@ export interface RandomStringState {
|
|
|
117
121
|
*/
|
|
118
122
|
length?: pulumi.Input<number>;
|
|
119
123
|
/**
|
|
120
|
-
* Include lowercase alphabet characters in the result.
|
|
124
|
+
* Include lowercase alphabet characters in the result. Default value is `true`.
|
|
121
125
|
*/
|
|
122
126
|
lower?: pulumi.Input<boolean>;
|
|
123
127
|
/**
|
|
124
|
-
* Minimum number of lowercase alphabet characters in the result.
|
|
128
|
+
* Minimum number of lowercase alphabet characters in the result. Default value is `0`.
|
|
125
129
|
*/
|
|
126
130
|
minLower?: pulumi.Input<number>;
|
|
127
131
|
/**
|
|
128
|
-
* Minimum number of numeric characters in the result.
|
|
132
|
+
* Minimum number of numeric characters in the result. Default value is `0`.
|
|
129
133
|
*/
|
|
130
134
|
minNumeric?: pulumi.Input<number>;
|
|
131
135
|
/**
|
|
132
|
-
* Minimum number of special characters in the result.
|
|
136
|
+
* Minimum number of special characters in the result. Default value is `0`.
|
|
133
137
|
*/
|
|
134
138
|
minSpecial?: pulumi.Input<number>;
|
|
135
139
|
/**
|
|
136
|
-
* Minimum number of uppercase alphabet characters in the result.
|
|
140
|
+
* Minimum number of uppercase alphabet characters in the result. Default value is `0`.
|
|
137
141
|
*/
|
|
138
142
|
minUpper?: pulumi.Input<number>;
|
|
139
143
|
/**
|
|
140
|
-
* Include numeric characters in the result.
|
|
144
|
+
* Include numeric characters in the result. Default value is `true`.
|
|
141
145
|
*/
|
|
142
146
|
number?: pulumi.Input<boolean>;
|
|
143
147
|
/**
|
|
144
|
-
* Supply your own list of special characters to use for string generation.
|
|
148
|
+
* Supply your own list of special characters to use for string generation. This overrides the default character list in
|
|
149
|
+
* the special argument. The `special` argument must still be set to true for any overwritten characters to be used in
|
|
150
|
+
* generation.
|
|
145
151
|
*/
|
|
146
152
|
overrideSpecial?: pulumi.Input<string>;
|
|
147
153
|
/**
|
|
@@ -149,11 +155,11 @@ export interface RandomStringState {
|
|
|
149
155
|
*/
|
|
150
156
|
result?: pulumi.Input<string>;
|
|
151
157
|
/**
|
|
152
|
-
* Include special characters in the result. These are `!@#$%&*()-_=+[]{}
|
|
158
|
+
* Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`.
|
|
153
159
|
*/
|
|
154
160
|
special?: pulumi.Input<boolean>;
|
|
155
161
|
/**
|
|
156
|
-
* Include uppercase alphabet characters in the result.
|
|
162
|
+
* Include uppercase alphabet characters in the result. Default value is `true`.
|
|
157
163
|
*/
|
|
158
164
|
upper?: pulumi.Input<boolean>;
|
|
159
165
|
}
|
|
@@ -162,7 +168,8 @@ export interface RandomStringState {
|
|
|
162
168
|
*/
|
|
163
169
|
export interface RandomStringArgs {
|
|
164
170
|
/**
|
|
165
|
-
* Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider
|
|
171
|
+
* Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
|
|
172
|
+
* documentation](../index.html) for more information.
|
|
166
173
|
*/
|
|
167
174
|
keepers?: pulumi.Input<{
|
|
168
175
|
[key: string]: any;
|
|
@@ -172,39 +179,41 @@ export interface RandomStringArgs {
|
|
|
172
179
|
*/
|
|
173
180
|
length: pulumi.Input<number>;
|
|
174
181
|
/**
|
|
175
|
-
* Include lowercase alphabet characters in the result.
|
|
182
|
+
* Include lowercase alphabet characters in the result. Default value is `true`.
|
|
176
183
|
*/
|
|
177
184
|
lower?: pulumi.Input<boolean>;
|
|
178
185
|
/**
|
|
179
|
-
* Minimum number of lowercase alphabet characters in the result.
|
|
186
|
+
* Minimum number of lowercase alphabet characters in the result. Default value is `0`.
|
|
180
187
|
*/
|
|
181
188
|
minLower?: pulumi.Input<number>;
|
|
182
189
|
/**
|
|
183
|
-
* Minimum number of numeric characters in the result.
|
|
190
|
+
* Minimum number of numeric characters in the result. Default value is `0`.
|
|
184
191
|
*/
|
|
185
192
|
minNumeric?: pulumi.Input<number>;
|
|
186
193
|
/**
|
|
187
|
-
* Minimum number of special characters in the result.
|
|
194
|
+
* Minimum number of special characters in the result. Default value is `0`.
|
|
188
195
|
*/
|
|
189
196
|
minSpecial?: pulumi.Input<number>;
|
|
190
197
|
/**
|
|
191
|
-
* Minimum number of uppercase alphabet characters in the result.
|
|
198
|
+
* Minimum number of uppercase alphabet characters in the result. Default value is `0`.
|
|
192
199
|
*/
|
|
193
200
|
minUpper?: pulumi.Input<number>;
|
|
194
201
|
/**
|
|
195
|
-
* Include numeric characters in the result.
|
|
202
|
+
* Include numeric characters in the result. Default value is `true`.
|
|
196
203
|
*/
|
|
197
204
|
number?: pulumi.Input<boolean>;
|
|
198
205
|
/**
|
|
199
|
-
* Supply your own list of special characters to use for string generation.
|
|
206
|
+
* Supply your own list of special characters to use for string generation. This overrides the default character list in
|
|
207
|
+
* the special argument. The `special` argument must still be set to true for any overwritten characters to be used in
|
|
208
|
+
* generation.
|
|
200
209
|
*/
|
|
201
210
|
overrideSpecial?: pulumi.Input<string>;
|
|
202
211
|
/**
|
|
203
|
-
* Include special characters in the result. These are `!@#$%&*()-_=+[]{}
|
|
212
|
+
* Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`.
|
|
204
213
|
*/
|
|
205
214
|
special?: pulumi.Input<boolean>;
|
|
206
215
|
/**
|
|
207
|
-
* Include uppercase alphabet characters in the result.
|
|
216
|
+
* Include uppercase alphabet characters in the result. Default value is `true`.
|
|
208
217
|
*/
|
|
209
218
|
upper?: pulumi.Input<boolean>;
|
|
210
219
|
}
|
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
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"randomString.js","sourceRoot":"","sources":["../randomString.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IAwFnD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,QAAQ,CAAC,GAAG,KA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