Retrieves a list that describes one or more specified stacks, if the stack names are provided. Otherwise, all stacks in the account are described.
Parameters:
-
names
(Optional[StringList], default:
None
)
–
The names of the stacks to describe.
-
next_token
(Optional[String], default:
None
)
–
The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
Raises:
Source code in docs_src/capo_appstream/_services/async_app_stream.py
| async def describe_stacks(
self,
*,
config_overrides: Optional[AsyncAppStreamClientConfig] = None,
names: Optional["capo_appstream.types.string_list.StringList"] = None,
next_token: Optional["capo_appstream.types.string.String"] = None,
) -> "capo_appstream.types.describe_stacks_result.DescribeStacksResult":
"""<p>Retrieves a list that describes one or more specified stacks, if the stack names are provided. Otherwise, all stacks in the account are described.</p>
Args:
names: <p>The names of the stacks to describe.</p>
next_token: <p>The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.</p>
Raises:
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_stacks_request.DescribeStacksRequest]",
) -> AsyncOperationResponse[
"capo_appstream.types.describe_stacks_result.DescribeStacksResult"
]:
import capo_appstream._operations.photon_admin_proxy_service.describe_stacks
(
output,
http_response,
) = await capo_appstream._operations.photon_admin_proxy_service.describe_stacks.async_describe_stacks(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeStacks")
)
input_: capo_appstream.types.describe_stacks_request.DescribeStacksRequest = {}
if names is not None:
input_["names"] = names
if next_token is not None:
input_["next_token"] = next_token
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|