deleteProfileShare method

Future<void> deleteProfileShare({
  1. required String profileArn,
  2. required String shareId,
  3. String? clientRequestToken,
})

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,
  );
}