Skip to content

update_sdi_source async

update_sdi_source(
    sdi_source_id: __string,
    *,
    config_overrides: Optional[AsyncMediaLiveClientConfig] = None,
    mode: Optional[SdiSourceMode] = None,
    name: Optional[__string] = None,
    type: Optional[SdiSourceType] = None,
) -> UpdateSdiSourceResponse

Change some of the settings in an SdiSource.

Parameters:

  • mode (Optional[SdiSourceMode], default: None ) –

    Include this parameter only if you want to change the name of the SdiSource. Specify a name that is unique in the AWS account. We recommend you assign a name that describes the source, for example curling-cameraA. Names are case-sensitive.

  • name (Optional[__string], default: None ) –

    Include this parameter only if you want to change the name of the SdiSource. Specify a name that is unique in the AWS account. We recommend you assign a name that describes the source, for example curling-cameraA. Names are case-sensitive.

  • sdi_source_id (__string) –

    The ID of the SdiSource

  • type (Optional[SdiSourceType], default: None ) –

    Include this parameter only if you want to change the mode. Specify the type of the SDI source: SINGLE: The source is a single-link source. QUAD: The source is one part of a quad-link source.

Raises:

Source code in docs_src/capo_medialive/_services/async_media_live.py
async def update_sdi_source(
    self,
    sdi_source_id: "capo_medialive.types.__string.__string",
    *,
    config_overrides: Optional[AsyncMediaLiveClientConfig] = None,
    mode: Optional["capo_medialive.types.sdi_source_mode.SdiSourceMode"] = None,
    name: Optional["capo_medialive.types.__string.__string"] = None,
    type: Optional["capo_medialive.types.sdi_source_type.SdiSourceType"] = None,
) -> "capo_medialive.types.update_sdi_source_response.UpdateSdiSourceResponse":
    """Change some of the settings in an SdiSource.

    Args:
        mode: Include this parameter only if you want to change the name of the SdiSource. Specify a name that is unique in the AWS account. We recommend you assign a name that describes the source, for example curling-cameraA. Names are case-sensitive.
        name: Include this parameter only if you want to change the name of the SdiSource. Specify a name that is unique in the AWS account. We recommend you assign a name that describes the source, for example curling-cameraA. Names are case-sensitive.
        sdi_source_id: The ID of the SdiSource
        type: Include this parameter only if you want to change the mode. Specify the type of the SDI source: SINGLE: The source is a single-link source. QUAD: The source is one part of a quad-link source.

    Raises:
        capo_medialive.errors.bad_gateway_exception.BadGatewayException: Placeholder documentation for BadGatewayException
        capo_medialive.errors.bad_request_exception.BadRequestException: Placeholder documentation for BadRequestException
        capo_medialive.errors.conflict_exception.ConflictException: Placeholder documentation for ConflictException
        capo_medialive.errors.forbidden_exception.ForbiddenException: Placeholder documentation for ForbiddenException
        capo_medialive.errors.gateway_timeout_exception.GatewayTimeoutException: Placeholder documentation for GatewayTimeoutException
        capo_medialive.errors.internal_server_error_exception.InternalServerErrorException: Placeholder documentation for InternalServerErrorException
        capo_medialive.errors.too_many_requests_exception.TooManyRequestsException: Placeholder documentation for TooManyRequestsException
        capo_medialive.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_medialive.types.update_sdi_source_request.UpdateSdiSourceRequest]",
    ) -> AsyncOperationResponse[
        "capo_medialive.types.update_sdi_source_response.UpdateSdiSourceResponse"
    ]:
        import capo_medialive._operations.media_live.update_sdi_source

        (
            output,
            http_response,
        ) = await capo_medialive._operations.media_live.update_sdi_source.async_update_sdi_source(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateSdiSource")
    )
    input_: capo_medialive.types.update_sdi_source_request.UpdateSdiSourceRequest = {
        "sdi_source_id": sdi_source_id
    }
    if mode is not None:
        input_["mode"] = mode
    if name is not None:
        input_["name"] = name
    if type is not None:
        input_["type"] = type

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output