@pulumi/random 4.8.0-alpha.1654273520 → 4.8.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.
@@ -1,5 +1,16 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
+ * > **Note:** Requires random provider version >= 2.2.0
4
+ *
5
+ * Identical to random.RandomString with the exception that the
6
+ * result is treated as sensitive and, thus, _not_ displayed in console output.
7
+ *
8
+ * > **Note:** All attributes including the generated password will be stored in
9
+ * the raw state as plain-text. [Read more about sensitive data in
10
+ * state](https://www.terraform.io/docs/state/sensitive-data.html).
11
+ *
12
+ * This resource *does* use a cryptographic random number generator.
13
+ *
3
14
  * ## Example Usage
4
15
  *
5
16
  * ```typescript
@@ -10,7 +21,7 @@ import * as pulumi from "@pulumi/pulumi";
10
21
  * const password = new random.RandomPassword("password", {
11
22
  * length: 16,
12
23
  * special: true,
13
- * overrideSpecial: `!#$%&*()-_=+[]{}<>:?`,
24
+ * overrideSpecial: `_%@`,
14
25
  * });
15
26
  * const example = new aws.rds.Instance("example", {
16
27
  * instanceClass: "db.t3.micro",
@@ -23,7 +34,7 @@ import * as pulumi from "@pulumi/pulumi";
23
34
  *
24
35
  * ## Import
25
36
  *
26
- * # Random Password can be imported by specifying the value of the string
37
+ * Random Password can be imported by specifying the value of the string
27
38
  *
28
39
  * ```sh
29
40
  * $ pulumi import random:index/randomPassword:RandomPassword password securepassword
@@ -45,10 +56,6 @@ export declare class RandomPassword extends pulumi.CustomResource {
45
56
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
46
57
  */
47
58
  static isInstance(obj: any): obj is RandomPassword;
48
- /**
49
- * A bcrypt hash of the generated random string.
50
- */
51
- readonly bcryptHash: pulumi.Output<string>;
52
59
  /**
53
60
  * Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
54
61
  * documentation](../index.html) for more information.
@@ -57,32 +64,31 @@ export declare class RandomPassword extends pulumi.CustomResource {
57
64
  [key: string]: any;
58
65
  } | undefined>;
59
66
  /**
60
- * The length of the string desired. The minimum value for length is 1 and, length must also be >= (`min_upper` +
61
- * `min_lower` + `min_numeric` + `min_special`).
67
+ * The length of the string desired.
62
68
  */
63
69
  readonly length: pulumi.Output<number>;
64
70
  /**
65
- * Include lowercase alphabet characters in the result. Default value is `true`.
71
+ * Include lowercase alphabet characters in the result.
66
72
  */
67
73
  readonly lower: pulumi.Output<boolean | undefined>;
68
74
  /**
69
- * Minimum number of lowercase alphabet characters in the result. Default value is `0`.
75
+ * Minimum number of lowercase alphabet characters in the result.
70
76
  */
71
77
  readonly minLower: pulumi.Output<number | undefined>;
72
78
  /**
73
- * Minimum number of numeric characters in the result. Default value is `0`.
79
+ * Minimum number of numeric characters in the result.
74
80
  */
75
81
  readonly minNumeric: pulumi.Output<number | undefined>;
76
82
  /**
77
- * Minimum number of special characters in the result. Default value is `0`.
83
+ * Minimum number of special characters in the result.
78
84
  */
79
85
  readonly minSpecial: pulumi.Output<number | undefined>;
80
86
  /**
81
- * Minimum number of uppercase alphabet characters in the result. Default value is `0`.
87
+ * Minimum number of uppercase alphabet characters in the result.
82
88
  */
83
89
  readonly minUpper: pulumi.Output<number | undefined>;
84
90
  /**
85
- * Include numeric characters in the result. Default value is `true`.
91
+ * Include numeric characters in the result.
86
92
  */
87
93
  readonly number: pulumi.Output<boolean | undefined>;
88
94
  /**
@@ -96,11 +102,11 @@ export declare class RandomPassword extends pulumi.CustomResource {
96
102
  */
97
103
  readonly result: pulumi.Output<string>;
98
104
  /**
99
- * Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`.
105
+ * Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`
100
106
  */
101
107
  readonly special: pulumi.Output<boolean | undefined>;
102
108
  /**
103
- * Include uppercase alphabet characters in the result. Default value is `true`.
109
+ * Include uppercase alphabet characters in the result.
104
110
  */
105
111
  readonly upper: pulumi.Output<boolean | undefined>;
106
112
  /**
@@ -116,10 +122,6 @@ export declare class RandomPassword extends pulumi.CustomResource {
116
122
  * Input properties used for looking up and filtering RandomPassword resources.
117
123
  */
118
124
  export interface RandomPasswordState {
119
- /**
120
- * A bcrypt hash of the generated random string.
121
- */
122
- bcryptHash?: pulumi.Input<string>;
123
125
  /**
124
126
  * Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
125
127
  * documentation](../index.html) for more information.
@@ -128,32 +130,31 @@ export interface RandomPasswordState {
128
130
  [key: string]: any;
129
131
  }>;
130
132
  /**
131
- * The length of the string desired. The minimum value for length is 1 and, length must also be >= (`min_upper` +
132
- * `min_lower` + `min_numeric` + `min_special`).
133
+ * The length of the string desired.
133
134
  */
134
135
  length?: pulumi.Input<number>;
135
136
  /**
136
- * Include lowercase alphabet characters in the result. Default value is `true`.
137
+ * Include lowercase alphabet characters in the result.
137
138
  */
138
139
  lower?: pulumi.Input<boolean>;
139
140
  /**
140
- * Minimum number of lowercase alphabet characters in the result. Default value is `0`.
141
+ * Minimum number of lowercase alphabet characters in the result.
141
142
  */
142
143
  minLower?: pulumi.Input<number>;
143
144
  /**
144
- * Minimum number of numeric characters in the result. Default value is `0`.
145
+ * Minimum number of numeric characters in the result.
145
146
  */
146
147
  minNumeric?: pulumi.Input<number>;
147
148
  /**
148
- * Minimum number of special characters in the result. Default value is `0`.
149
+ * Minimum number of special characters in the result.
149
150
  */
150
151
  minSpecial?: pulumi.Input<number>;
151
152
  /**
152
- * Minimum number of uppercase alphabet characters in the result. Default value is `0`.
153
+ * Minimum number of uppercase alphabet characters in the result.
153
154
  */
154
155
  minUpper?: pulumi.Input<number>;
155
156
  /**
156
- * Include numeric characters in the result. Default value is `true`.
157
+ * Include numeric characters in the result.
157
158
  */
158
159
  number?: pulumi.Input<boolean>;
159
160
  /**
@@ -167,11 +168,11 @@ export interface RandomPasswordState {
167
168
  */
168
169
  result?: pulumi.Input<string>;
169
170
  /**
170
- * Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`.
171
+ * Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`
171
172
  */
172
173
  special?: pulumi.Input<boolean>;
173
174
  /**
174
- * Include uppercase alphabet characters in the result. Default value is `true`.
175
+ * Include uppercase alphabet characters in the result.
175
176
  */
176
177
  upper?: pulumi.Input<boolean>;
177
178
  }
@@ -187,32 +188,31 @@ export interface RandomPasswordArgs {
187
188
  [key: string]: any;
188
189
  }>;
189
190
  /**
190
- * The length of the string desired. The minimum value for length is 1 and, length must also be >= (`min_upper` +
191
- * `min_lower` + `min_numeric` + `min_special`).
191
+ * The length of the string desired.
192
192
  */
193
193
  length: pulumi.Input<number>;
194
194
  /**
195
- * Include lowercase alphabet characters in the result. Default value is `true`.
195
+ * Include lowercase alphabet characters in the result.
196
196
  */
197
197
  lower?: pulumi.Input<boolean>;
198
198
  /**
199
- * Minimum number of lowercase alphabet characters in the result. Default value is `0`.
199
+ * Minimum number of lowercase alphabet characters in the result.
200
200
  */
201
201
  minLower?: pulumi.Input<number>;
202
202
  /**
203
- * Minimum number of numeric characters in the result. Default value is `0`.
203
+ * Minimum number of numeric characters in the result.
204
204
  */
205
205
  minNumeric?: pulumi.Input<number>;
206
206
  /**
207
- * Minimum number of special characters in the result. Default value is `0`.
207
+ * Minimum number of special characters in the result.
208
208
  */
209
209
  minSpecial?: pulumi.Input<number>;
210
210
  /**
211
- * Minimum number of uppercase alphabet characters in the result. Default value is `0`.
211
+ * Minimum number of uppercase alphabet characters in the result.
212
212
  */
213
213
  minUpper?: pulumi.Input<number>;
214
214
  /**
215
- * Include numeric characters in the result. Default value is `true`.
215
+ * Include numeric characters in the result.
216
216
  */
217
217
  number?: pulumi.Input<boolean>;
218
218
  /**
@@ -222,11 +222,11 @@ export interface RandomPasswordArgs {
222
222
  */
223
223
  overrideSpecial?: pulumi.Input<string>;
224
224
  /**
225
- * Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`. Default value is `true`.
225
+ * Include special characters in the result. These are `!@#$%&*()-_=+[]{}<>:?`
226
226
  */
227
227
  special?: pulumi.Input<boolean>;
228
228
  /**
229
- * Include uppercase alphabet characters in the result. Default value is `true`.
229
+ * Include uppercase alphabet characters in the result.
230
230
  */
231
231
  upper?: pulumi.Input<boolean>;
232
232
  }
package/randomPassword.js CHANGED
@@ -6,6 +6,17 @@ exports.RandomPassword = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
+ * > **Note:** Requires random provider version >= 2.2.0
10
+ *
11
+ * Identical to random.RandomString with the exception that the
12
+ * result is treated as sensitive and, thus, _not_ displayed in console output.
13
+ *
14
+ * > **Note:** All attributes including the generated password will be stored in
15
+ * the raw state as plain-text. [Read more about sensitive data in
16
+ * state](https://www.terraform.io/docs/state/sensitive-data.html).
17
+ *
18
+ * This resource *does* use a cryptographic random number generator.
19
+ *
9
20
  * ## Example Usage
10
21
  *
11
22
  * ```typescript
@@ -16,7 +27,7 @@ const utilities = require("./utilities");
16
27
  * const password = new random.RandomPassword("password", {
17
28
  * length: 16,
18
29
  * special: true,
19
- * overrideSpecial: `!#$%&*()-_=+[]{}<>:?`,
30
+ * overrideSpecial: `_%@`,
20
31
  * });
