stopStackSetOperation method

Future<void> stopStackSetOperation({
  1. required String operationId,
  2. required String stackSetName,
})

Stops an in-progress operation on a stack set and its associated stack instances.

May throw StackSetNotFoundException. May throw OperationNotFoundException. May throw InvalidOperationException.

Parameter operationId : The ID of the stack operation.

Parameter stackSetName : The name or unique ID of the stack set that you want to stop the operation for.

Implementation

Future<void> stopStackSetOperation({
  required String operationId,
  required String stackSetName,
}) async {
  ArgumentError.checkNotNull(operationId, 'operationId');
  _s.validateStringLength(
    'operationId',
    operationId,
    1,
    128,
    isRequired: true,
  );
  ArgumentError.checkNotNull(stackSetName, 'stackSetName');
  final $request = <String, dynamic>{};
  $request['OperationId'] = operationId;
  $request['StackSetName'] = stackSetName;
  await _protocol.send(
    $request,
    action: 'StopStackSetOperation',
    version: '2010-05-15',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['StopStackSetOperationInput'],
    shapes: shapes,
    resultWrapper: 'StopStackSetOperationResult',
  );
}