Skip to content

delete_theme_for_stack async

delete_theme_for_stack(
    *,
    config_overrides: Optional[AsyncAppStreamClientConfig] = None,
    stack_name: Optional[Name] = None,
) -> DeleteThemeForStackResult

Deletes custom branding that customizes the appearance of the streaming application catalog page.

Parameters:

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

    The name of the stack for the theme.

Raises:

Source code in docs_src/capo_appstream/_services/async_app_stream.py
async def delete_theme_for_stack(
    self,
    *,
    config_overrides: Optional[AsyncAppStreamClientConfig] = None,
    stack_name: Optional["capo_appstream.types.name.Name"] = None,
) -> "capo_appstream.types.delete_theme_for_stack_result.DeleteThemeForStackResult":
    """<p>Deletes custom branding that customizes the appearance of the streaming application catalog page.</p>

    Args:
        stack_name: <p>The name of the stack for the theme.</p>

    Raises:
        capo_appstream.errors.concurrent_modification_exception.ConcurrentModificationException: <p>An API error occurred. Wait a few minutes and try again.</p>
        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.delete_theme_for_stack_request.DeleteThemeForStackRequest]",
    ) -> AsyncOperationResponse[
        "capo_appstream.types.delete_theme_for_stack_result.DeleteThemeForStackResult"
    ]:
        import capo_appstream._operations.photon_admin_proxy_service.delete_theme_for_stack

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteThemeForStack")
    )
    input_: capo_appstream.types.delete_theme_for_stack_request.DeleteThemeForStackRequest = {}
    if stack_name is not None:
        input_["stack_name"] = stack_name

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