@lego/pulumi-get-value
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

Actions Status npm version License

pulumi-get-value

Pulumi plug-in that enables you to await the value of Output<T> types.

Installation

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

npm install @lego/pulumi-get-value

or yarn:

yarn add @lego/pulumi-get-value

Usage

import { getValue } from "@lego/pulumi-get-value"
import * as aws from '@pulumi/aws';

const bucket: aws.s3.Bucket = new aws.s3.Bucket('my-bucket');

// Using `.apply`
bucket.arn.apply((arn) => {
  // Use arn
});

// Using `getValue()`
const arn: string = await getValue(bucket.arn);

Contribution

This project welcomes contributions and suggestions. Do you want to contribute to the project? Find out how here.

License

Modified Apache 2.0 (Section 6)

Open Source Attribution

Project Dependencies

Dev Dependencies

Package Sidebar

Install

npm i @lego/pulumi-get-value

Weekly Downloads

1

Version

1.1.1

License

Apache-2.0

Unpacked Size

16.5 kB

Total Files

5

Last publish

Collaborators

  • mbogh
  • xshteff
  • vincentbriglia
  • giovannidegani