updateBridgeState method
Future<UpdateBridgeStateResponse>
updateBridgeState({
- required String bridgeArn,
- required DesiredState desiredState,
Updates the bridge state.
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 the
state of.
Parameter desiredState :
The desired state for the bridge.
Implementation
Future<UpdateBridgeStateResponse> updateBridgeState({
required String bridgeArn,
required DesiredState desiredState,
}) async {
final $payload = <String, dynamic>{
'desiredState': desiredState.value,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/v1/bridges/${Uri.encodeComponent(bridgeArn)}/state',
exceptionFnMap: _exceptionFns,
);
return UpdateBridgeStateResponse.fromJson(response);
}