Skip to content

describe_software_associations

describe_software_associations(
    *,
    config_overrides: Optional[AppStreamClientConfig] = None,
    associated_resource: Optional[Arn] = None,
    max_results: Optional[Integer] = None,
    next_token: Optional[String] = None,
) -> DescribeSoftwareAssociationsResult

Retrieves license included application associations for a specified resource.

Parameters:

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

    The ARN of the resource to describe software associations. Possible resources are Image and ImageBuilder.

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

    The maximum number of results to return.

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

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

Raises:

Source code in docs_src/capo_appstream/_services/app_stream.py
def describe_software_associations(
    self,
    *,
    config_overrides: Optional[AppStreamClientConfig] = None,
    associated_resource: Optional["capo_appstream.types.arn.Arn"] = None,
    max_results: Optional["capo_appstream.types.integer.Integer"] = None,
    next_token: Optional["capo_appstream.types.string.String"] = None,
) -> "capo_appstream.types.describe_software_associations_result.DescribeSoftwareAssociationsResult":
    """<p>Retrieves license included application associations for a specified resource.</p>

    Args:
        associated_resource: <p>The ARN of the resource to describe software associations. Possible resources are Image and ImageBuilder.</p>
        max_results: <p>The maximum number of results to return.</p>
        next_token: <p>The pagination token to use to retrieve the next page of results for this operation.</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.
    """

    def _handler(
        req: "OperationRequest[capo_appstream.types.describe_software_associations_request.DescribeSoftwareAssociationsRequest]",
    ) -> OperationResponse[
        "capo_appstream.types.describe_software_associations_result.DescribeSoftwareAssociationsResult"
    ]:
        import capo_appstream._operations.photon_admin_proxy_service.describe_software_associations

        output, http_response = (
            capo_appstream._operations.photon_admin_proxy_service.describe_software_associations.describe_software_associations(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeSoftwareAssociations")
    )
    input_: capo_appstream.types.describe_software_associations_request.DescribeSoftwareAssociationsRequest = {}
    if associated_resource is not None:
        input_["associated_resource"] = associated_resource
    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