describeDBClusterSnapshotAttributes method

Future<DescribeDBClusterSnapshotAttributesResult> describeDBClusterSnapshotAttributes({
  1. required String dBClusterSnapshotIdentifier,
})

Returns a list of DB cluster snapshot attribute names and values for a manual DB cluster snapshot.

When sharing 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 DB cluster snapshot. If all is included in the list of values for the restore attribute, then the manual DB cluster snapshot is public and can be copied or restored by all AWS accounts.

To add or remove access for an AWS account to copy or restore a manual DB cluster snapshot, or to make the manual DB cluster snapshot public or private, use the ModifyDBClusterSnapshotAttribute API action.

May throw DBClusterSnapshotNotFoundFault.

Parameter dBClusterSnapshotIdentifier : The identifier for the DB 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);
}