createServiceFunctionResources method

Future<CreateServiceFunctionResourcesResponse> createServiceFunctionResources({
  1. required List<String> resources,
  2. required String serviceArn,
  3. required String serviceFunctionId,
})

Associates resources with 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 associate with the service function.

Parameter serviceFunctionId : The identifier of the service function to associate resources with.

Implementation

Future<CreateServiceFunctionResourcesResponse>
    createServiceFunctionResources({
  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/create-service-function-resources',
    exceptionFnMap: _exceptionFns,
  );
  return CreateServiceFunctionResourcesResponse.fromJson(response);
}