revokeFlowEntitlement method

Future<RevokeFlowEntitlementResponse> revokeFlowEntitlement({
  1. required String entitlementArn,
  2. required String flowArn,
})

Revokes an entitlement from a flow. Once an entitlement is revoked, the content becomes unavailable to the subscriber and the associated output is removed.

May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceUnavailableException. May throw TooManyRequestsException.

Parameter entitlementArn : The ARN of the entitlement that you want to revoke.

Parameter flowArn : The flow that you want to revoke an entitlement from.

Implementation

Future<RevokeFlowEntitlementResponse> revokeFlowEntitlement({
  required String entitlementArn,
  required String flowArn,
}) async {
  ArgumentError.checkNotNull(entitlementArn, 'entitlementArn');
  ArgumentError.checkNotNull(flowArn, 'flowArn');
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/v1/flows/${Uri.encodeComponent(flowArn)}/entitlements/${Uri.encodeComponent(entitlementArn)}',
    exceptionFnMap: _exceptionFns,
  );
  return RevokeFlowEntitlementResponse.fromJson(response);
}