numerous-thailand-80976
06/28/2021, 2:31 AMvpc, err := network.NewNetwork(ctx, projectID+"-vpc-"+config.Name, &network.NetworkArgs{
AutoCreateSubnetworks: pulumi.Bool(config.AutocreateSubnets),
Name: pulumi.String(config.Name),
RoutingConfig: &network.NetworkRoutingConfigArgs{
RoutingMode: ?
},
})
I’m having an issue with the ?, RoutingMode
is an object of *(network,NetworkRoutingConfigArgs).RoutingMode
type for which there are 2 constants `network.NetworkRoutingConfigRoutingModeGlobal`and network.NetworkRoutingConfigRoutingModeRegional
.
I’ve tried the following but all are rejected by the compiler:
&network.NetworkRoutingConfigRoutingModeGlobal
&network.NetworkRoutingConfigRoutingMode{ network.NetworkRoutingConfigRoutingModeGlobal }
&network.NetworkRoutingConfigRoutingMode(network.NetworkRoutingConfigRoutingModeGlobal)
Does anyone know how I can pass the constant to the RoutingMode
field?bored-table-20691
06/28/2021, 2:37 AMnumerous-thailand-80976
06/28/2021, 11:41 AM