RDS / Client / describe_db_cluster_snapshot_attributes
describe_db_cluster_snapshot_attributes¶
- RDS.Client.describe_db_cluster_snapshot_attributes(**kwargs)¶
- Returns a list of DB cluster snapshot attribute names and values for a manual DB cluster snapshot. - When sharing snapshots with other Amazon Web Services accounts, - DescribeDBClusterSnapshotAttributesreturns the- restoreattribute and a list of IDs for the Amazon Web Services accounts that are authorized to copy or restore the manual DB cluster snapshot. If- allis included in the list of values for the- restoreattribute, then the manual DB cluster snapshot is public and can be copied or restored by all Amazon Web Services accounts.- To add or remove access for an Amazon Web Services account to copy or restore a manual DB cluster snapshot, or to make the manual DB cluster snapshot public or private, use the - ModifyDBClusterSnapshotAttributeAPI action.- See also: AWS API Documentation - Request Syntax- response = client.describe_db_cluster_snapshot_attributes( DBClusterSnapshotIdentifier='string' ) - Parameters:
- DBClusterSnapshotIdentifier (string) – - [REQUIRED] - The identifier for the DB cluster snapshot to describe the attributes for. 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'DBClusterSnapshotAttributesResult': { 'DBClusterSnapshotIdentifier': 'string', 'DBClusterSnapshotAttributes': [ { 'AttributeName': 'string', 'AttributeValues': [ 'string', ] }, ] } } - Response Structure- (dict) – - DBClusterSnapshotAttributesResult (dict) – - Contains the results of a successful call to the - DescribeDBClusterSnapshotAttributesAPI action.- Manual DB cluster snapshot attributes are used to authorize other Amazon Web Services accounts to copy or restore a manual DB cluster snapshot. For more information, see the - ModifyDBClusterSnapshotAttributeAPI action.- DBClusterSnapshotIdentifier (string) – - The identifier of the manual DB cluster snapshot that the attributes apply to. 
- DBClusterSnapshotAttributes (list) – - The list of attributes and values for the manual DB cluster snapshot. - (dict) – - Contains the name and values of a manual DB cluster snapshot attribute. - Manual DB cluster snapshot attributes are used to authorize other Amazon Web Services accounts to restore a manual DB cluster snapshot. For more information, see the - ModifyDBClusterSnapshotAttributeAPI action.- AttributeName (string) – - The name of the manual DB cluster snapshot attribute. - The attribute named - restorerefers to the list of Amazon Web Services accounts that have permission to copy or restore the manual DB cluster snapshot. For more information, see the- ModifyDBClusterSnapshotAttributeAPI action.
- AttributeValues (list) – - The value(s) for the manual DB cluster snapshot attribute. - If the - AttributeNamefield is set to- restore, then this element returns a list of IDs of the Amazon Web Services accounts that are authorized to copy or restore the manual DB cluster snapshot. If a value of- allis in the list, then the manual DB cluster snapshot is public and available for any Amazon Web Services account to copy or restore.- (string) – 
 
 
 
 
 
 
 - Exceptions- Examples- This example lists attributes for the specified DB cluster snapshot. - response = client.describe_db_cluster_snapshot_attributes( DBClusterSnapshotIdentifier='mydbclustersnapshot', ) print(response) - Expected Output: - { 'DBClusterSnapshotAttributesResult': { }, 'ResponseMetadata': { '...': '...', }, }