This PR extends the automation API to allow batch importing resources into a stack. An example of how this looks like:
var result = await stack.ImportAsync(new()
{
Protect = false,
Resources = new()
{
new()
{
Type = "random:index/randomPassword:RandomPassword",
Name = "randomPassword",
Id = "supersecret"
}
}
});
Also implements an enum converter for UpdateKind since JSON deserialization was failing when encountering update kind resource-import, this is now fixed.
Addressing https://github.com/pulumi/pulumi/issues/8237
Following a similar pattern to how I implemented the NodeJS API https://github.com/pulumi/pulumi/pull/16615
This PR extends the automation API to allow batch importing resources into a stack. An example of how this looks like:
Also implements an enum converter for
UpdateKind
since JSON deserialization was failing when encountering update kindresource-import
, this is now fixed.