Skip to content

describe_source_location

describe_source_location(
    source_location_name: __string,
    *,
    config_overrides: Optional[MediaTailorClientConfig] = None,
) -> DescribeSourceLocationResponse

Describes a source location. A source location is a container for sources. For more information about source locations, see Working with source locations in the MediaTailor User Guide.

Parameters:

  • source_location_name (__string) –

    The name of the source location.

Raises:

Source code in docs_src/capo_mediatailor/_services/media_tailor.py
def describe_source_location(
    self,
    source_location_name: "capo_mediatailor.types.__string.__string",
    *,
    config_overrides: Optional[MediaTailorClientConfig] = None,
) -> "capo_mediatailor.types.describe_source_location_response.DescribeSourceLocationResponse":
    """<p>Describes a source location. A source location is a container for sources. For more information about source locations, see <a href="https://docs.aws.amazon.com/mediatailor/latest/ug/channel-assembly-source-locations.html">Working with source locations</a> in the <i>MediaTailor User Guide</i>.</p>

    Args:
        source_location_name: <p>The name of the source location.</p>

    Raises:
        capo_mediatailor.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_mediatailor.types.describe_source_location_request.DescribeSourceLocationRequest]",
    ) -> OperationResponse[
        "capo_mediatailor.types.describe_source_location_response.DescribeSourceLocationResponse"
    ]:
        import capo_mediatailor._operations.media_tailor.describe_source_location

        output, http_response = (
            capo_mediatailor._operations.media_tailor.describe_source_location.describe_source_location(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeSourceLocation")
    )
    input_: capo_mediatailor.types.describe_source_location_request.DescribeSourceLocationRequest = {
        "source_location_name": source_location_name
    }

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