Skip to content

batch_create_attendee

batch_create_attendee(
    meeting_id: GuidString,
    attendees: CreateAttendeeRequestItemList,
    *,
    config_overrides: Optional[ChimeSDKMeetingsClientConfig] = None,
) -> BatchCreateAttendeeResponse

Creates up to 100 attendees for an active Amazon Chime SDK meeting. For more information about the Amazon Chime SDK, see Using the Amazon Chime SDK in the Amazon Chime Developer Guide.

Parameters:

  • meeting_id (GuidString) –

    The Amazon Chime SDK ID of the meeting to which you're adding attendees.

  • attendees (CreateAttendeeRequestItemList) –

    The attendee information, including attendees' IDs and join tokens.

Raises:

Source code in docs_src/capo_chime_sdk_meetings/_services/chime_sdk_meetings.py
def batch_create_attendee(
    self,
    meeting_id: "capo_chime_sdk_meetings.types.guid_string.GuidString",
    attendees: "capo_chime_sdk_meetings.types.create_attendee_request_item_list.CreateAttendeeRequestItemList",
    *,
    config_overrides: Optional[ChimeSDKMeetingsClientConfig] = None,
) -> "capo_chime_sdk_meetings.types.batch_create_attendee_response.BatchCreateAttendeeResponse":
    """<p>Creates up to 100 attendees for an active Amazon Chime SDK meeting. For more information about the Amazon Chime SDK, see <a href="https://docs.aws.amazon.com/chime-sdk/latest/dg/meetings-sdk.html">Using the Amazon Chime SDK</a> in the <i>Amazon Chime Developer Guide</i>.</p>

    Args:
        meeting_id: <p>The Amazon Chime SDK ID of the meeting to which you're adding attendees.</p>
        attendees: <p>The attendee information, including attendees' IDs and join tokens.</p>

    Raises:
        capo_chime_sdk_meetings.errors.bad_request_exception.BadRequestException: <p>The input parameters don't match the service's restrictions.</p>
        capo_chime_sdk_meetings.errors.forbidden_exception.ForbiddenException: <p>The client is permanently forbidden from making the request.</p>
        capo_chime_sdk_meetings.errors.limit_exceeded_exception.LimitExceededException: <p>The request exceeds the resource limit.</p>
        capo_chime_sdk_meetings.errors.not_found_exception.NotFoundException: <p>One or more of the resources in the request does not exist in the system.</p>
        capo_chime_sdk_meetings.errors.service_failure_exception.ServiceFailureException: <p>The service encountered an unexpected error.</p>
        capo_chime_sdk_meetings.errors.service_unavailable_exception.ServiceUnavailableException: <p>The service is currently unavailable.</p>
        capo_chime_sdk_meetings.errors.throttling_exception.ThrottlingException: <p>The number of customer requests exceeds the request rate limit.</p>
        capo_chime_sdk_meetings.errors.unauthorized_exception.UnauthorizedException: <p>The user isn't authorized to request a resource.</p>
        capo_chime_sdk_meetings.errors.unprocessable_entity_exception.UnprocessableEntityException: <p>The request was well-formed but was unable to be followed due to semantic errors.</p>
        capo_chime_sdk_meetings.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_chime_sdk_meetings.types.batch_create_attendee_request.BatchCreateAttendeeRequest]",
    ) -> OperationResponse[
        "capo_chime_sdk_meetings.types.batch_create_attendee_response.BatchCreateAttendeeResponse"
    ]:
        import capo_chime_sdk_meetings._operations.chime_meetings_sdk_service.batch_create_attendee

        output, http_response = (
            capo_chime_sdk_meetings._operations.chime_meetings_sdk_service.batch_create_attendee.batch_create_attendee(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    def _redact_input(
        input_: "capo_chime_sdk_meetings.types.batch_create_attendee_request.BatchCreateAttendeeRequest",
    ) -> dict[str, Any]:
        import capo_chime_sdk_meetings.types.batch_create_attendee_request

        return capo_chime_sdk_meetings.types.batch_create_attendee_request.redact_sensitive(
            input_
        )

    def _redact_output(
        output: "capo_chime_sdk_meetings.types.batch_create_attendee_response.BatchCreateAttendeeResponse",
    ) -> dict[str, Any]:
        import capo_chime_sdk_meetings.types.batch_create_attendee_response

        return capo_chime_sdk_meetings.types.batch_create_attendee_response.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging(
            "BatchCreateAttendee",
            redact_input=_redact_input,
            redact_output=_redact_output,
        ),
    )
    input_: capo_chime_sdk_meetings.types.batch_create_attendee_request.BatchCreateAttendeeRequest = {
        "meeting_id": meeting_id,
        "attendees": attendees,
    }

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