Documentation ¶
Overview ¶
Package random exports types, functions, subpackages for provisioning random resources.// A Pulumi package to safely use randomness in Pulumi programs.
> This provider is a derived work of the [Terraform Provider](https://github.com/terraform-providers/terraform-provider-random) > distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature, > first check the [`pulumi/pulumi-random` repo](https://github.com/pulumi/pulumi-random/issues); however, if that doesn't turn up anything, > please consult the source [`terraform-providers/terraform-provider-random` repo](https://github.com/terraform-providers/terraform-provider-random/issues).
nolint: lll
nolint: lll
nolint: lll Package random exports types, functions, subpackages for provisioning random resources.
> This provider is a derived work of the [Terraform Provider](https://github.com/terraform-providers/terraform-provider-random) > distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature, > first check the [`pulumi/pulumi-random` repo](https://github.com/pulumi/pulumi-random/issues); however, if that doesn't turn up anything, > please consult the source [`terraform-providers/terraform-provider-random` repo](https://github.com/terraform-providers/terraform-provider-random/issues).
nolint: lll
nolint: lll
nolint: lll
nolint: lll
nolint: lll
nolint: lll
nolint: lll
Index ¶
- type Provider
- type ProviderArgs
- type RandomId
- type RandomIdArgs
- type RandomIdState
- type RandomInteger
- type RandomIntegerArgs
- type RandomIntegerState
- type RandomPassword
- type RandomPasswordArgs
- type RandomPasswordState
- type RandomPet
- type RandomPetArgs
- type RandomPetState
- type RandomShuffle
- type RandomShuffleArgs
- type RandomShuffleState
- type RandomString
- type RandomStringArgs
- type RandomStringState
- type RandomUuid
- type RandomUuidArgs
- type RandomUuidState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
pulumi.ProviderResourceState
}
The provider type for the random package. By default, resources use package-wide configuration settings, however an explicit `Provider` instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
> This content is derived from https://github.com/terraform-providers/terraform-provider-random/blob/master/website/docs/index.html.markdown.
func NewProvider ¶
func NewProvider(ctx *pulumi.Context, name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)
NewProvider registers a new resource with the given unique name, arguments, and options.
type ProviderArgs ¶
type ProviderArgs struct { }
The set of arguments for constructing a Provider resource.
func (ProviderArgs) ElementType ¶
func (ProviderArgs) ElementType() reflect.Type
type RandomId ¶
type RandomId struct { pulumi.CustomResourceState B64 pulumi.StringOutput `pulumi:"b64"` // The generated id presented in base64 without additional transformations. B64Std pulumi.StringOutput `pulumi:"b64Std"` // The generated id presented in base64, using the URL-friendly character set: case-sensitive letters, digits and the characters `_` and `-`. B64Url pulumi.StringOutput `pulumi:"b64Url"` // The number of random bytes to produce. The // minimum value is 1, which produces eight bits of randomness. ByteLength pulumi.IntOutput `pulumi:"byteLength"` // The generated id presented in non-padded decimal digits. Dec pulumi.StringOutput `pulumi:"dec"` // The generated id presented in padded hexadecimal digits. This result will always be twice as long as the requested byte length. Hex pulumi.StringOutput `pulumi:"hex"` // Arbitrary map of values that, when changed, will // trigger a new id to be generated. See // the main provider documentation for more information. Keepers pulumi.MapOutput `pulumi:"keepers"` // 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. Prefix pulumi.StringPtrOutput `pulumi:"prefix"` }
The resource `.RandomId` generates random numbers that are intended to be used as unique identifiers for other resources.
This resource *does* use a cryptographic random number generator in order to minimize the chance of collisions, making the results of this resource when a 16-byte identifier is requested of equivalent uniqueness to a type-4 UUID.
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.
> This content is derived from https://github.com/terraform-providers/terraform-provider-random/blob/master/website/docs/r/id.html.md.
func GetRandomId ¶
func GetRandomId(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RandomIdState, opts ...pulumi.ResourceOption) (*RandomId, error)
GetRandomId gets an existing RandomId resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewRandomId ¶
func NewRandomId(ctx *pulumi.Context, name string, args *RandomIdArgs, opts ...pulumi.ResourceOption) (*RandomId, error)
NewRandomId registers a new resource with the given unique name, arguments, and options.
type RandomIdArgs ¶
type RandomIdArgs struct { // The number of random bytes to produce. The // minimum value is 1, which produces eight bits of randomness. ByteLength pulumi.IntInput // Arbitrary map of values that, when changed, will // trigger a new id to be generated. See // the main provider documentation for more information. Keepers pulumi.MapInput // 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. Prefix pulumi.StringPtrInput }
The set of arguments for constructing a RandomId resource.
func (RandomIdArgs) ElementType ¶
func (RandomIdArgs) ElementType() reflect.Type
type RandomIdState ¶
type RandomIdState struct { B64 pulumi.StringPtrInput // The generated id presented in base64 without additional transformations. B64Std pulumi.StringPtrInput // The generated id presented in base64, using the URL-friendly character set: case-sensitive letters, digits and the characters `_` and `-`. B64Url pulumi.StringPtrInput // The number of random bytes to produce. The // minimum value is 1, which produces eight bits of randomness. ByteLength pulumi.IntPtrInput // The generated id presented in non-padded decimal digits. Dec pulumi.StringPtrInput // The generated id presented in padded hexadecimal digits. This result will always be twice as long as the requested byte length. Hex pulumi.StringPtrInput // Arbitrary map of values that, when changed, will // trigger a new id to be generated. See // the main provider documentation for more information. Keepers pulumi.MapInput // 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. Prefix pulumi.StringPtrInput }
func (RandomIdState) ElementType ¶
func (RandomIdState) ElementType() reflect.Type
type RandomInteger ¶
type RandomInteger struct { pulumi.CustomResourceState // Arbitrary map of values that, when changed, will // trigger a new id to be generated. See // the main provider documentation for more information. Keepers pulumi.MapOutput `pulumi:"keepers"` // The maximum inclusive value of the range. Max pulumi.IntOutput `pulumi:"max"` // The minimum inclusive value of the range. Min pulumi.IntOutput `pulumi:"min"` // (int) The random Integer result. Result pulumi.IntOutput `pulumi:"result"` // A custom seed to always produce the same value. Seed pulumi.StringPtrOutput `pulumi:"seed"` }
The resource `.RandomInteger` generates random values from a given range, described by the `min` and `max` attributes of a given resource.
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.
> This content is derived from https://github.com/terraform-providers/terraform-provider-random/blob/master/website/docs/r/integer.html.md.
func GetRandomInteger ¶
func GetRandomInteger(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RandomIntegerState, opts ...pulumi.ResourceOption) (*RandomInteger, error)
GetRandomInteger gets an existing RandomInteger resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewRandomInteger ¶
func NewRandomInteger(ctx *pulumi.Context, name string, args *RandomIntegerArgs, opts ...pulumi.ResourceOption) (*RandomInteger, error)
NewRandomInteger registers a new resource with the given unique name, arguments, and options.
type RandomIntegerArgs ¶
type RandomIntegerArgs struct { // Arbitrary map of values that, when changed, will // trigger a new id to be generated. See // the main provider documentation for more information. Keepers pulumi.MapInput // The maximum inclusive value of the range. Max pulumi.IntInput // The minimum inclusive value of the range. Min pulumi.IntInput // A custom seed to always produce the same value. Seed pulumi.StringPtrInput }
The set of arguments for constructing a RandomInteger resource.
func (RandomIntegerArgs) ElementType ¶
func (RandomIntegerArgs) ElementType() reflect.Type
type RandomIntegerState ¶
type RandomIntegerState struct { // Arbitrary map of values that, when changed, will // trigger a new id to be generated. See // the main provider documentation for more information. Keepers pulumi.MapInput // The maximum inclusive value of the range. Max pulumi.IntPtrInput // The minimum inclusive value of the range. Min pulumi.IntPtrInput // (int) The random Integer result. Result pulumi.IntPtrInput // A custom seed to always produce the same value. Seed pulumi.StringPtrInput }
func (RandomIntegerState) ElementType ¶
func (RandomIntegerState) ElementType() reflect.Type
type RandomPassword ¶
type RandomPassword struct { pulumi.CustomResourceState Keepers pulumi.MapOutput `pulumi:"keepers"` Length pulumi.IntOutput `pulumi:"length"` Lower pulumi.BoolPtrOutput `pulumi:"lower"` MinLower pulumi.IntPtrOutput `pulumi:"minLower"` MinNumeric pulumi.IntPtrOutput `pulumi:"minNumeric"` MinSpecial pulumi.IntPtrOutput `pulumi:"minSpecial"` MinUpper pulumi.IntPtrOutput `pulumi:"minUpper"` Number pulumi.BoolPtrOutput `pulumi:"number"` OverrideSpecial pulumi.StringPtrOutput `pulumi:"overrideSpecial"` Result pulumi.StringOutput `pulumi:"result"` Special pulumi.BoolPtrOutput `pulumi:"special"` Upper pulumi.BoolPtrOutput `pulumi:"upper"` }
> **Note:** Requires random provider version >= 2.2.0
Identical to .RandomString with the exception that the result is treated as sensitive and, thus, _not_ displayed in console output.
> **Note:** All attributes including the generated password will be stored in the raw state as plain-text. [Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html).
This resource *does* use a cryptographic random number generator.
> This content is derived from https://github.com/terraform-providers/terraform-provider-random/blob/master/website/docs/r/password.html.md.
func GetRandomPassword ¶
func GetRandomPassword(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RandomPasswordState, opts ...pulumi.ResourceOption) (*RandomPassword, error)
GetRandomPassword gets an existing RandomPassword resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewRandomPassword ¶
func NewRandomPassword(ctx *pulumi.Context, name string, args *RandomPasswordArgs, opts ...pulumi.ResourceOption) (*RandomPassword, error)
NewRandomPassword registers a new resource with the given unique name, arguments, and options.
type RandomPasswordArgs ¶
type RandomPasswordArgs struct { Keepers pulumi.MapInput Length pulumi.IntInput Lower pulumi.BoolPtrInput MinLower pulumi.IntPtrInput MinNumeric pulumi.IntPtrInput MinSpecial pulumi.IntPtrInput MinUpper pulumi.IntPtrInput Number pulumi.BoolPtrInput OverrideSpecial pulumi.StringPtrInput Special pulumi.BoolPtrInput Upper pulumi.BoolPtrInput }
The set of arguments for constructing a RandomPassword resource.
func (RandomPasswordArgs) ElementType ¶
func (RandomPasswordArgs) ElementType() reflect.Type
type RandomPasswordState ¶
type RandomPasswordState struct { Keepers pulumi.MapInput Length pulumi.IntPtrInput Lower pulumi.BoolPtrInput MinLower pulumi.IntPtrInput MinNumeric pulumi.IntPtrInput MinSpecial pulumi.IntPtrInput MinUpper pulumi.IntPtrInput Number pulumi.BoolPtrInput OverrideSpecial pulumi.StringPtrInput Result pulumi.StringPtrInput Special pulumi.BoolPtrInput Upper pulumi.BoolPtrInput }
func (RandomPasswordState) ElementType ¶
func (RandomPasswordState) ElementType() reflect.Type
type RandomPet ¶
type RandomPet struct { pulumi.CustomResourceState // Arbitrary map of values that, when changed, will // trigger a new id to be generated. See // the main provider documentation for more information. Keepers pulumi.MapOutput `pulumi:"keepers"` // The length (in words) of the pet name. Length pulumi.IntPtrOutput `pulumi:"length"` // A string to prefix the name with. Prefix pulumi.StringPtrOutput `pulumi:"prefix"` // The character to separate words in the pet name. Separator pulumi.StringPtrOutput `pulumi:"separator"` }
The resource `.RandomPet` generates random pet names that are intended to be used as unique identifiers for other resources.
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.
> This content is derived from https://github.com/terraform-providers/terraform-provider-random/blob/master/website/docs/r/pet.html.md.
func GetRandomPet ¶
func GetRandomPet(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RandomPetState, opts ...pulumi.ResourceOption) (*RandomPet, error)
GetRandomPet gets an existing RandomPet resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewRandomPet ¶
func NewRandomPet(ctx *pulumi.Context, name string, args *RandomPetArgs, opts ...pulumi.ResourceOption) (*RandomPet, error)
NewRandomPet registers a new resource with the given unique name, arguments, and options.
type RandomPetArgs ¶
type RandomPetArgs struct { // Arbitrary map of values that, when changed, will // trigger a new id to be generated. See // the main provider documentation for more information. Keepers pulumi.MapInput // The length (in words) of the pet name. Length pulumi.IntPtrInput // A string to prefix the name with. Prefix pulumi.StringPtrInput // The character to separate words in the pet name. Separator pulumi.StringPtrInput }
The set of arguments for constructing a RandomPet resource.
func (RandomPetArgs) ElementType ¶
func (RandomPetArgs) ElementType() reflect.Type
type RandomPetState ¶
type RandomPetState struct { // Arbitrary map of values that, when changed, will // trigger a new id to be generated. See // the main provider documentation for more information. Keepers pulumi.MapInput // The length (in words) of the pet name. Length pulumi.IntPtrInput // A string to prefix the name with. Prefix pulumi.StringPtrInput // The character to separate words in the pet name. Separator pulumi.StringPtrInput }
func (RandomPetState) ElementType ¶
func (RandomPetState) ElementType() reflect.Type
type RandomShuffle ¶
type RandomShuffle struct { pulumi.CustomResourceState // The list of strings to shuffle. Inputs pulumi.StringArrayOutput `pulumi:"inputs"` // Arbitrary map of values that, when changed, will // trigger a new id to be generated. See // the main provider documentation for more information. Keepers pulumi.MapOutput `pulumi:"keepers"` // The number of results to return. Defaults to // the number of items in the `input` list. If fewer items are requested, // some elements will be excluded from the result. If more items are requested, // items will be repeated in the result but not more frequently than the number // of items in the input list. ResultCount pulumi.IntPtrOutput `pulumi:"resultCount"` // Random permutation of the list of strings given in `input`. Results pulumi.StringArrayOutput `pulumi:"results"` Seed pulumi.StringPtrOutput `pulumi:"seed"` }
The resource `.RandomShuffle` generates a random permutation of a list of strings given as an argument.
> This content is derived from https://github.com/terraform-providers/terraform-provider-random/blob/master/website/docs/r/shuffle.html.md.
func GetRandomShuffle ¶
func GetRandomShuffle(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RandomShuffleState, opts ...pulumi.ResourceOption) (*RandomShuffle, error)
GetRandomShuffle gets an existing RandomShuffle resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewRandomShuffle ¶
func NewRandomShuffle(ctx *pulumi.Context, name string, args *RandomShuffleArgs, opts ...pulumi.ResourceOption) (*RandomShuffle, error)
NewRandomShuffle registers a new resource with the given unique name, arguments, and options.
type RandomShuffleArgs ¶
type RandomShuffleArgs struct { // The list of strings to shuffle. Inputs pulumi.StringArrayInput // Arbitrary map of values that, when changed, will // trigger a new id to be generated. See // the main provider documentation for more information. Keepers pulumi.MapInput // The number of results to return. Defaults to // the number of items in the `input` list. If fewer items are requested, // some elements will be excluded from the result. If more items are requested, // items will be repeated in the result but not more frequently than the number // of items in the input list. ResultCount pulumi.IntPtrInput Seed pulumi.StringPtrInput }
The set of arguments for constructing a RandomShuffle resource.
func (RandomShuffleArgs) ElementType ¶
func (RandomShuffleArgs) ElementType() reflect.Type
type RandomShuffleState ¶
type RandomShuffleState struct { // The list of strings to shuffle. Inputs pulumi.StringArrayInput // Arbitrary map of values that, when changed, will // trigger a new id to be generated. See // the main provider documentation for more information. Keepers pulumi.MapInput // The number of results to return. Defaults to // the number of items in the `input` list. If fewer items are requested, // some elements will be excluded from the result. If more items are requested, // items will be repeated in the result but not more frequently than the number // of items in the input list. ResultCount pulumi.IntPtrInput // Random permutation of the list of strings given in `input`. Results pulumi.StringArrayInput Seed pulumi.StringPtrInput }
func (RandomShuffleState) ElementType ¶
func (RandomShuffleState) ElementType() reflect.Type
type RandomString ¶
type RandomString struct { pulumi.CustomResourceState // Arbitrary map of values that, when changed, will // trigger a new id to be generated. See // the main provider documentation for more information. Keepers pulumi.MapOutput `pulumi:"keepers"` // The length of the string desired Length pulumi.IntOutput `pulumi:"length"` // (default true) Include lowercase alphabet characters // in random string. Lower pulumi.BoolPtrOutput `pulumi:"lower"` // (default 0) Minimum number of lowercase alphabet // characters in random string. MinLower pulumi.IntPtrOutput `pulumi:"minLower"` // (default 0) Minimum number of numeric characters // in random string. MinNumeric pulumi.IntPtrOutput `pulumi:"minNumeric"` // (default 0) Minimum number of special characters // in random string. MinSpecial pulumi.IntPtrOutput `pulumi:"minSpecial"` // (default 0) Minimum number of uppercase alphabet // characters in random string. MinUpper pulumi.IntPtrOutput `pulumi:"minUpper"` // (default true) Include numeric characters in random // string. Number pulumi.BoolPtrOutput `pulumi:"number"` // 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. OverrideSpecial pulumi.StringPtrOutput `pulumi:"overrideSpecial"` // Random string generated. Result pulumi.StringOutput `pulumi:"result"` // (default true) Include special characters in random // string. These are `!@#$%&*()-_=+[]{}<>:?` Special pulumi.BoolPtrOutput `pulumi:"special"` // (default true) Include uppercase alphabet characters // in random string. Upper pulumi.BoolPtrOutput `pulumi:"upper"` }
The resource `.RandomString` generates a random permutation of alphanumeric characters and optionally special characters.
This resource *does* use a cryptographic random number generator.
Historically this resource's intended usage has been ambiguous as the original example used it in a password. For backwards compatibility it will continue to exist. For unique ids please use random_id, for sensitive random values please use random_password.
> This content is derived from https://github.com/terraform-providers/terraform-provider-random/blob/master/website/docs/r/string.html.md.
func GetRandomString ¶
func GetRandomString(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RandomStringState, opts ...pulumi.ResourceOption) (*RandomString, error)
GetRandomString gets an existing RandomString resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewRandomString ¶
func NewRandomString(ctx *pulumi.Context, name string, args *RandomStringArgs, opts ...pulumi.ResourceOption) (*RandomString, error)
NewRandomString registers a new resource with the given unique name, arguments, and options.
type RandomStringArgs ¶
type RandomStringArgs struct { // Arbitrary map of values that, when changed, will // trigger a new id to be generated. See // the main provider documentation for more information. Keepers pulumi.MapInput // The length of the string desired Length pulumi.IntInput // (default true) Include lowercase alphabet characters // in random string. Lower pulumi.BoolPtrInput // (default 0) Minimum number of lowercase alphabet // characters in random string. MinLower pulumi.IntPtrInput // (default 0) Minimum number of numeric characters // in random string. MinNumeric pulumi.IntPtrInput // (default 0) Minimum number of special characters // in random string. MinSpecial pulumi.IntPtrInput // (default 0) Minimum number of uppercase alphabet // characters in random string. MinUpper pulumi.IntPtrInput // (default true) Include numeric characters in random // string. Number pulumi.BoolPtrInput // 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. OverrideSpecial pulumi.StringPtrInput // (default true) Include special characters in random // string. These are `!@#$%&*()-_=+[]{}<>:?` Special pulumi.BoolPtrInput // (default true) Include uppercase alphabet characters // in random string. Upper pulumi.BoolPtrInput }
The set of arguments for constructing a RandomString resource.
func (RandomStringArgs) ElementType ¶
func (RandomStringArgs) ElementType() reflect.Type
type RandomStringState ¶
type RandomStringState struct { // Arbitrary map of values that, when changed, will // trigger a new id to be generated. See // the main provider documentation for more information. Keepers pulumi.MapInput // The length of the string desired Length pulumi.IntPtrInput // (default true) Include lowercase alphabet characters // in random string. Lower pulumi.BoolPtrInput // (default 0) Minimum number of lowercase alphabet // characters in random string. MinLower pulumi.IntPtrInput // (default 0) Minimum number of numeric characters // in random string. MinNumeric pulumi.IntPtrInput // (default 0) Minimum number of special characters // in random string. MinSpecial pulumi.IntPtrInput // (default 0) Minimum number of uppercase alphabet // characters in random string. MinUpper pulumi.IntPtrInput // (default true) Include numeric characters in random // string. Number pulumi.BoolPtrInput // 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. OverrideSpecial pulumi.StringPtrInput // Random string generated. Result pulumi.StringPtrInput // (default true) Include special characters in random // string. These are `!@#$%&*()-_=+[]{}<>:?` Special pulumi.BoolPtrInput // (default true) Include uppercase alphabet characters // in random string. Upper pulumi.BoolPtrInput }
func (RandomStringState) ElementType ¶
func (RandomStringState) ElementType() reflect.Type
type RandomUuid ¶
type RandomUuid struct { pulumi.CustomResourceState // Arbitrary map of values that, when changed, will // trigger a new uuid to be generated. See // the main provider documentation for more information. Keepers pulumi.MapOutput `pulumi:"keepers"` // The generated uuid presented in string format. Result pulumi.StringOutput `pulumi:"result"` }
The resource `.RandomUuid` generates random uuid string that is intended to be used as unique identifiers for other resources.
This resource uses the `hashicorp/go-uuid` to generate a UUID-formatted string for use with services needed a unique string identifier.
> This content is derived from https://github.com/terraform-providers/terraform-provider-random/blob/master/website/docs/r/uuid.html.md.
func GetRandomUuid ¶
func GetRandomUuid(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RandomUuidState, opts ...pulumi.ResourceOption) (*RandomUuid, error)
GetRandomUuid gets an existing RandomUuid resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewRandomUuid ¶
func NewRandomUuid(ctx *pulumi.Context, name string, args *RandomUuidArgs, opts ...pulumi.ResourceOption) (*RandomUuid, error)
NewRandomUuid registers a new resource with the given unique name, arguments, and options.
type RandomUuidArgs ¶
type RandomUuidArgs struct { // Arbitrary map of values that, when changed, will // trigger a new uuid to be generated. See // the main provider documentation for more information. Keepers pulumi.MapInput }
The set of arguments for constructing a RandomUuid resource.
func (RandomUuidArgs) ElementType ¶
func (RandomUuidArgs) ElementType() reflect.Type
type RandomUuidState ¶
type RandomUuidState struct { // Arbitrary map of values that, when changed, will // trigger a new uuid to be generated. See // the main provider documentation for more information. Keepers pulumi.MapInput // The generated uuid presented in string format. Result pulumi.StringPtrInput }
func (RandomUuidState) ElementType ¶
func (RandomUuidState) ElementType() reflect.Type