Skip to content

delete_member

delete_member(
    collaboration_identifier: CollaborationIdentifier,
    account_id: AccountId,
    *,
    config_overrides: Optional[CleanRoomsClientConfig] = None,
) -> DeleteMemberOutput

Removes the specified member from a collaboration. The removed member is placed in the Removed status and can't interact with the collaboration. The removed member's data is inaccessible to active members of the collaboration.

Parameters:

  • collaboration_identifier (CollaborationIdentifier) –

    The unique identifier for the associated collaboration.

  • account_id (AccountId) –

    The account ID of the member to remove.

Raises:

Source code in docs_src/capo_cleanrooms/_services/clean_rooms.py
def delete_member(
    self,
    collaboration_identifier: "capo_cleanrooms.types.collaboration_identifier.CollaborationIdentifier",
    account_id: "capo_cleanrooms.types.account_id.AccountId",
    *,
    config_overrides: Optional[CleanRoomsClientConfig] = None,
) -> "capo_cleanrooms.types.delete_member_output.DeleteMemberOutput":
    """<p>Removes the specified member from a collaboration. The removed member is placed in the Removed status and can't interact with the collaboration. The removed member's data is inaccessible to active members of the collaboration.</p>

    Args:
        collaboration_identifier: <p>The unique identifier for the associated collaboration.</p>
        account_id: <p>The account ID of the member to remove.</p>

    Raises:
        capo_cleanrooms.errors.access_denied_exception.AccessDeniedException: <p>Caller does not have sufficient access to perform this action.</p>
        capo_cleanrooms.errors.conflict_exception.ConflictException: <p>Updating or deleting a resource can cause an inconsistent state.</p>
        capo_cleanrooms.errors.internal_server_exception.InternalServerException: <p>Unexpected error during processing of request.</p>
        capo_cleanrooms.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which does not exist.</p>
        capo_cleanrooms.errors.throttling_exception.ThrottlingException: <p>Request was denied due to request throttling.</p>
        capo_cleanrooms.errors.validation_exception.ValidationException: <p>The input fails to satisfy the specified constraints.</p>
        capo_cleanrooms.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_cleanrooms.types.delete_member_input.DeleteMemberInput]",
    ) -> OperationResponse[
        "capo_cleanrooms.types.delete_member_output.DeleteMemberOutput"
    ]:
        import capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.delete_member

        output, http_response = (
            capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.delete_member.delete_member(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteMember")
    )
    input_: capo_cleanrooms.types.delete_member_input.DeleteMemberInput = {
        "collaboration_identifier": collaboration_identifier,
        "account_id": account_id,
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output