modify_db_cluster_snapshot_attribute
async
¶
modify_db_cluster_snapshot_attribute(
*,
config_overrides: Optional[AsyncDocDBClientConfig] = None,
db_cluster_snapshot_identifier: Optional[String] = None,
attribute_name: Optional[String] = None,
values_to_add: Optional[AttributeValueList] = None,
values_to_remove: Optional[AttributeValueList] = None,
) -> ModifyDBClusterSnapshotAttributeResult
Adds an attribute and values to, or removes an attribute and values from, a manual cluster snapshot.
To share a manual cluster snapshot with other Amazon Web Services accounts, specify restore as the AttributeName, and use the ValuesToAdd parameter to add a list of IDs of the Amazon Web Services accounts that are authorized to restore the manual cluster snapshot. Use the value all to make the manual cluster snapshot public, which means that it can be copied or restored by all Amazon Web Services accounts. Do not add the all value for any manual cluster snapshots that contain private information that you don't want available to all Amazon Web Services accounts. If a manual cluster snapshot is encrypted, it can be shared, but only by specifying a list of authorized Amazon Web Services account IDs for the ValuesToAdd parameter. You can't use all as a value for that parameter in this case.
Parameters:
-
db_cluster_snapshot_identifier(Optional[String], default:None) –The identifier for the cluster snapshot to modify the attributes for.
-
attribute_name(Optional[String], default:None) –The name of the cluster snapshot attribute to modify.
To manage authorization for other Amazon Web Services accounts to copy or restore a manual cluster snapshot, set this value to
restore. -
values_to_add(Optional[AttributeValueList], default:None) –A list of cluster snapshot attributes to add to the attribute specified by
AttributeName.To authorize other Amazon Web Services accounts to copy or restore a manual cluster snapshot, set this list to include one or more Amazon Web Services account IDs. To make the manual cluster snapshot restorable by any Amazon Web Services account, set it to
all. Do not add theallvalue for any manual cluster snapshots that contain private information that you don't want to be available to all Amazon Web Services accounts. -
values_to_remove(Optional[AttributeValueList], default:None) –A list of cluster snapshot attributes to remove from the attribute specified by
AttributeName.To remove authorization for other Amazon Web Services accounts to copy or restore a manual cluster snapshot, set this list to include one or more Amazon Web Services account identifiers. To remove authorization for any Amazon Web Services account to copy or restore the cluster snapshot, set it to
all. If you specifyall, an Amazon Web Services account whose account ID is explicitly added to therestoreattribute can still copy or restore a manual cluster snapshot.
Raises:
-
DBClusterSnapshotNotFoundFault–DBClusterSnapshotIdentifierdoesn't refer to an existing cluster snapshot. -
InvalidDBClusterSnapshotStateFault–The provided value isn't a valid cluster snapshot state.
-
SharedSnapshotQuotaExceededFault–You have exceeded the maximum number of accounts that you can share a manual DB snapshot with.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_docdb/_services/async_doc_db.py
3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 | |