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/async_app_stream.py
| async def describe_theme_for_stack(
self,
*,
config_overrides: Optional[AsyncAppStreamClientConfig] = 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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_appstream.types.describe_theme_for_stack_request.DescribeThemeForStackRequest]",
) -> AsyncOperationResponse[
"capo_appstream.types.describe_theme_for_stack_result.DescribeThemeForStackResult"
]:
import capo_appstream._operations.photon_admin_proxy_service.describe_theme_for_stack
(
output,
http_response,
) = await capo_appstream._operations.photon_admin_proxy_service.describe_theme_for_stack.async_describe_theme_for_stack(
req.options, req.input
)
return AsyncOperationResponse(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 = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|