@pulumi/random 4.9.0 → 4.10.0-alpha.1674847484

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/randomUuid.d.ts CHANGED
@@ -1,11 +1,15 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * The resource `random.RandomUuid` generates random uuid string that is intended to be used as unique identifiers for other resources.
3
+ * The resource `random.RandomUuid` generates random uuid string that is intended to be
4
+ * used as unique identifiers for other resources.
4
5
  *
5
- * This resource uses [hashicorp/go-uuid](https://github.com/hashicorp/go-uuid) to generate a UUID-formatted string for use with services needed a unique string identifier.
6
+ * This resource uses the `hashicorp/go-uuid` to generate a UUID-formatted string
7
+ * for use with services needed a unique string identifier.
6
8
  *
7
9
  * ## Example Usage
8
10
  *
11
+ * The following example shows how to generate a unique name for an Azure Resource Group.
12
+ *
9
13
  * ```typescript
10
14
  * import * as pulumi from "@pulumi/pulumi";
11
15
  * import * as azure from "@pulumi/azure";
@@ -17,7 +21,7 @@ import * as pulumi from "@pulumi/pulumi";
17
21
  *
18
22
  * ## Import
19
23
  *
20
- * Random UUID's can be imported. This can be used to replace a config value with a value interpolated from the random provider without experiencing diffs.
24
+ * Random UUID's can be imported. This can be used to replace a config value with a value interpolated from the random provider without experiencing diffs. Example
21
25
  *
22
26
  * ```sh
23
27
  * $ pulumi import random:index/randomUuid:RandomUuid main aabbccdd-eeff-0011-2233-445566778899
@@ -40,10 +44,12 @@ export declare class RandomUuid extends pulumi.CustomResource {
40
44
  */
41
45
  static isInstance(obj: any): obj is RandomUuid;
42
46
  /**
43
- * Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
47
+ * Arbitrary map of values that, when changed, will
48
+ * trigger a new uuid to be generated. See
49
+ * the main provider documentation for more information.
44
50
  */
45
51
  readonly keepers: pulumi.Output<{
46
- [key: string]: string;
52
+ [key: string]: any;
47
53
  } | undefined>;
48
54
  /**
49
55
  * The generated uuid presented in string format.
@@ -63,10 +69,12 @@ export declare class RandomUuid extends pulumi.CustomResource {
63
69
  */
64
70
  export interface RandomUuidState {
65
71
  /**
66
- * Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
72
+ * Arbitrary map of values that, when changed, will
73
+ * trigger a new uuid to be generated. See
74
+ * the main provider documentation for more information.
67
75
  */
68
76
  keepers?: pulumi.Input<{
69
- [key: string]: pulumi.Input<string>;
77
+ [key: string]: any;
70
78
  }>;
71
79
  /**
72
80
  * The generated uuid presented in string format.
@@ -78,9 +86,11 @@ export interface RandomUuidState {
78
86
  */
79
87
  export interface RandomUuidArgs {
80
88
  /**
81
- * Arbitrary map of values that, when changed, will trigger recreation of resource. See the main provider documentation for more information.
89
+ * Arbitrary map of values that, when changed, will
90
+ * trigger a new uuid to be generated. See
91
+ * the main provider documentation for more information.
82
92
  */
83
93
  keepers?: pulumi.Input<{
84
- [key: string]: pulumi.Input<string>;
94
+ [key: string]: any;
85
95
  }>;
86
96
  }
package/randomUuid.js CHANGED
@@ -6,12 +6,16 @@ exports.RandomUuid = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * The resource `random.RandomUuid` generates random uuid string that is intended to be used as unique identifiers for other resources.
9
+ * The resource `random.RandomUuid` generates random uuid string that is intended to be
10
+ * used as unique identifiers for other resources.
10
11
  *
11
- * This resource uses [hashicorp/go-uuid](https://github.com/hashicorp/go-uuid) to generate a UUID-formatted string for use with services needed a unique string identifier.
12
+ * This resource uses the `hashicorp/go-uuid` to generate a UUID-formatted string
13
+ * for use with services needed a unique string identifier.
12
14
  *
13
15
  * ## Example Usage
14
16
  *
17
+ * The following example shows how to generate a unique name for an Azure Resource Group.
18
+ *
15
19
  * ```typescript
16
20
  * import * as pulumi from "@pulumi/pulumi";
17
21
  * import * as azure from "@pulumi/azure";
@@ -23,7 +27,7 @@ const utilities = require("./utilities");
23
27
  *
24
28
  * ## Import
25
29
  *
26
- * Random UUID's can be imported. This can be used to replace a config value with a value interpolated from the random provider without experiencing diffs.
30
+ * Random UUID's can be imported. This can be used to replace a config value with a value interpolated from the random provider without experiencing diffs. Example
27
31
  *
28
32
  * ```sh
29
33
  * $ pulumi import random:index/randomUuid:RandomUuid main aabbccdd-eeff-0011-2233-445566778899
package/randomUuid.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"randomUuid.js","sourceRoot":"","sources":["../randomUuid.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IAmBD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC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