Version

The version resource option specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.

let vpc = new aws.ec2.Vpc("vpc", {}, { version: "2.10.0" });
let vpc = new aws.ec2.Vpc("vpc", {}, { version: "2.10.0" });
vpc = ec2.Vpc("vpc", opts=ResourceOptions(version="2.10.0"))
vpc, _ := ec2.NewVpc(ctx, "vpc", &ec2.VpcArgs{}, pulumi.Version("2.10.0"))
var vpc = new Aws.Ec2.Vpc("vpc", new Aws.Ec2.VpcArgs(),
    new CustomResourceOptions { Version = "2.10.0" });
var vpc = new com.pulumi.aws.ec2.Vpc("vpc",
    com.pulumi.aws.ec2.VpcArgs.Empty,
    CustomResourceOptions.builder()
        .version("2.10.0" )
        .build();
resources:
  vpc:
    type: aws:ec2:Vpc
    options:
      version: "2.10.0"