Describe the feature
The DocumentDB (docdb) client exposes CopyTagsToSnapshot on the instance type DBInstance and on the instance operations CreateDBInstance/ModifyDBInstance — but it is entirely absent from the cluster surface. Specifically, it is missing from every cluster-level write input:
CreateDBClusterInput
ModifyDBClusterInput
RestoreDBClusterFromSnapshotInput
RestoreDBClusterToPointInTimeInput
and it is also missing from the cluster read/output type DBCluster. As a result there is no way to either set or read cluster-level "copy tags to snapshot" behavior through the SDK.
Use Case
CloudFormation's AWS::DocDB::DBCluster resource already supports a CopyTagsToSnapshot property, and the AWS CDK exposes DatabaseCluster.copyTagsToSnapshot. The capability clearly exists in the service, but it is absent from the public API model used to generate the SDK, so SDK consumers (including the Terraform AWS provider) cannot offer it. Tracking issue downstream: hashicorp/terraform-provider-aws#39221.
Proposed Solution
Update the DocumentDB API model so CopyTagsToSnapshot is exposed on CreateDBCluster, ModifyDBCluster, RestoreDBClusterFromSnapshot, and RestoreDBClusterToPointInTime, and returned on the DBCluster data type so the value can be read back — matching the existing CloudFormation property.
Other Information
Acknowledgements
AWS Go SDK V2 Module Versions Used
v1.49.5
Go version used
go1.26.3 darwin/arm64
Describe the feature
The DocumentDB (
docdb) client exposesCopyTagsToSnapshoton the instance typeDBInstanceand on the instance operationsCreateDBInstance/ModifyDBInstance— but it is entirely absent from the cluster surface. Specifically, it is missing from every cluster-level write input:CreateDBClusterInputModifyDBClusterInputRestoreDBClusterFromSnapshotInputRestoreDBClusterToPointInTimeInputand it is also missing from the cluster read/output type
DBCluster. As a result there is no way to either set or read cluster-level "copy tags to snapshot" behavior through the SDK.Use Case
CloudFormation's
AWS::DocDB::DBClusterresource already supports aCopyTagsToSnapshotproperty, and the AWS CDK exposesDatabaseCluster.copyTagsToSnapshot. The capability clearly exists in the service, but it is absent from the public API model used to generate the SDK, so SDK consumers (including the Terraform AWS provider) cannot offer it. Tracking issue downstream: hashicorp/terraform-provider-aws#39221.Proposed Solution
Update the DocumentDB API model so
CopyTagsToSnapshotis exposed onCreateDBCluster,ModifyDBCluster,RestoreDBClusterFromSnapshot, andRestoreDBClusterToPointInTime, and returned on theDBClusterdata type so the value can be read back — matching the existing CloudFormation property.Other Information
github.com/aws/aws-sdk-go-v2/service/docdb(verified absent through v1.49.5, latest at time of writing)CreateDBCluster(property absent from request params): https://docs.aws.amazon.com/documentdb/latest/developerguide/API_CreateDBCluster.htmlDBClusterdata type (property absent from members): https://docs.aws.amazon.com/documentdb/latest/developerguide/API_DBCluster.htmlcreate_db_cluster(property absent): https://docs.aws.amazon.com/boto3/latest/reference/services/docdb/client/create_db_cluster.htmlAcknowledgements
AWS Go SDK V2 Module Versions Used
v1.49.5
Go version used
go1.26.3 darwin/arm64