pulumi-random


Namepulumi-random JSON
Version 4.16.8 PyPI version JSON
download
home_pageNone
SummaryA Pulumi package to safely use randomness in Pulumi programs.
upload_time2024-12-13 18:18:05
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseApache-2.0
keywords pulumi random
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Actions Status](https://github.com/pulumi/pulumi-random/workflows/master/badge.svg)](https://github.com/pulumi/pulumi-random/actions)
[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com)
[![NPM version](https://badge.fury.io/js/%40pulumi%2Frandom.svg)](https://npmjs.com/package/@pulumi/random)
[![NuGet version](https://badge.fury.io/nu/pulumi.random.svg)](https://badge.fury.io/nu/pulumi.random)
[![Python version](https://badge.fury.io/py/pulumi-random.svg)](https://pypi.org/project/pulumi-random)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/pulumi/pulumi-random/sdk/v4/go)](https://pkg.go.dev/github.com/pulumi/pulumi-random/sdk/v4/go)
[![License](https://img.shields.io/npm/l/%40pulumi%2Fpulumi.svg)](https://github.com/pulumi/pulumi-random/blob/master/LICENSE)

# 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.

## 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/v4/go/...

### .NET

To use from .NET, install using `dotnet add package`:

    $ dotnet add package Pulumi.Random

## Example

For example, to generate a random password, allocate a `RandomPassword` resource
and then use its `result` output property (of type `Output<string>`) to pass
to another resource.

```typescript
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as random from "@pulumi/random";

const password = new random.RandomPassword("password", {
    length: 16,
    overrideSpecial: "_%@",
    special: true,
});
const example = new aws.rds.Instance("example", {
    password: password.result,
});
```

## Reference

For further information, please visit [the random provider docs](https://www.pulumi.com/docs/intro/cloud-providers/random) or for detailed reference documentation, please visit [the API docs](https://www.pulumi.com/docs/reference/pkg/random).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pulumi-random",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "pulumi, random",
    "author": null,
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/d1/2c/681f1ac76133a6ebdf3b485006fc167a6a7fd9a7c3e82316158257ebcd79/pulumi_random-4.16.8.tar.gz",
    "platform": null,
    "description": "[![Actions Status](https://github.com/pulumi/pulumi-random/workflows/master/badge.svg)](https://github.com/pulumi/pulumi-random/actions)\n[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com)\n[![NPM version](https://badge.fury.io/js/%40pulumi%2Frandom.svg)](https://npmjs.com/package/@pulumi/random)\n[![NuGet version](https://badge.fury.io/nu/pulumi.random.svg)](https://badge.fury.io/nu/pulumi.random)\n[![Python version](https://badge.fury.io/py/pulumi-random.svg)](https://pypi.org/project/pulumi-random)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/pulumi/pulumi-random/sdk/v4/go)](https://pkg.go.dev/github.com/pulumi/pulumi-random/sdk/v4/go)\n[![License](https://img.shields.io/npm/l/%40pulumi%2Fpulumi.svg)](https://github.com/pulumi/pulumi-random/blob/master/LICENSE)\n\n# Random Provider\n\nThe random provider allows the safe use of randomness in a Pulumi program. This allows you to generate resource\nproperties, such as names, that contain randomness in a way that works with Pulumi's goal state oriented approach.\nUsing randomness as usual would not work well with Pulumi, because by definition, each time the program is evaluated,\na new random state would be produced, necessitating re-convergence on the goal state. This provider understands\nhow to work with the Pulumi resource lifecycle to accomplish randomness safely and in a way that works as desired.\n\n## Installing\n\nThis package is available in many languages in the standard packaging formats.\n\n### Node.js (Java/TypeScript)\n\nTo use from JavaScript or TypeScript in Node.js, install using either `npm`:\n\n    $ npm install @pulumi/random\n\nor `yarn`:\n\n    $ yarn add @pulumi/random\n\n### Python\n\nTo use from Python, install using `pip`:\n\n    $ pip install pulumi_random\n\n### Go\n\nTo use from Go, use `go get` to grab the latest version of the library\n\n    $ go get github.com/pulumi/pulumi-random/sdk/v4/go/...\n\n### .NET\n\nTo use from .NET, install using `dotnet add package`:\n\n    $ dotnet add package Pulumi.Random\n\n## Example\n\nFor example, to generate a random password, allocate a `RandomPassword` resource\nand then use its `result` output property (of type `Output<string>`) to pass\nto another resource.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\nimport * as random from \"@pulumi/random\";\n\nconst password = new random.RandomPassword(\"password\", {\n    length: 16,\n    overrideSpecial: \"_%@\",\n    special: true,\n});\nconst example = new aws.rds.Instance(\"example\", {\n    password: password.result,\n});\n```\n\n## Reference\n\nFor further information, please visit [the random provider docs](https://www.pulumi.com/docs/intro/cloud-providers/random) or for detailed reference documentation, please visit [the API docs](https://www.pulumi.com/docs/reference/pkg/random).\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "A Pulumi package to safely use randomness in Pulumi programs.",
    "version": "4.16.8",
    "project_urls": {
        "Homepage": "https://pulumi.io",
        "Repository": "https://github.com/pulumi/pulumi-random"
    },
    "split_keywords": [
        "pulumi",
        " random"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c5dc6bb9083f6d00e94884cb7b312bfc45489993627caaca38c3e1476b3b68e1",
                "md5": "4e4590f427469737b7c55b356975f8e8",
                "sha256": "ba1b1fd6532988b1977e4bc8243d5b6f3c048c40f5919fcc70061088f37ebb51"
            },
            "downloads": -1,
            "filename": "pulumi_random-4.16.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4e4590f427469737b7c55b356975f8e8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 30811,
            "upload_time": "2024-12-13T18:18:02",
            "upload_time_iso_8601": "2024-12-13T18:18:02.171882Z",
            "url": "https://files.pythonhosted.org/packages/c5/dc/6bb9083f6d00e94884cb7b312bfc45489993627caaca38c3e1476b3b68e1/pulumi_random-4.16.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d12c681f1ac76133a6ebdf3b485006fc167a6a7fd9a7c3e82316158257ebcd79",
                "md5": "180529f63d23906b448471b42c96da6f",
                "sha256": "0112e10e3c8096b6e6fa05974bcefcf2f7731081035191860a2e7d6c0e4ef09f"
            },
            "downloads": -1,
            "filename": "pulumi_random-4.16.8.tar.gz",
            "has_sig": false,
            "md5_digest": "180529f63d23906b448471b42c96da6f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 21172,
            "upload_time": "2024-12-13T18:18:05",
            "upload_time_iso_8601": "2024-12-13T18:18:05.447167Z",
            "url": "https://files.pythonhosted.org/packages/d1/2c/681f1ac76133a6ebdf3b485006fc167a6a7fd9a7c3e82316158257ebcd79/pulumi_random-4.16.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-13 18:18:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pulumi",
    "github_project": "pulumi-random",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pulumi-random"
}
        
Elapsed time: 0.38736s