Retrieves a list that describes one or more app blocks.
Parameters:
-
arns
(Optional[ArnList], default:
None
)
–
The ARNs of the app blocks.
-
next_token
(Optional[String], default:
None
)
–
The pagination token used to retrieve the next page of results for this operation.
-
max_results
(Optional[Integer], default:
None
)
–
The maximum size of each page of results.
Raises:
Source code in docs_src/capo_appstream/_services/async_app_stream.py
| async def describe_app_blocks(
self,
*,
config_overrides: Optional[AsyncAppStreamClientConfig] = None,
arns: Optional["capo_appstream.types.arn_list.ArnList"] = None,
next_token: Optional["capo_appstream.types.string.String"] = None,
max_results: Optional["capo_appstream.types.integer.Integer"] = None,
) -> "capo_appstream.types.describe_app_blocks_result.DescribeAppBlocksResult":
"""<p>Retrieves a list that describes one or more app blocks.</p>
Args:
arns: <p>The ARNs of the app blocks.</p>
next_token: <p>The pagination token used to retrieve the next page of results for this operation.</p>
max_results: <p>The maximum size of each page of results.</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_app_blocks_request.DescribeAppBlocksRequest]",
) -> AsyncOperationResponse[
"capo_appstream.types.describe_app_blocks_result.DescribeAppBlocksResult"
]:
import capo_appstream._operations.photon_admin_proxy_service.describe_app_blocks
(
output,
http_response,
) = await capo_appstream._operations.photon_admin_proxy_service.describe_app_blocks.async_describe_app_blocks(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeAppBlocks")
)
input_: capo_appstream.types.describe_app_blocks_request.DescribeAppBlocksRequest = {}
if arns is not None:
input_["arns"] = arns
if next_token is not None:
input_["next_token"] = next_token
if max_results is not None:
input_["max_results"] = max_results
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|