pulumi/tests/integration/dynamic
Julien 6e39175f8d
Allow accessing configuration in Node.js dynamic providers (#17697)
This PR follows https://github.com/pulumi/pulumi/pull/17673 by adding a
`configure` method to Node.js dynamic providers.

The `configure` method of the `ResourceProvider` interface is called
with a `ConfigureRequest` that holds the stack’s configuration, and
allows the provider implementation to retrieve and store configuration
values for later use.

```typescript
class MyResourceProvider implements pulumi.dynamic.ResourceProvider {
    private password: string;

    async configure(req: pulumi.dynamic.ConfigureRequest): Promise<void> {
        this.password = req.config.require("password");
    }

    async create(props: any): Promise<pulumi.dynamic.CreateResult> {
      // use self.password
    }
}
```

---------

Co-authored-by: Will Jones <will@sacharissa.co.uk>
2024-11-07 14:34:11 +00:00
..
nodejs-config Allow accessing configuration in Node.js dynamic providers (#17697) 2024-11-07 14:34:11 +00:00
nodejs-error-create Add test to show errors in dynamic NodeJS providers work 2023-03-29 11:21:51 +01:00
nodejs-pulumi-config Pass PULUMI_CONFIG through to provider plugins 2023-04-05 10:17:18 +01:00
nodejs-reserved-identifier-shadowing Support serialising reserved NodeJS identifiers (#15879) 2024-04-10 15:12:43 +00:00
nodejs-resource-type-name [sdk/nodejs] - Add support for custom naming of dynamic provider resource. 2023-01-17 18:57:58 +01:00
python Add requirements.txt to all test projects 2019-08-23 15:02:58 -07:00
python-config Allow accessing configuration in Python dynamic providers (#17673) 2024-11-07 10:12:24 +00:00
python-config-separate-module Allow accessing configuration in Python dynamic providers (#17673) 2024-11-07 10:12:24 +00:00
python-disable-serialization-as-secret Allow Python dynamic providers to capture secrets (#15864) 2024-08-02 23:51:52 +00:00
python-resource-type-name Added support for custom naming of dynamic provider resource (#7633) 2021-08-17 14:15:53 -07:00
python-secrets Allow accessing configuration in Python dynamic providers (#17673) 2024-11-07 10:12:24 +00:00