deleteSizeConstraintSet method

Future<DeleteSizeConstraintSetResponse> deleteSizeConstraintSet({
  1. required String changeToken,
  2. required String sizeConstraintSetId,
})

Implementation

Future<DeleteSizeConstraintSetResponse> deleteSizeConstraintSet({
  required String changeToken,
  required String sizeConstraintSetId,
}) async {
  ArgumentError.checkNotNull(changeToken, 'changeToken');
  _s.validateStringLength(
    'changeToken',
    changeToken,
    1,
    128,
    isRequired: true,
  );
  ArgumentError.checkNotNull(sizeConstraintSetId, 'sizeConstraintSetId');
  _s.validateStringLength(
    'sizeConstraintSetId',
    sizeConstraintSetId,
    1,
    128,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSWAF_Regional_20161128.DeleteSizeConstraintSet'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ChangeToken': changeToken,
      'SizeConstraintSetId': sizeConstraintSetId,
    },
  );

  return DeleteSizeConstraintSetResponse.fromJson(jsonResponse.body);
}