21
32
  * const example = new aws.rds.Instance("example", {
22
33
  * instanceClass: "db.t3.micro",
@@ -29,7 +40,7 @@ const utilities = require("./utilities");
29
40
  *
30
41
  * ## Import
31
42
  *
32
- * # Random Password can be imported by specifying the value of the string
43
+ * Random Password can be imported by specifying the value of the string
33
44
  *
34
45
  * ```sh
35
46
  * $ pulumi import random:index/randomPassword:RandomPassword password securepassword
@@ -41,7 +52,6 @@ class RandomPassword extends pulumi.CustomResource {
41
52
  opts = opts || {};
42
53
  if (opts.id) {
43
54
  const state = argsOrState;
44
- resourceInputs["bcryptHash"] = state ? state.bcryptHash : undefined;
45
55
  resourceInputs["keepers"] = state ? state.keepers : undefined;
46
56
  resourceInputs["length"] = state ? state.length : undefined;
47
57
  resourceInputs["lower"] = state ? state.lower : undefined;
@@ -71,7 +81,6 @@ class RandomPassword extends pulumi.CustomResource {
71
81
  resourceInputs["overrideSpecial"] = args ? args.overrideSpecial : undefined;
72
82
  resourceInputs["special"] = args ? args.special : undefined;
73
83
  resourceInputs["upper"] = args ? args.upper : undefined;
74
- resourceInputs["bcryptHash"] = undefined /*out*/;
75
84
  resourceInputs["result"] = undefined /*out*/;
76
85
  }
77
86
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
@@ -1 +1 @@
1
- {"version":3,"file":"randomPassword.js","sourceRoot":"","sources":["../randomPassword.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IA6FrD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAA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AAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;IA5HD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;;AA1BL,wCA8HC;AAhHG,gBAAgB;AACO,2BAAY,GAAG,4CAA4C,CAAC"}
package/randomPet.d.ts CHANGED
@@ -1,30 +1,39 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * The resource `random.RandomPet` generates random pet names that are intended to be used as unique identifiers for other resources.
3
+ * The resource `random.RandomPet` generates random pet names that are intended to be
4
+ * used as unique identifiers for other resources.
4
5
  *
5
- * This resource can be used in conjunction with resources that have the `createBeforeDestroy` lifecycle flag set, to avoid conflicts with unique names during the brief period where both the old and new resources exist concurrently.
6
+ * This resource can be used in conjunction with resources that have
7
+ * the `createBeforeDestroy` lifecycle flag set, to avoid conflicts with
8
+ * unique names during the brief period where both the old and new resources
9
+ * exist concurrently.
6
10
  *
7
11
  * ## Example Usage
8
12
  *
13
+ * The following example shows how to generate a unique pet name for an AWS EC2
14
+ * instance that changes each time a new AMI id is selected.
15
+ *
9
16
  * ```typescript
10
17
  * import * as pulumi from "@pulumi/pulumi";
11
18
  * import * as aws from "@pulumi/aws";
12
19
  * import * as random from "@pulumi/random";
13
20
  *
14
- * // The following example shows how to generate a unique pet name
15
- * // for an AWS EC2 instance that changes each time a new AMI id is
16
- * // selected.
17
- * const serverRandomPet = new random.RandomPet("serverRandomPet", {keepers: {
18
- * ami_id: _var.ami_id,
19
- * }});
20
- * const serverInstance = new aws.ec2.Instance("serverInstance", {
21
+ * const serverRandomPet = new random.RandomPet("server", {
22
+ * keepers: {
23
+ * // Generate a new pet name each time we switch to a new AMI id
24
+ * ami_id: var_ami_id,
25
+ * },
26
+ * });
27
+ * const serverInstance = new aws.ec2.Instance("server", {
28
+ * ami: serverRandomPet.keepers.apply(keepers => keepers.amiId),
21
29
  * tags: {
22
30
  * Name: pulumi.interpolate`web-server-${serverRandomPet.id}`,
23
31
  * },
24
- * ami: serverRandomPet.keepers.apply(keepers => keepers?.amiId),
25
32
  * });
26
- * // ... (other aws_instance arguments) ...
27
33
  * ```
34
+ *
35
+ * The result of the above will set the Name of the AWS Instance to
36
+ * `web-server-simple-snake`.
28
37
  */
29
38
  export declare class RandomPet extends pulumi.CustomResource {
30
39
  /**
@@ -43,14 +52,15 @@ export declare class RandomPet extends pulumi.CustomResource {
43
52
  */
44
53
  static isInstance(obj: any): obj is RandomPet;
45
54
  /**
46
- * Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
47
- * documentation](../index.html) for more information.
55
+ * Arbitrary map of values that, when changed, will
56
+ * trigger a new id to be generated. See
57
+ * the main provider documentation for more information.
48
58
  */
49
59
  readonly keepers: pulumi.Output<{
50
60
  [key: string]: any;
51
61
  } | undefined>;
52
62
  /**
53
- * The length (in words) of the pet name. Defaults to 2
63
+ * The length (in words) of the pet name.
54
64
  */
55
65
  readonly length: pulumi.Output<number | undefined>;
56
66
  /**
@@ -58,7 +68,7 @@ export declare class RandomPet extends pulumi.CustomResource {
58
68
  */
59
69
  readonly prefix: pulumi.Output<string | undefined>;
60
70
  /**
61
- * The character to separate words in the pet name. Defaults to "-"
71
+ * The character to separate words in the pet name.
62
72
  */
63
73
  readonly separator: pulumi.Output<string | undefined>;
64
74
  /**
@@ -75,14 +85,15 @@ export declare class RandomPet extends pulumi.CustomResource {
75
85
  */
76
86
  export interface RandomPetState {
77
87
  /**
78
- * Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
79
- * documentation](../index.html) for more information.
88
+ * Arbitrary map of values that, when changed, will
89
+ * trigger a new id to be generated. See
90
+ * the main provider documentation for more information.
80
91
  */
81
92
  keepers?: pulumi.Input<{
82
93
  [key: string]: any;
83
94
  }>;
84
95
  /**
85
- * The length (in words) of the pet name. Defaults to 2
96
+ * The length (in words) of the pet name.
86
97
  */
87
98
  length?: pulumi.Input<number>;
88
99
  /**
@@ -90,7 +101,7 @@ export interface RandomPetState {
90
101
  */
91
102
  prefix?: pulumi.Input<string>;
92
103
  /**
93
- * The character to separate words in the pet name. Defaults to "-"
104
+ * The character to separate words in the pet name.
94
105
  */
95
106
  separator?: pulumi.Input<string>;
96
107
  }
@@ -99,14 +110,15 @@ export interface RandomPetState {
99
110
  */
100
111
  export interface RandomPetArgs {
101
112
  /**
102
- * Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
103
- * documentation](../index.html) for more information.
113
+ * Arbitrary map of values that, when changed, will
114
+ * trigger a new id to be generated. See
115
+ * the main provider documentation for more information.
104
116
  */
105
117
  keepers?: pulumi.Input<{
106
118
  [key: string]: any;
107
119
  }>;
108
120
  /**
109
- * The length (in words) of the pet name. Defaults to 2
121
+ * The length (in words) of the pet name.
110
122
  */
111
123
  length?: pulumi.Input<number>;
112
124
  /**
@@ -114,7 +126,7 @@ export interface RandomPetArgs {
114
126
  */
115
127
  prefix?: pulumi.Input<string>;
116
128
  /**
117
- * The character to separate words in the pet name. Defaults to "-"
129
+ * The character to separate words in the pet name.
118
130
  */
119
131
  separator?: pulumi.Input<string>;
120
132
  }
package/randomPet.js CHANGED
@@ -6,31 +6,40 @@ exports.RandomPet = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * The resource `random.RandomPet` generates random pet names that are intended to be used as unique identifiers for other resources.
9
+ * The resource `random.RandomPet` generates random pet names that are intended to be
10
+ * used as unique identifiers for other resources.
10
11
  *
11
- * This resource can be used in conjunction with resources that have the `createBeforeDestroy` lifecycle flag set, to avoid conflicts with unique names during the brief period where both the old and new resources exist concurrently.
12
+ * This resource can be used in conjunction with resources that have
13
+ * the `createBeforeDestroy` lifecycle flag set, to avoid conflicts with
14
+ * unique names during the brief period where both the old and new resources
15
+ * exist concurrently.
12
16
  *
13
17
  * ## Example Usage
14
18
  *
19
+ * The following example shows how to generate a unique pet name for an AWS EC2
20
+ * instance that changes each time a new AMI id is selected.
21
+ *
15
22
  * ```typescript
16
23
  * import * as pulumi from "@pulumi/pulumi";
17
24
  * import * as aws from "@pulumi/aws";
18
25
  * import * as random from "@pulumi/random";
19
26
  *
20
- * // The following example shows how to generate a unique pet name
21
- * // for an AWS EC2 instance that changes each time a new AMI id is
22
- * // selected.
23
- * const serverRandomPet = new random.RandomPet("serverRandomPet", {keepers: {
24
- * ami_id: _var.ami_id,
25
- * }});
26
- * const serverInstance = new aws.ec2.Instance("serverInstance", {
27
+ * const serverRandomPet = new random.RandomPet("server", {
28
+ * keepers: {
29
+ * // Generate a new pet name each time we switch to a new AMI id
30
+ * ami_id: var_ami_id,
31
+ * },
32
+ * });
33
+ * const serverInstance = new aws.ec2.Instance("server", {
34
+ * ami: serverRandomPet.keepers.apply(keepers => keepers.amiId),
27
35
  * tags: {
28
36
  * Name: pulumi.interpolate`web-server-${serverRandomPet.id}`,
29
37
  * },
30
- * ami: serverRandomPet.keepers.apply(keepers => keepers?.amiId),
31
38
  * });
32
- * // ... (other aws_instance arguments) ...
33
39
  * ```
40
+ *
41
+ * The result of the above will set the Name of the AWS Instance to
42
+ * `web-server-simple-snake`.
34
43
  */
35
44
  class RandomPet extends pulumi.CustomResource {
36
45
  constructor(name, argsOrState, opts) {
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;IAsDhD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SACrE;aAAM;YACH,MAAM,IAAI,GAAG,WAAwC,CAAC;YACtD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OA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AoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;IAxED;;;;;;;;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,8BA0EC;AA5DG,gBAAgB;AACO,sBAAY,GAAG,kCAAkC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * The resource `random.RandomShuffle` generates a random permutation of a list of strings given as an argument.
3
+ * The resource `random.RandomShuffle` generates a random permutation of a list
4
+ * of strings given as an argument.
4
5
  *
5
6
  * ## Example Usage
6
7
  *
@@ -18,8 +19,11 @@ import * as pulumi from "@pulumi/pulumi";
18
19
  * ],
19
20
  * resultCount: 2,
20
21
  * });
21
- * const example = new aws.elb.LoadBalancer("example", {availabilityZones: [az.results]});
22
- * // ... and other aws_elb arguments ...
22
+ * const example = new aws.elb.LoadBalancer("example", {
23
+ * // Place the ELB in any two of the given availability zones, selected
24
+ * // at random.
25
+ * availabilityZones: az.results,
26
+ * });
23
27
  * ```
24
28
  */
25
29
  export declare class RandomShuffle extends pulumi.CustomResource {
@@ -43,16 +47,19 @@ export declare class RandomShuffle extends pulumi.CustomResource {
43
47
  */
44
48
  readonly inputs: pulumi.Output<string[]>;
45
49
  /**
46
- * Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
47
- * documentation](../index.html) for more information.
50
+ * Arbitrary map of values that, when changed, will
51
+ * trigger a new id to be generated. See
52
+ * the main provider documentation for more information.
48
53
  */
49
54
  readonly keepers: pulumi.Output<{
50
55
  [key: string]: any;
51
56
  } | undefined>;
52
57
  /**
53
- * The number of results to return. Defaults to the number of items in the `input` list. If fewer items are requested, some
54
- * elements will be excluded from the result. If more items are requested, items will be repeated in the result but not
55
- * more frequently than the number of items in the input list.
58
+ * The number of results to return. Defaults to
59
+ * the number of items in the `input` list. If fewer items are requested,
60
+ * some elements will be excluded from the result. If more items are requested,
61
+ * items will be repeated in the result but not more frequently than the number
62
+ * of items in the input list.
56
63
  */
57
64
  readonly resultCount: pulumi.Output<number | undefined>;
58
65
  /**
@@ -83,16 +90,19 @@ export interface RandomShuffleState {
83
90
  */
84
91
  inputs?: pulumi.Input<pulumi.Input<string>[]>;
85
92
  /**
86
- * Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
87
- * documentation](../index.html) for more information.
93
+ * Arbitrary map of values that, when changed, will
94
+ * trigger a new id to be generated. See
95
+ * the main provider documentation for more information.
88
96
  */
89
97
  keepers?: pulumi.Input<{
90
98
  [key: string]: any;
91
99
  }>;
92
100
  /**
93
- * The number of results to return. Defaults to the number of items in the `input` list. If fewer items are requested, some
94
- * elements will be excluded from the result. If more items are requested, items will be repeated in the result but not
95
- * more frequently than the number of items in the input list.
101
+ * The number of results to return. Defaults to
102
+ * the number of items in the `input` list. If fewer items are requested,
103
+ * some elements will be excluded from the result. If more items are requested,
104
+ * items will be repeated in the result but not more frequently than the number
105
+ * of items in the input list.
96
106
  */
97
107
  resultCount?: pulumi.Input<number>;
98
108
  /**
@@ -115,16 +125,19 @@ export interface RandomShuffleArgs {
115
125
  */
116
126
  inputs: pulumi.Input<pulumi.Input<string>[]>;
117
127
  /**
118
- * Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider
119
- * documentation](../index.html) for more information.
128
+ * Arbitrary map of values that, when changed, will
129
+ * trigger a new id to be generated. See
130
+ * the main provider documentation for more information.
120
131
  */
121
132
  keepers?: pulumi.Input<{
122
133
  [key: string]: any;
123
134
  }>;
124
135
  /**
125
- * The number of results to return. Defaults to the number of items in the `input` list. If fewer items are requested, some
126
- * elements will be excluded from the result. If more items are requested, items will be repeated in the result but not
127
- * more frequently than the number of items in the input list.
136
+ * The number of results to return. Defaults to
137
+ * the number of items in the `input` list. If fewer items are requested,
138
+ * some elements will be excluded from the result. If more items are requested,
139
+ * items will be repeated in the result but not more frequently than the number
140
+ * of items in the input list.
128
141
  */
129
142
  resultCount?: pulumi.Input<number>;
130
143
  /**
package/randomShuffle.js CHANGED
@@ -6,7 +6,8 @@ exports.RandomShuffle = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * The resource `random.RandomShuffle` generates a random permutation of a list of strings given as an argument.
9
+ * The resource `random.RandomShuffle` generates a random permutation of a list
10
+ * of strings given as an argument.
10
11
  *
11
12
  * ## Example Usage
12
13
  *
@@ -24,8 +25,11 @@ const utilities = require("./utilities");
24
25
  * ],
25
26
  * resultCount: 2,
26
27
  * });
27
- * const example = new aws.elb.LoadBalancer("example", {availabilityZones: [az.results]});
28
- * // ... and other aws_elb arguments ...
28
+ * const example = new aws.elb.LoadBalancer("example", {
29
+ * // Place the ELB in any two of the given availability zones, selected
30
+ * // at random.
31
+ * availabilityZones: az.results,
32
+ * });
29
33
  * ```
30
34
  */
31
35
  class RandomShuffle extends pulumi.CustomResource {
@@ -1 +1 @@
1
- {"version":3,"file":"randomShuffle.js","sourceRoot":"","sources":["../randomShuffle.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IA8DpD,YAAY,IAAY,E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