disallowIntermediateTable method
Invalidates a specific intermediate table that references the caller's base table. The data provider (base table owner) calls this operation, not the intermediate table owner. By default, invalidation cascades to descendant intermediate tables.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter intermediateTableName :
The name of the intermediate table to disallow.
Parameter membershipIdentifier :
The unique identifier of the membership that contains the intermediate
table to disallow.
Parameter includeDescendants :
Specifies whether to cascade the disallow action to descendant
intermediate tables. Default is true.
Implementation
Future<void> disallowIntermediateTable({
required String intermediateTableName,
required String membershipIdentifier,
bool? includeDescendants,
}) async {
final $payload = <String, dynamic>{
'intermediateTableName': intermediateTableName,
if (includeDescendants != null) 'includeDescendants': includeDescendants,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/memberships/${Uri.encodeComponent(membershipIdentifier)}/disallowIntermediateTable',
exceptionFnMap: _exceptionFns,
);
}