updateAppVersion method

Future<UpdateAppVersionResponse> updateAppVersion({
  1. required String appArn,
  2. Map<String, List<String>>? additionalInfo,
})

Updates the Resilience Hub application version.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter appArn : Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.

Parameter additionalInfo : Additional configuration parameters for an Resilience Hub application. If you want to implement additionalInfo through the Resilience Hub console rather than using an API call, see Configure the application configuration parameters.

Key: "failover-regions"

Value: "[{"region":"<REGION>", "accounts":[{"id":"<ACCOUNT_ID>"}]}]"

Implementation

Future<UpdateAppVersionResponse> updateAppVersion({
  required String appArn,
  Map<String, List<String>>? additionalInfo,
}) async {
  final $payload = <String, dynamic>{
    'appArn': appArn,
    if (additionalInfo != null) 'additionalInfo': additionalInfo,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/update-app-version',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateAppVersionResponse.fromJson(response);
}