Skip to content

docdb: add CopyTagsToSnapshot to cluster operations #3450

Description

@lvthillo

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

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

AWS Go SDK V2 Module Versions Used

v1.49.5

Go version used

go1.26.3 darwin/arm64

Metadata

Metadata

Assignees

No one assigned

    Labels

    service-apiThis issue is due to a problem in a service API, not the SDK implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions