powerful-lighter-63321
04/08/2023, 7:20 AMmelodic-tomato-39005
04/08/2023, 1:58 PMtype Input = T | Promise<T> | OutputInstance<T>;
[Input] is a property input for a resource. It may be a promptly available T, a promise for one, or the output from a existing Resource.https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/pulumi/#Input
salmon-account-74572
04/10/2023, 2:04 PMpulumi.String()
or <http://pulumi.Int|pulumi.Int>()
when specifying a property value. If you find cases where the documentation is incorrect (perhaps missing a type or specifying the wrong type), please file an issue and let us know! We want the docs to be as accurate and as helpful as possible. In the meantime, is there anything we can specifically help with?powerful-lighter-63321
04/11/2023, 6:40 AMpackage main
import (
"<http://github.com/pulumi/pulumi-hcloud/sdk/go/hcloud|github.com/pulumi/pulumi-hcloud/sdk/go/hcloud>"
"<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi|github.com/pulumi/pulumi/sdk/v3/go/pulumi>"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
mynet, err := hcloud.NewNetwork(ctx, "mynet", &hcloud.NetworkArgs{
IpRange: pulumi.String("10.0.0.0/8"),
})
if err != nil {
return err
}
_, err = hcloud.NewNetworkSubnet(ctx, "foonet", &hcloud.NetworkSubnetArgs{
NetworkId: mynet.ID(),
Type: pulumi.String("cloud"),
NetworkZone: pulumi.String("eu-central"),
IpRange: pulumi.String("10.0.1.0/24"),
})
if err != nil {
return err
}
return nil
})
}
The mynet.ID() which should be used here can't be used and have to be casted in from IDOutput to IntInput.salmon-account-74572
04/11/2023, 12:24 PM