describeDBClusterSnapshotAttributes method
Future<DescribeDBClusterSnapshotAttributesResult>
describeDBClusterSnapshotAttributes({
- required String dBClusterSnapshotIdentifier,
Returns a list of cluster snapshot attribute names and values for a manual DB cluster snapshot.
When you share snapshots with other AWS accounts,
DescribeDBClusterSnapshotAttributes
returns the
restore
attribute and a list of IDs for the AWS accounts that
are authorized to copy or restore the manual cluster snapshot. If
all
is included in the list of values for the
restore
attribute, then the manual cluster snapshot is public
and can be copied or restored by all AWS accounts.
May throw DBClusterSnapshotNotFoundFault.
Parameter dBClusterSnapshotIdentifier
:
The identifier for the cluster snapshot to describe the attributes for.
Implementation
Future<DescribeDBClusterSnapshotAttributesResult>
describeDBClusterSnapshotAttributes({
required String dBClusterSnapshotIdentifier,
}) async {
ArgumentError.checkNotNull(
dBClusterSnapshotIdentifier, 'dBClusterSnapshotIdentifier');
final $request = <String, dynamic>{};
$request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier;
final $result = await _protocol.send(
$request,
action: 'DescribeDBClusterSnapshotAttributes',
version: '2014-10-31',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DescribeDBClusterSnapshotAttributesMessage'],
shapes: shapes,
resultWrapper: 'DescribeDBClusterSnapshotAttributesResult',
);
return DescribeDBClusterSnapshotAttributesResult.fromXml($result);
}