Describes the associations between the applications and the specified bundle.
Parameters:
Raises:
Source code in docs_src/capo_workspaces/_services/work_spaces.py
| def describe_bundle_associations(
self,
bundle_id: "capo_workspaces.types.bundle_id.BundleId",
associated_resource_types: "capo_workspaces.types.bundle_associated_resource_type_list.BundleAssociatedResourceTypeList",
*,
config_overrides: Optional[WorkSpacesClientConfig] = None,
) -> "capo_workspaces.types.describe_bundle_associations_result.DescribeBundleAssociationsResult":
"""<p>Describes the associations between the applications and the specified bundle.</p>
Args:
bundle_id: <p>The identifier of the bundle.</p>
associated_resource_types: <p>The resource types of the associated resource.</p>
Raises:
capo_workspaces.errors.access_denied_exception.AccessDeniedException: <p>The user is not authorized to access a resource.</p>
capo_workspaces.errors.invalid_parameter_values_exception.InvalidParameterValuesException: <p>One or more parameter values are not valid.</p>
capo_workspaces.errors.operation_not_supported_exception.OperationNotSupportedException: <p>This operation is not supported.</p>
capo_workspaces.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource could not be found.</p>
capo_workspaces.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_workspaces.types.describe_bundle_associations_request.DescribeBundleAssociationsRequest]",
) -> OperationResponse[
"capo_workspaces.types.describe_bundle_associations_result.DescribeBundleAssociationsResult"
]:
import capo_workspaces._operations.workspaces_service.describe_bundle_associations
output, http_response = (
capo_workspaces._operations.workspaces_service.describe_bundle_associations.describe_bundle_associations(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeBundleAssociations")
)
input_: capo_workspaces.types.describe_bundle_associations_request.DescribeBundleAssociationsRequest = {
"bundle_id": bundle_id,
"associated_resource_types": associated_resource_types,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|