Skip to content

Java - "Malformed enum value" #467

@maciejwalkowiak

Description

@maciejwalkowiak

Using version "0.8.0", creating VPC stack does not work:

VpcNetwork vpc = new VpcNetwork(this,
            "MyCdkVpc",
            VpcNetworkProps.builder()
                           .withCidr("10.0.0.0/16")
                           .withMaxAZs(3)
                           .withSubnetConfiguration(Arrays.asList(
                                   SubnetConfiguration.builder()
                                                      .withSubnetType(SubnetType.Private)
                                                      .withName("my-private-subnet-1")
                                                      .withCidrMask(24)
                                                      .build()))    
                           .withNatGateways(1)
                           .build());

Results in following error:

Malformed enum value: @aws-cdk/aws-ec2.SubnetType/Private
Error: Malformed enum value: @aws-cdk/aws-ec2.SubnetType/Private

when executing cdk deploy.

Same applies to other enums like DefaultInstanceTenancy.

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions