worried-city-86458
09/15/2020, 3:26 AMvar cluster = new Cluster($"{prefix}-cluster",
new ClusterArgs
{
RoleArn = clusterRole.Arn,
Version = config.KubeVersion,
VpcConfig = new ClusterVpcConfigArgs { SubnetIds = subnetIds }
},
new CustomResourceOptions { DependsOn = clusterPolicies });
becomes:
var cluster = new Cluster($"{prefix}-cluster",
new()
{
RoleArn = clusterRole.Arn,
Version = config.KubeVersion,
VpcConfig = new ClusterVpcConfigArgs { SubnetIds = subnetIds }
},
new() { DependsOn = clusterPolicies });
But there is a problem that Input<T>
types don't play nice.
For example, trying to remove ClusterVpcConfigArgs
above causes a compiler error:No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by