pulumi/sdk
joeduffy 5e28a4ab07 Add the ability to read an existing resource
This change wires up the new Read RPC method in such a manner that
Pulumi programs can invoke it.  This is technically not required for
refreshing state programmatically (as in pulumi/pulumi#1081), however
it's a feature we had eons ago and have wanted since (see
pulumi/pulumi#83), and will allow us to write code like

    let vm = aws.ec2.Instance.get("my-vm", "i-07043cd97bd2c9cfc");
    // use any property from here on out ...

The way this works is simply by bridging the Pulumi program via its
existing RPC connection to the engine, much like Invoke and
RegisterResource RPC requests already do, and then invoking the proper
resource provider in order to read the state.  Note that some resources
cannot be uniquely identified by their ID alone, and so an extra
resource state bag may be provided with just those properties required.

This came almost for free (okay, not exactly) and will come in handy as
we start gaining experience with reading live state from resources.
2018-04-05 09:48:09 -07:00
..
nodejs Add the ability to read an existing resource 2018-04-05 09:48:09 -07:00
proto Add the ability to read an existing resource 2018-04-05 09:48:09 -07:00
python Add the ability to read an existing resource 2018-04-05 09:48:09 -07:00
README.md Clean up the READMEs 2017-09-11 13:18:09 -07:00

Pulumi Fabric SDKs

This directory contains the Pulumi Fabric SDKs, one for each supported language.

Please see the respective READMEs for information about installing and using these libraries: