updateGatewayInstance method

Future<UpdateGatewayInstanceResponse> updateGatewayInstance({
  1. required String gatewayInstanceArn,
  2. BridgePlacement? bridgePlacement,
})

Updates an existing gateway instance.

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

Parameter gatewayInstanceArn : The Amazon Resource Name (ARN) of the gateway instance that you want to update.

Parameter bridgePlacement : The state of the instance. ACTIVE or INACTIVE.

Implementation

Future<UpdateGatewayInstanceResponse> updateGatewayInstance({
  required String gatewayInstanceArn,
  BridgePlacement? bridgePlacement,
}) async {
  final $payload = <String, dynamic>{
    if (bridgePlacement != null) 'bridgePlacement': bridgePlacement.value,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri:
        '/v1/gateway-instances/${Uri.encodeComponent(gatewayInstanceArn)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateGatewayInstanceResponse.fromJson(response);
}