abortEnvironmentUpdate method

Future<void> abortEnvironmentUpdate(
  1. {String? environmentId,
  2. String? environmentName}
)

Cancels in-progress environment configuration update or application version deployment.

May throw InsufficientPrivilegesException.

Parameter environmentId : This specifies the ID of the environment with the in-progress update that you want to cancel.

Parameter environmentName : This specifies the name of the environment with the in-progress update that you want to cancel.

Implementation

Future<void> abortEnvironmentUpdate({
  String? environmentId,
  String? environmentName,
}) async {
  _s.validateStringLength(
    'environmentName',
    environmentName,
    4,
    40,
  );
  final $request = <String, dynamic>{};
  environmentId?.also((arg) => $request['EnvironmentId'] = arg);
  environmentName?.also((arg) => $request['EnvironmentName'] = arg);
  await _protocol.send(
    $request,
    action: 'AbortEnvironmentUpdate',
    version: '2010-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['AbortEnvironmentUpdateMessage'],
    shapes: shapes,
  );
}