aws_docdb - CfnDBInstance #31722
Labels
@aws-cdk/aws-docdb
Related to Amazon DocumentDB
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
p2
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
Documented Construct Property
caCertificateIdentifier
does not exist for the CfnDBInstance & CfnDBInstanceProps in the aws-cdk-lib\aws_docdb type. CDK version 2.161.1 and 2.162.0 tested, likely other versions will see this too.https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_docdb.CfnDBInstance.html#construct-props
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
Synth renders a template with a valid resource using the documented properties without error.
Current Behavior
Error:
return new TSError(diagnosticText, diagnosticCodes, diagnostics);
^
TSError: ⨯ Unable to compile TypeScript:
infrastructure/lib/docdb-cluster.ts:88:7 - error TS2345: Argument of type '{ dbInstanceIdentifier: string; dbInstanceClass: string; availabilityZone: string; enablePerformanceInsights: false; preferredMaintenanceWindow: string; autoMinorVersionUpgrade: true; dbClusterIdentifier: string; caCertificateIdentifier: string; certificateRotationRestart: boolean; }' is not assignable to parameter of type 'CfnDBInstanceProps'.
Object literal may only specify known properties, and 'caCertificateIdentifier' does not exist in type 'CfnDBInstanceProps'.
caCertificateIdentifier: 'rds-ca-rsa4096-g1'
Reproduction Steps
Steps to reproduce:
caCertificateIdentifier
property to the CfnDBInstance construct to the type, as documented.Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.161.1
Framework Version
No response
Node.js Version
v18.18.0
OS
MacOS 15.0.1
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: