cancelResize method

Future<ResizeProgressMessage> cancelResize({
  1. required String clusterIdentifier,
})

Cancels a resize operation for a cluster.

May throw ClusterNotFoundFault. May throw ResizeNotFoundFault. May throw InvalidClusterStateFault. May throw UnsupportedOperationFault.

Parameter clusterIdentifier : The unique identifier for the cluster that you want to cancel a resize operation for.

Implementation

Future<ResizeProgressMessage> cancelResize({
  required String clusterIdentifier,
}) async {
  ArgumentError.checkNotNull(clusterIdentifier, 'clusterIdentifier');
  _s.validateStringLength(
    'clusterIdentifier',
    clusterIdentifier,
    0,
    2147483647,
    isRequired: true,
  );
  final $request = <String, dynamic>{};
  $request['ClusterIdentifier'] = clusterIdentifier;
  final $result = await _protocol.send(
    $request,
    action: 'CancelResize',
    version: '2012-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['CancelResizeMessage'],
    shapes: shapes,
    resultWrapper: 'CancelResizeResult',
  );
  return ResizeProgressMessage.fromXml($result);
}