Skip to content

Commit b8557f0

Browse files
authored
chore(docdb): non-TS examples fail to build due to the wrong enum being used (#20906)
Due to a bug in jsii, only the first instance of enums that have duplicate values appear in non-TS languages. This means that non-TS examples that use the enums that do not appear fail to build. This PR changes the enums used to fix the failing examples. fixes #20747 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent a1df570 commit b8557f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/@aws-cdk/aws-docdb/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const cluster = new docdb.DatabaseCluster(this, 'Database', {
2525
excludeCharacters: '\"@/:', // optional, defaults to the set "\"@/" and is also used for eventually created rotations
2626
secretName: '/myapp/mydocdb/masteruser', // optional, if you prefer to specify the secret name
2727
},
28-
instanceType: ec2.InstanceType.of(ec2.InstanceClass.R5, ec2.InstanceSize.LARGE),
28+
instanceType: ec2.InstanceType.of(ec2.InstanceClass.MEMORY5, ec2.InstanceSize.LARGE),
2929
vpcSubnets: {
3030
subnetType: ec2.SubnetType.PUBLIC,
3131
},
@@ -78,7 +78,7 @@ const cluster = new docdb.DatabaseCluster(this, 'Database', {
7878
masterUser: {
7979
username: 'myuser',
8080
},
81-
instanceType: ec2.InstanceType.of(ec2.InstanceClass.R5, ec2.InstanceSize.LARGE),
81+
instanceType: ec2.InstanceType.of(ec2.InstanceClass.MEMORY5, ec2.InstanceSize.LARGE),
8282
vpcSubnets: {
8383
subnetType: ec2.SubnetType.PUBLIC,
8484
},
@@ -150,7 +150,7 @@ const cluster = new docdb.DatabaseCluster(this, 'Database', {
150150
masterUser: {
151151
username: 'myuser',
152152
},
153-
instanceType: ec2.InstanceType.of(ec2.InstanceClass.R5, ec2.InstanceSize.LARGE),
153+
instanceType: ec2.InstanceType.of(ec2.InstanceClass.MEMORY5, ec2.InstanceSize.LARGE),
154154
vpcSubnets: {
155155
subnetType: ec2.SubnetType.PUBLIC,
156156
},

0 commit comments

Comments
 (0)