@pulumi/random 4.3.0 → 4.4.1

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 CHANGED
@@ -3,7 +3,11 @@
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
5
  if (k2 === undefined) k2 = k;
6
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
7
11
  }) : (function(o, m, k, k2) {
8
12
  if (k2 === undefined) k2 = k;
9
13
  o[k2] = m[k];
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,kBAAkB;AAClB,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,mDAAiC;AACjC,8CAA4B;AAC5B,kDAAgC;AAChC,iDAA+B;AAC/B,+CAA6B;AAE7B,gCAAgC;AAChC,yCAAsC;AACtC,mDAAgD;AAChD,qDAAkD;AAClD,2CAAwC;AACxC,mDAAgD;AAChD,iDAA8C;AAC9C,6CAA0C;AAE1C,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,gCAAgC;gBACjC,OAAO,IAAI,mBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD,KAAK,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Q,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAA;AAC9E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,QAAQ,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAA;AAE5E,yCAAsC;AAEtC,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,QAAQ,EAAE;IAC7C,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,yBAAyB,EAAE;YACpC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,mBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/random",
3
- "version": "v4.3.0",
3
+ "version": "v4.4.1",
4
4
  "description": "A Pulumi package to safely use randomness in Pulumi programs.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -11,7 +11,7 @@
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
13
  "build": "tsc",
14
- "install": "node scripts/install-pulumi-plugin.js resource random v4.3.0"
14
+ "install": "node scripts/install-pulumi-plugin.js resource random v4.4.1"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0"
package/package.json.bak CHANGED
@@ -10,7 +10,8 @@
10
10
  "repository": "https://github.com/pulumi/pulumi-random",
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
- "build": "tsc"
13
+ "build": "tsc",
14
+ "install": "node scripts/install-pulumi-plugin.js resource random ${VERSION}"
14
15
  },
15
16
  "dependencies": {
16
17
  "@pulumi/pulumi": "^3.0.0"
package/package.json.dev CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/random",
3
- "version": "v4.3.0",
3
+ "version": "v4.4.1",
4
4
  "description": "A Pulumi package to safely use randomness in Pulumi programs.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -10,7 +10,8 @@
10
10
  "repository": "https://github.com/pulumi/pulumi-random",
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
- "build": "tsc"
13
+ "build": "tsc",
14
+ "install": "node scripts/install-pulumi-plugin.js resource random v4.4.1"
14
15
  },
15
16
  "dependencies": {
16
17
  "@pulumi/pulumi": "^3.0.0"
package/provider.js CHANGED
@@ -20,14 +20,12 @@ class Provider extends pulumi.ProviderResource {
20
20
  * @param opts A bag of options that control this resource's behavior.
21
21
  */
22
22
  constructor(name, args, opts) {
23
- let inputs = {};
23
+ let resourceInputs = {};
24
24
  opts = opts || {};
25
25
  {
26
26
  }
27
- if (!opts.version) {
28
- opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
29
- }
30
- super(Provider.__pulumiType, name, inputs, opts);
27
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
28
+ super(Provider.__pulumiType, name, resourceInputs, opts);
31
29
  }
32
30
  /**
33
31
  * Returns true if the given object is an instance of Provider. This is designed to work even
package/provider.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAgBjD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;QACxE,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;SACC;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,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CAAC"}
package/randomId.d.ts CHANGED
@@ -72,7 +72,8 @@ export declare class RandomId extends pulumi.CustomResource {
72
72
  */
73
73
  readonly b64Std: pulumi.Output<string>;
74
74
  /**
75
- * The generated id presented in base64, using the URL-friendly character set: case-sensitive letters, digits and the characters `_` and `-`.
75
+ * The generated id presented in base64, using the URL-friendly character set: case-sensitive letters, digits and the
76
+ * characters `_` and `-`.
76
77
  */
77
78
  readonly b64Url: pulumi.Output<string>;
78
79
  /**
@@ -84,17 +85,20 @@ export declare class RandomId extends pulumi.CustomResource {
84
85
  */
85
86
  readonly dec: pulumi.Output<string>;
86
87
  /**
87
- * The generated id presented in padded hexadecimal digits. This result will always be twice as long as the requested byte length.
88
+ * The generated id presented in padded hexadecimal digits. This result will always be twice as long as the requested byte
89
+ * length.
88
90
  */
89
91
  readonly hex: pulumi.Output<string>;
90
92
  /**
91
- * Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
93
+ * Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
94
+ * documentation](../index.html) for more information.
92
95
  */
93
96
  readonly keepers: pulumi.Output<{
94
97
  [key: string]: any;
95
98
  } | undefined>;
96
99
  /**
97
- * Arbitrary string to prefix the output value with. This string is supplied as-is, meaning it is not guaranteed to be URL-safe or base64 encoded.
100
+ * Arbitrary string to prefix the output value with. This string is supplied as-is, meaning it is not guaranteed to be
101
+ * URL-safe or base64 encoded.
98
102
  */
99
103
  readonly prefix: pulumi.Output<string | undefined>;
100
104
  /**
@@ -115,7 +119,8 @@ export interface RandomIdState {
115
119
  */
116
120
  b64Std?: pulumi.Input<string>;
117
121
  /**
118
- * The generated id presented in base64, using the URL-friendly character set: case-sensitive letters, digits and the characters `_` and `-`.
122
+ * The generated id presented in base64, using the URL-friendly character set: case-sensitive letters, digits and the
123
+ * characters `_` and `-`.
119
124
  */
120
125
  b64Url?: pulumi.Input<string>;
121
126
  /**
@@ -127,17 +132,20 @@ export interface RandomIdState {
127
132
  */
128
133
  dec?: pulumi.Input<string>;
129
134
  /**
130
- * The generated id presented in padded hexadecimal digits. This result will always be twice as long as the requested byte length.
135
+ * The generated id presented in padded hexadecimal digits. This result will always be twice as long as the requested byte
136
+ * length.
131
137
  */
132
138
  hex?: pulumi.Input<string>;
133
139
  /**
134
- * Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
140
+ * Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
141
+ * documentation](../index.html) for more information.
135
142
  */
136
143
  keepers?: pulumi.Input<{
137
144
  [key: string]: any;
138
145
  }>;
139
146
  /**
140
- * Arbitrary string to prefix the output value with. This string is supplied as-is, meaning it is not guaranteed to be URL-safe or base64 encoded.
147
+ * Arbitrary string to prefix the output value with. This string is supplied as-is, meaning it is not guaranteed to be
148
+ * URL-safe or base64 encoded.
141
149
  */
142
150
  prefix?: pulumi.Input<string>;
143
151
  }
@@ -150,13 +158,15 @@ export interface RandomIdArgs {
150
158
  */
151
159
  byteLength: pulumi.Input<number>;
152
160
  /**
153
- * Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
161
+ * Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
162
+ * documentation](../index.html) for more information.
154
163
  */
155
164
  keepers?: pulumi.Input<{
156
165
  [key: string]: any;
157
166
  }>;
158
167
  /**
159
- * Arbitrary string to prefix the output value with. This string is supplied as-is, meaning it is not guaranteed to be URL-safe or base64 encoded.
168
+ * Arbitrary string to prefix the output value with. This string is supplied as-is, meaning it is not guaranteed to be
169
+ * URL-safe or base64 encoded.
160
170
  */
161
171
  prefix?: pulumi.Input<string>;
162
172
  }
package/randomId.js CHANGED
@@ -59,35 +59,33 @@ const utilities = require("./utilities");
59
59
  */
60
60
  class RandomId extends pulumi.CustomResource {
61
61
  constructor(name, argsOrState, opts) {
62
- let inputs = {};
62
+ let resourceInputs = {};
63
63
  opts = opts || {};
64
64
  if (opts.id) {
65
65
  const state = argsOrState;
66
- inputs["b64Std"] = state ? state.b64Std : undefined;
67
- inputs["b64Url"] = state ? state.b64Url : undefined;
68
- inputs["byteLength"] = state ? state.byteLength : undefined;
69
- inputs["dec"] = state ? state.dec : undefined;
70
- inputs["hex"] = state ? state.hex : undefined;
71
- inputs["keepers"] = state ? state.keepers : undefined;
72
- inputs["prefix"] = state ? state.prefix : undefined;
66
+ resourceInputs["b64Std"] = state ? state.b64Std : undefined;
67
+ resourceInputs["b64Url"] = state ? state.b64Url : undefined;
68
+ resourceInputs["byteLength"] = state ? state.byteLength : undefined;
69
+ resourceInputs["dec"] = state ? state.dec : undefined;
70
+ resourceInputs["hex"] = state ? state.hex : undefined;
71
+ resourceInputs["keepers"] = state ? state.keepers : undefined;
72
+ resourceInputs["prefix"] = state ? state.prefix : undefined;
73
73
  }
74
74
  else {
75
75
  const args = argsOrState;
76
76
  if ((!args || args.byteLength === undefined) && !opts.urn) {
77
77
  throw new Error("Missing required property 'byteLength'");
78
78
  }
79
- inputs["byteLength"] = args ? args.byteLength : undefined;
80
- inputs["keepers"] = args ? args.keepers : undefined;
81
- inputs["prefix"] = args ? args.prefix : undefined;
82
- inputs["b64Std"] = undefined /*out*/;
83
- inputs["b64Url"] = undefined /*out*/;
84
- inputs["dec"] = undefined /*out*/;
85
- inputs["hex"] = undefined /*out*/;
79
+ resourceInputs["byteLength"] = args ? args.byteLength : undefined;
80
+ resourceInputs["keepers"] = args ? args.keepers : undefined;
81
+ resourceInputs["prefix"] = args ? args.prefix : undefined;
82
+ resourceInputs["b64Std"] = undefined /*out*/;
83
+ resourceInputs["b64Url"] = undefined /*out*/;
84
+ resourceInputs["dec"] = undefined /*out*/;
85
+ resourceInputs["hex"] = undefined /*out*/;
86
86
  }
87
- if (!opts.version) {
88
- opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
89
- }
90
- super(RandomId.__pulumiType, name, inputs, opts);
87
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
88
+ super(RandomId.__pulumiType, name, resourceInputs, opts);
91
89
  }
92
90
  /**
93
91
  * Get an existing RandomId resource's state with the given name, ID, and optional extra
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAiE/C,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,MAAM,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9C,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9C,MAAM,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,C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QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IA/FD;;;;;;;;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,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AA1BL,4BAiGC;AAnFG,gBAAgB;AACO,qBAAY,GAAG,gCAAgC,CAAC"}
@@ -56,7 +56,8 @@ export declare class RandomInteger extends pulumi.CustomResource {
56
56
  */
57
57
  static isInstance(obj: any): obj is RandomInteger;
58
58
  /**
59
- * Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
59
+ * Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
60
+ * documentation](../index.html) for more information.
60
61
  */
61
62
  readonly keepers: pulumi.Output<{
62
63
  [key: string]: any;
@@ -91,7 +92,8 @@ export declare class RandomInteger extends pulumi.CustomResource {
91
92
  */
92
93
  export interface RandomIntegerState {
93
94
  /**
94
- * Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
95
+ * Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
96
+ * documentation](../index.html) for more information.
95
97
  */
96
98
  keepers?: pulumi.Input<{
97
99
  [key: string]: any;
@@ -118,7 +120,8 @@ export interface RandomIntegerState {
118
120
  */
119
121
  export interface RandomIntegerArgs {
120
122
  /**
121
- * Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
123
+ * Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
124
+ * documentation](../index.html) for more information.
122
125
  */
123
126
  keepers?: pulumi.Input<{
124
127
  [key: string]: any;
package/randomInteger.js CHANGED
@@ -47,15 +47,15 @@ const utilities = require("./utilities");
47
47
  */
48
48
  class RandomInteger extends pulumi.CustomResource {
49
49
  constructor(name, argsOrState, opts) {
50
- let inputs = {};
50
+ let resourceInputs = {};
51
51
  opts = opts || {};
52
52
  if (opts.id) {
53
53
  const state = argsOrState;
54
- inputs["keepers"] = state ? state.keepers : undefined;
55
- inputs["max"] = state ? state.max : undefined;
56
- inputs["min"] = state ? state.min : undefined;
57
- inputs["result"] = state ? state.result : undefined;
58
- inputs["seed"] = state ? state.seed : undefined;
54
+ resourceInputs["keepers"] = state ? state.keepers : undefined;
55
+ resourceInputs["max"] = state ? state.max : undefined;
56
+ resourceInputs["min"] = state ? state.min : undefined;
57
+ resourceInputs["result"] = state ? state.result : undefined;
58
+ resourceInputs["seed"] = state ? state.seed : undefined;
59
59
  }
60
60
  else {
61
61
  const args = argsOrState;
@@ -65,16 +65,14 @@ class RandomInteger extends pulumi.CustomResource {
65
65
  if ((!args || args.min === undefined) && !opts.urn) {
66
66
  throw new Error("Missing required property 'min'");
67
67
  }
68
- inputs["keepers"] = args ? args.keepers : undefined;
69
- inputs["max"] = args ? args.max : undefined;
70
- inputs["min"] = args ? args.min : undefined;
71
- inputs["seed"] = args ? args.seed : undefined;
72
- inputs["result"] = undefined /*out*/;
68
+ resourceInputs["keepers"] = args ? args.keepers : undefined;
69
+ resourceInputs["max"] = args ? args.max : undefined;
70
+ resourceInputs["min"] = args ? args.min : undefined;
71
+ resourceInputs["seed"] = args ? args.seed : undefined;
72
+ resourceInputs["result"] = undefined /*out*/;
73
73
  }
74
- if (!opts.version) {
75
- opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
76
- }
77
- super(RandomInteger.__pulumiType, name, inputs, opts);
74
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
75
+ super(RandomInteger.__pulumiType, name, resourceInputs, opts);
78
76
  }
79
77
  /**
80
78
  * Get an existing RandomInteger resource's state with the given name, ID, and optional extra
@@ -1 +1 @@
1
- {"version":3,"file":"randomInteger.js","sourceRoot":"","sources":["../randomInteger.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IAyDpD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,MAAM,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9C,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9C,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACnD;aAAM;YACH,MAAM,IAAI,GAAG,WAA4C,CAAC;YAC1D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,GAAG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,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;;AA1BL,sCAqFC;AAvEG,gBAAgB;AACO,0BAAY,GAAG,0CAA0C,CAAC"}
@@ -1,9 +1,5 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * Identical to random.RandomString with the exception that the result is treated as sensitive and, thus, _not_ displayed in console output.
4
- *
5
- * This resource *does* use a cryptographic random number generator.
6
- *
7
3
  * ## Example Usage
8
4
  *
9
5
  * ```typescript
@@ -14,7 +10,7 @@ import * as pulumi from "@pulumi/pulumi";
14
10
  * const password = new random.RandomPassword("password", {
15
11
  * length: 16,
16
12
  * special: true,
17
- * overrideSpecial: `_%@`,
13
+ * overrideSpecial: `!#$%&*()-_=+[]{}<>:?`,
18
14
  * });
19
15
  * const example = new aws.rds.Instance("example", {
20
16
  * instanceClass: "db.t3.micro",
@@ -50,7 +46,8 @@ export declare class RandomPassword extends pulumi.CustomResource {
50
46
  */
51
47
  static isInstance(obj: any): obj is RandomPassword;
52
48
  /**
53
- * Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
49
+ * Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
50
+ * documentation](../index.html) for more information.
54
51
  */
55
52
  readonly keepers: pulumi.Output<{
56
53
  [key: string]: any;
@@ -60,31 +57,33 @@ export declare class RandomPassword extends pulumi.CustomResource {
60
57
  */
61
58
  readonly length: pulumi.Output<number>;
62
59
  /**
63
- * Include lowercase alphabet characters in the result.
60
+ * Include lowercase alphabet characters in the result. Default value is `true`.
64
61
  */
65
62
  readonly lower: pulumi.Output<boolean | undefined>;
66
63
  /**
67
- * Minimum number of lowercase alphabet characters in the result.
64
+ * Minimum number of lowercase alphabet characters in the result. Default value is `0`.
68
65
  */
69
66
  readonly minLower: pulumi.Output<number | undefined>;
70
67
  /**
71
- * Minimum number of numeric characters in the result.
68
+ * Minimum number of numeric characters in the result. Default value is `0`.
72
69
  */
73
70
  readonly minNumeric: pulumi.Output<number | undefined>;
74
71
  /**
75
- * Minimum number of special characters in the result.
72
+ * Minimum number of special characters in the result. Default value is `0`.
76
73
  */
77
74
  readonly minSpecial: pulumi.Output<number | undefined>;
78
75
  /**
79
- * Minimum number of uppercase alphabet characters in the result.
76
+ * Minimum number of uppercase alphabet characters in the result. Default value is `0`.
80
77
  */
81
78
  readonly minUpper: pulumi.Output<number | undefined>;
82
79
  /**
83
- * Include numeric characters in the result.
80
+ * Include numeric characters in the result. Default value is `true`.
84
81
  */
85
82
  readonly number: pulumi.Output<boolean | undefined>;
86
83
  /**
87
- * Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation.
84
+ * Supply your own list of special characters to use for string generation. This overrides the default character list in
85
+ * the special argument. The `special` argument must still be set to true for any overwritten characters to be used in
86
+ * generation.
88
87
  */
89
88
  readonly overrideSpecial: pulumi.Output<string | undefined>;
90
89
  /**
@@ -92,11 +91,11 @@ export declare class RandomPassword extends pulumi.CustomResource {
92
91
  */
93
92
  readonly result: pulumi.Output<string>;
94
93
  /**
95
- * Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`
94
+ * Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`.
96
95
  */
97
96
  readonly special: pulumi.Output<boolean | undefined>;
98
97
  /**
99
- * Include uppercase alphabet characters in the result.
98
+ * Include uppercase alphabet characters in the result. Default value is `true`.
100
99
  */
101
100
  readonly upper: pulumi.Output<boolean | undefined>;
102
101
  /**
@@ -113,7 +112,8 @@ export declare class RandomPassword extends pulumi.CustomResource {
113
112
  */
114
113
  export interface RandomPasswordState {
115
114
  /**
116
- * Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
115
+ * Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
116
+ * documentation](../index.html) for more information.
117
117
  */
118
118
  keepers?: pulumi.Input<{
119
119
  [key: string]: any;
@@ -123,31 +123,33 @@ export interface RandomPasswordState {
123
123
  */
124
124
  length?: pulumi.Input<number>;
125
125
  /**
126
- * Include lowercase alphabet characters in the result.
126
+ * Include lowercase alphabet characters in the result. Default value is `true`.
127
127
  */
128
128
  lower?: pulumi.Input<boolean>;
129
129
  /**
130
- * Minimum number of lowercase alphabet characters in the result.
130
+ * Minimum number of lowercase alphabet characters in the result. Default value is `0`.
131
131
  */
132
132
  minLower?: pulumi.Input<number>;
133
133
  /**
134
- * Minimum number of numeric characters in the result.
134
+ * Minimum number of numeric characters in the result. Default value is `0`.
135
135
  */
136
136
  minNumeric?: pulumi.Input<number>;
137
137
  /**
138
- * Minimum number of special characters in the result.
138
+ * Minimum number of special characters in the result. Default value is `0`.
139
139
  */
140
140
  minSpecial?: pulumi.Input<number>;
141
141
  /**
142
- * Minimum number of uppercase alphabet characters in the result.
142
+ * Minimum number of uppercase alphabet characters in the result. Default value is `0`.
143
143
  */
144
144
  minUpper?: pulumi.Input<number>;
145
145
  /**
146
- * Include numeric characters in the result.
146
+ * Include numeric characters in the result. Default value is `true`.
147
147
  */
148
148
  number?: pulumi.Input<boolean>;
149
149
  /**
150
- * Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in 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.
151
153
  */
152
154
  overrideSpecial?: pulumi.Input<string>;
153
155
  /**
@@ -155,11 +157,11 @@ export interface RandomPasswordState {
155
157
  */
156
158
  result?: pulumi.Input<string>;
157
159
  /**
158
- * Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`
160
+ * Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`.
159
161
  */
160
162
  special?: pulumi.Input<boolean>;
161
163
  /**
162
- * Include uppercase alphabet characters in the result.
164
+ * Include uppercase alphabet characters in the result. Default value is `true`.
163
165
  */
164
166
  upper?: pulumi.Input<boolean>;
165
167
  }
@@ -168,7 +170,8 @@ export interface RandomPasswordState {
168
170
  */
169
171
  export interface RandomPasswordArgs {
170
172
  /**
171
- * Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
173
+ * Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
174
+ * documentation](../index.html) for more information.
172
175
  */
173
176
  keepers?: pulumi.Input<{
174
177
  [key: string]: any;
@@ -178,39 +181,41 @@ export interface RandomPasswordArgs {
178
181
  */
179
182
  length: pulumi.Input<number>;
180
183
  /**
181
- * Include lowercase alphabet characters in the result.
184
+ * Include lowercase alphabet characters in the result. Default value is `true`.
182
185
  */
183
186
  lower?: pulumi.Input<boolean>;
184
187
  /**
185
- * Minimum number of lowercase alphabet characters in the result.
188
+ * Minimum number of lowercase alphabet characters in the result. Default value is `0`.
186
189
  */
187
190
  minLower?: pulumi.Input<number>;
188
191
  /**
189
- * Minimum number of numeric characters in the result.
192
+ * Minimum number of numeric characters in the result. Default value is `0`.
190
193
  */
191
194
  minNumeric?: pulumi.Input<number>;
192
195
  /**
193
- * Minimum number of special characters in the result.
196
+ * Minimum number of special characters in the result. Default value is `0`.
194
197
  */
195
198
  minSpecial?: pulumi.Input<number>;
196
199
  /**
197
- * Minimum number of uppercase alphabet characters in the result.
200
+ * Minimum number of uppercase alphabet characters in the result. Default value is `0`.
198
201
  */
199
202
  minUpper?: pulumi.Input<number>;
200
203
  /**
201
- * Include numeric characters in the result.
204
+ * Include numeric characters in the result. Default value is `true`.
202
205
  */
203
206
  number?: pulumi.Input<boolean>;
204
207
  /**
205
- * Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The `special` argument must still be set to true for any overwritten characters to be used in generation.
208
+ * Supply your own list of special characters to use for string generation. This overrides the default character list in
209
+ * the special argument. The `special` argument must still be set to true for any overwritten characters to be used in
210
+ * generation.
206
211
  */
207
212
  overrideSpecial?: pulumi.Input<string>;
208
213
  /**
209
- * Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`
214
+ * Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`.
210
215
  */
211
216
  special?: pulumi.Input<boolean>;
212
217
  /**
213
- * Include uppercase alphabet characters in the result.
218
+ * Include uppercase alphabet characters in the result. Default value is `true`.
214
219
  */
215
220
  upper?: pulumi.Input<boolean>;
216
221
  }