async def describe_app_block_builder_app_block_associations(
self,
*,
config_overrides: Optional[AsyncAppStreamClientConfig] = None,
app_block_arn: Optional["capo_appstream.types.arn.Arn"] = None,
app_block_builder_name: Optional["capo_appstream.types.name.Name"] = None,
max_results: Optional["capo_appstream.types.integer.Integer"] = None,
next_token: Optional["capo_appstream.types.string.String"] = None,
) -> "capo_appstream.types.describe_app_block_builder_app_block_associations_result.DescribeAppBlockBuilderAppBlockAssociationsResult":
"""<p>Retrieves a list that describes one or more app block builder associations.</p>
Args:
app_block_arn: <p>The ARN of the app block.</p>
app_block_builder_name: <p>The name of the app block builder.</p>
max_results: <p>The maximum size of each page of results.</p>
next_token: <p>The pagination token used to retrieve the next page of results for this operation.</p>
Raises:
capo_appstream.errors.invalid_parameter_combination_exception.InvalidParameterCombinationException: <p>Indicates an incorrect combination of parameters, or a missing parameter.</p>
capo_appstream.errors.operation_not_permitted_exception.OperationNotPermittedException: <p>The attempted operation is not permitted.</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_block_builder_app_block_associations_request.DescribeAppBlockBuilderAppBlockAssociationsRequest]",
) -> AsyncOperationResponse[
"capo_appstream.types.describe_app_block_builder_app_block_associations_result.DescribeAppBlockBuilderAppBlockAssociationsResult"
]:
import capo_appstream._operations.photon_admin_proxy_service.describe_app_block_builder_app_block_associations
(
output,
http_response,
) = await capo_appstream._operations.photon_admin_proxy_service.describe_app_block_builder_app_block_associations.async_describe_app_block_builder_app_block_associations(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("DescribeAppBlockBuilderAppBlockAssociations"),
)
input_: capo_appstream.types.describe_app_block_builder_app_block_associations_request.DescribeAppBlockBuilderAppBlockAssociationsRequest = {}
if app_block_arn is not None:
input_["app_block_arn"] = app_block_arn
if app_block_builder_name is not None:
input_["app_block_builder_name"] = app_block_builder_name
if max_results is not None:
input_["max_results"] = max_results
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