deleteResourceShare method
Deletes the specified resource share.
May throw OperationNotPermittedException. May throw IdempotentParameterMismatchException. May throw InvalidStateTransitionException. May throw UnknownResourceException. May throw MalformedArnException. May throw InvalidClientTokenException. May throw InvalidParameterException. May throw ServerInternalException. May throw ServiceUnavailableException.
Parameter resourceShareArn
:
The Amazon Resource Name (ARN) of the resource share.
Parameter clientToken
:
A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
Implementation
Future<DeleteResourceShareResponse> deleteResourceShare({
required String resourceShareArn,
String? clientToken,
}) async {
ArgumentError.checkNotNull(resourceShareArn, 'resourceShareArn');
final $query = <String, List<String>>{
'resourceShareArn': [resourceShareArn],
if (clientToken != null) 'clientToken': [clientToken],
};
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/deleteresourceshare',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return DeleteResourceShareResponse.fromJson(response);
}