Skip to content

(documentDB): (Expose CACertificateIdentifier in L2 Construct) #28356

@HaaLeo

Description

@HaaLeo

Describe the feature

Pls expose the CloudFormation CACertificateIdentifier property on the L2 construct docDb.DatabaseCluster

Use Case

With that one does not have to use Aspects to set the ca certificate

Proposed Solution

If one can guide me I might be able to submit a PR myself.

Other Information

Right now one can use Aspects as a workaround:

import * as docDb from 'aws-cdk-lib/aws-docdb';

let database: docDb.DatabaseCluster;

// ... 

cdk.Aspects.of(database).add({
    visit: (node) => {
        if (node instanceof docDb.CfnDBInstance) {
            node.addPropertyOverride('CACertificateIdentifier', 'rds-ca-rsa2048-g1');
        }
    }
});

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.100.0

Environment details (OS name and version, etc.)

macOS 14.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-docdbRelated to Amazon DocumentDBeffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions