Java - "Malformed enum value"
See original GitHub issueUsing 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
.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:8 (7 by maintainers)
Top Results From Across the Web
"Malformed JSON" from http get request - Stack Overflow
I've tried a lot of stuff to parse theses datas into a HashMap ([category, category_color] for each element) like this : StringBuilder sb...
Read more >Attaching Values to Java Enum - Baeldung
Java provides a valueOf(String) method for all enum types. Thus, we can always get an enum value based on the declared name: assertSame(Element....
Read more >XML Security - OWASP Cheat Sheet Series
This cheat sheet exposes how to exploit the different possibilities in libraries and software divided in two sections: Malformed XML Documents: vulnerabilities ...
Read more >RFC 7950: The YANG 1.1 Data Modeling Language
1. The leaf's Default Value The default value of a leaf is the value that the server uses if the leaf does not...
Read more >JavaScript data types and data structures - MDN Web Docs
For symbols and BigInts, JavaScript has intentionally disallowed certain implicit type conversions. Primitive values. All types except Object ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Apologies for the unpleasant experience!
Thanks for reporting. We understand why this happens and will hopefully include a fix in our next release, probably early next week.