Skip to content

create_app_block_builder_streaming_url async

create_app_block_builder_streaming_url(
    *,
    config_overrides: Optional[AsyncAppStreamClientConfig] = None,
    app_block_builder_name: Optional[Name] = None,
    validity: Optional[Long] = None,
) -> CreateAppBlockBuilderStreamingURLResult

Creates a URL to start a create app block builder streaming session.

Parameters:

  • app_block_builder_name (Optional[Name], default: None ) –

    The name of the app block builder.

  • validity (Optional[Long], default: None ) –

    The time that the streaming URL will be valid, in seconds. Specify a value between 1 and 604800 seconds. The default is 3600 seconds.

Raises:

Source code in docs_src/capo_appstream/_services/async_app_stream.py
async def create_app_block_builder_streaming_url(
    self,
    *,
    config_overrides: Optional[AsyncAppStreamClientConfig] = None,
    app_block_builder_name: Optional["capo_appstream.types.name.Name"] = None,
    validity: Optional["capo_appstream.types.long.Long"] = None,
) -> "capo_appstream.types.create_app_block_builder_streaming_url_result.CreateAppBlockBuilderStreamingURLResult":
    """<p>Creates a URL to start a create app block builder streaming session.</p>

    Args:
        app_block_builder_name: <p>The name of the app block builder.</p>
        validity: <p>The time that the streaming URL will be valid, in seconds. Specify a value between 1 and 604800 seconds. The default is 3600 seconds.</p>

    Raises:
        capo_appstream.errors.operation_not_permitted_exception.OperationNotPermittedException: <p>The attempted operation is not permitted.</p>
        capo_appstream.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
        capo_appstream.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_appstream.types.create_app_block_builder_streaming_url_request.CreateAppBlockBuilderStreamingURLRequest]",
    ) -> AsyncOperationResponse[
        "capo_appstream.types.create_app_block_builder_streaming_url_result.CreateAppBlockBuilderStreamingURLResult"
    ]:
        import capo_appstream._operations.photon_admin_proxy_service.create_app_block_builder_streaming_url

        (
            output,
            http_response,
        ) = await capo_appstream._operations.photon_admin_proxy_service.create_app_block_builder_streaming_url.async_create_app_block_builder_streaming_url(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("CreateAppBlockBuilderStreamingURL")
    )
    input_: capo_appstream.types.create_app_block_builder_streaming_url_request.CreateAppBlockBuilderStreamingURLRequest = {}
    if app_block_builder_name is not None:
        input_["app_block_builder_name"] = app_block_builder_name
    if validity is not None:
        input_["validity"] = validity

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