deleteEntitlement method

Future<void> deleteEntitlement({
  1. required String name,
  2. required String stackName,
})

Deletes the specified entitlement.

May throw ConcurrentModificationException. May throw EntitlementNotFoundException. May throw OperationNotPermittedException. May throw ResourceNotFoundException.

Parameter name : The name of the entitlement.

Parameter stackName : The name of the stack with which the entitlement is associated.

Implementation

Future<void> deleteEntitlement({
  required String name,
  required String stackName,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'PhotonAdminProxyService.DeleteEntitlement'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Name': name,
      'StackName': stackName,
    },
  );
}