deleteSnapshotCopyGrant method
Deletes the specified snapshot copy grant.
May throw InvalidSnapshotCopyGrantStateFault. May throw SnapshotCopyGrantNotFoundFault.
Parameter snapshotCopyGrantName
:
The name of the snapshot copy grant to delete.
Implementation
Future<void> deleteSnapshotCopyGrant({
required String snapshotCopyGrantName,
}) async {
ArgumentError.checkNotNull(snapshotCopyGrantName, 'snapshotCopyGrantName');
_s.validateStringLength(
'snapshotCopyGrantName',
snapshotCopyGrantName,
0,
2147483647,
isRequired: true,
);
final $request = <String, dynamic>{};
$request['SnapshotCopyGrantName'] = snapshotCopyGrantName;
await _protocol.send(
$request,
action: 'DeleteSnapshotCopyGrant',
version: '2012-12-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DeleteSnapshotCopyGrantMessage'],
shapes: shapes,
);
}