updateBridge method

Future<UpdateBridgeResponse> updateBridge({
  1. required String bridgeArn,
  2. UpdateEgressGatewayBridgeRequest? egressGatewayBridge,
  3. UpdateIngressGatewayBridgeRequest? ingressGatewayBridge,
  4. UpdateFailoverConfig? sourceFailoverConfig,
})

Updates the bridge.

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

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

Parameter egressGatewayBridge : A cloud-to-ground bridge. The content comes from an existing MediaConnect flow and is delivered to your premises.

Parameter ingressGatewayBridge : A ground-to-cloud bridge. The content originates at your premises and is delivered to the cloud.

Parameter sourceFailoverConfig : The settings for source failover.

Implementation

Future<UpdateBridgeResponse> updateBridge({
  required String bridgeArn,
  UpdateEgressGatewayBridgeRequest? egressGatewayBridge,
  UpdateIngressGatewayBridgeRequest? ingressGatewayBridge,
  UpdateFailoverConfig? sourceFailoverConfig,
}) async {
  final $payload = <String, dynamic>{
    if (egressGatewayBridge != null)
      'egressGatewayBridge': egressGatewayBridge,
    if (ingressGatewayBridge != null)
      'ingressGatewayBridge': ingressGatewayBridge,
    if (sourceFailoverConfig != null)
      'sourceFailoverConfig': sourceFailoverConfig,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/v1/bridges/${Uri.encodeComponent(bridgeArn)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateBridgeResponse.fromJson(response);
}