deleteServiceFunctionResources method
Removes resources from a service function.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter resources :
The list of resources to remove from the service function.
Parameter serviceFunctionId :
The identifier of the service function to remove resources from.
Implementation
Future<DeleteServiceFunctionResourcesResponse>
deleteServiceFunctionResources({
required List<String> resources,
required String serviceArn,
required String serviceFunctionId,
}) async {
final $payload = <String, dynamic>{
'resources': resources,
'serviceArn': serviceArn,
'serviceFunctionId': serviceFunctionId,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/v2/delete-service-function-resources',
exceptionFnMap: _exceptionFns,
);
return DeleteServiceFunctionResourcesResponse.fromJson(response);
}