Skip to content

describe_app_block_builder_app_block_associations

describe_app_block_builder_app_block_associations(
    *,
    config_overrides: Optional[AppStreamClientConfig] = None,
    app_block_arn: Optional[Arn] = None,
    app_block_builder_name: Optional[Name] = None,
    max_results: Optional[Integer] = None,
    next_token: Optional[String] = None,
) -> DescribeAppBlockBuilderAppBlockAssociationsResult

Retrieves a list that describes one or more app block builder associations.

Parameters:

  • app_block_arn (Optional[Arn], default: None ) –

    The ARN of the app block.

  • app_block_builder_name (Optional[Name], default: None ) –

    The name of the app block builder.

  • max_results (Optional[Integer], default: None ) –

    The maximum size of each page of results.

  • next_token (Optional[String], default: None ) –

    The pagination token used to retrieve the next page of results for this operation.

Raises:

Source code in docs_src/capo_appstream/_services/app_stream.py
def describe_app_block_builder_app_block_associations(
    self,
    *,
    config_overrides: Optional[AppStreamClientConfig] = 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.
    """

    def _handler(
        req: "OperationRequest[capo_appstream.types.describe_app_block_builder_app_block_associations_request.DescribeAppBlockBuilderAppBlockAssociationsRequest]",
    ) -> OperationResponse[
        "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 = (
            capo_appstream._operations.photon_admin_proxy_service.describe_app_block_builder_app_block_associations.describe_app_block_builder_app_block_associations(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output