Skip to content

describe_theme_for_stack

describe_theme_for_stack(
    *,
    config_overrides: Optional[AppStreamClientConfig] = None,
    stack_name: Optional[Name] = None,
) -> DescribeThemeForStackResult

Retrieves a list that describes the theme for a specified stack. A theme is 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/app_stream.py
def describe_theme_for_stack(
    self,
    *,
    config_overrides: Optional[AppStreamClientConfig] = None,
    stack_name: Optional["capo_appstream.types.name.Name"] = None,
) -> "capo_appstream.types.describe_theme_for_stack_result.DescribeThemeForStackResult":
    """<p>Retrieves a list that describes the theme for a specified stack. A theme is 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.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.
    """

    def _handler(
        req: "OperationRequest[capo_appstream.types.describe_theme_for_stack_request.DescribeThemeForStackRequest]",
    ) -> OperationResponse[
        "capo_appstream.types.describe_theme_for_stack_result.DescribeThemeForStackResult"
    ]:
        import capo_appstream._operations.photon_admin_proxy_service.describe_theme_for_stack

        output, http_response = (
            capo_appstream._operations.photon_admin_proxy_service.describe_theme_for_stack.describe_theme_for_stack(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

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

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