disassociatePermission method

Future<void> disassociatePermission({
  1. required String applicationId,
  2. required String statementId,
})

Removes a permission policy from a Amazon Q Business application, revoking the cross-account access that was previously granted to an ISV. This operation deletes the specified policy statement from the application's permission policy.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter applicationId : The unique identifier of the Amazon Q Business application.

Parameter statementId : The statement ID of the permission to remove.

Implementation

Future<void> disassociatePermission({
  required String applicationId,
  required String statementId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/applications/${Uri.encodeComponent(applicationId)}/policy/${Uri.encodeComponent(statementId)}',
    exceptionFnMap: _exceptionFns,
  );
}