4.16.1 • Published 3 days ago

@pulumi/random v4.16.1

Weekly downloads
6,422
License
Apache-2.0
Repository
github
Last release
3 days ago

Build Status

Random Provider

The random provider allows the safe use of randomness in a Pulumi program. This allows you to generate resource properties, such as names, that contain randomness in a way that works with Pulumi's goal state oriented approach. Using randomness as usual would not work well with Pulumi, because by definition, each time the program is evaluated, a new random state would be produced, necessitating re-convergence on the goal state. This provider understands how to work with the Pulumi resource lifecycle to accomplish randomness safely and in a way that works as desired.

Example

For example, to generate a random string, simply allocate a resource:

const random = require("@pulumi/random");
const password = new random.RandomString("password", {
    length: 16,
    special: true,
    overrideSpecial: "/@\" ",
});

From there we can use its result output property, of type Output<string>, to pass to another resource.

Installing

This package is available in many languages in the standard packaging formats.

Node.js (Java/TypeScript)

To use from JavaScript or TypeScript in Node.js, install using either npm:

$ npm install @pulumi/random

or yarn:

$ yarn add @pulumi/random

Python

To use from Python, install using pip:

$ pip install pulumi_random

Go

To use from Go, use go get to grab the latest version of the library

$ go get github.com/pulumi/pulumi-random/sdk/go/...

Reference

For detailed reference documentation, please visit the API docs.

4.16.1

17 days ago

4.16.0

2 months ago

4.15.1

4 months ago

4.15.0

5 months ago

4.14.0

8 months ago

4.13.3

8 months ago

4.13.4

8 months ago

4.13.2

12 months ago

4.13.1

12 months ago

4.13.0

1 year ago

4.12.0

1 year ago

4.12.1

1 year ago

4.11.3

1 year ago

4.11.1

1 year ago

4.11.2

1 year ago

4.9.0

1 year ago

4.10.0

1 year ago

4.8.1

2 years ago

4.8.2

2 years ago

4.8.0

2 years ago

4.7.0

2 years ago

4.6.0

2 years ago

4.5.0

2 years ago

4.4.1

2 years ago

4.4.2

2 years ago

4.4.0

2 years ago

4.3.1

3 years ago

4.3.0

3 years ago

4.2.0

3 years ago

4.1.0

3 years ago

4.1.1

3 years ago

4.0.0

3 years ago

4.0.0-rc.1

3 years ago

3.2.0

3 years ago

4.0.0-beta.2

3 years ago

4.0.0-beta.1

3 years ago

3.1.1

3 years ago

3.1.0

3 years ago

3.0.3

3 years ago

3.0.2

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.5.0

3 years ago

2.4.3

3 years ago

2.4.4

3 years ago

2.4.2

3 years ago

2.4.1

3 years ago

2.4.0

4 years ago

2.3.1

4 years ago

2.3.0

4 years ago

2.2.0

4 years ago

2.1.4

4 years ago

2.1.3

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

2.0.0-beta.5

4 years ago

2.0.0-beta.4

4 years ago

2.0.0-beta.3

4 years ago

2.0.0-beta.2

4 years ago

2.0.0-beta.1

4 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

5 years ago

1.0.0

5 years ago

1.0.0-rc.1

5 years ago

1.0.0-beta.2

5 years ago

1.0.0-beta.1

5 years ago

0.5.8

5 years ago

0.5.7

5 years ago

0.5.6

5 years ago

0.5.5

5 years ago

0.5.4

5 years ago

0.5.3

5 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.17.0

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.0

6 years ago