addBridgeSources method

Future<AddBridgeSourcesResponse> addBridgeSources({
  1. required String bridgeArn,
  2. required List<AddBridgeSourceRequest> sources,
})

Adds sources to an existing bridge.

May throw BadRequestException. May throw ConflictException. May throw ForbiddenException. May throw InternalServerErrorException. May throw NotFoundException. May throw ServiceUnavailableException. May throw TooManyRequestsException.

Parameter bridgeArn : The Amazon Resource Name (ARN) of the bridge that you want to update.

Parameter sources : The sources that you want to add to this bridge.

Implementation

Future<AddBridgeSourcesResponse> addBridgeSources({
  required String bridgeArn,
  required List<AddBridgeSourceRequest> sources,
}) async {
  final $payload = <String, dynamic>{
    'sources': sources,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/v1/bridges/${Uri.encodeComponent(bridgeArn)}/sources',
    exceptionFnMap: _exceptionFns,
  );
  return AddBridgeSourcesResponse.fromJson(response);
}