deleteConstraint method

Future<void> deleteConstraint({
  1. required String id,
  2. String? acceptLanguage,
})

Deletes the specified constraint.

A delegated admin is authorized to invoke this command.

May throw InvalidParametersException. May throw ResourceNotFoundException.

Parameter id : The identifier of the constraint.

Parameter acceptLanguage : The language code.

  • jp - Japanese
  • zh - Chinese

Implementation

Future<void> deleteConstraint({
  required String id,
  String? acceptLanguage,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWS242ServiceCatalogService.DeleteConstraint'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Id': id,
      if (acceptLanguage != null) 'AcceptLanguage': acceptLanguage,
    },
  );
}