deleteProfileShare method
Delete a profile share.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter profileArn :
The profile ARN.
Implementation
Future<void> deleteProfileShare({
required String profileArn,
required String shareId,
String? clientRequestToken,
}) async {
final $query = <String, List<String>>{
if (clientRequestToken != null)
'ClientRequestToken': [clientRequestToken],
};
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/profiles/${Uri.encodeComponent(profileArn)}/shares/${Uri.encodeComponent(shareId)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
}