Retrieves a list that describes one or more application fleet associations. Either ApplicationArn or FleetName must be specified.
Parameters:
-
fleet_name
(Optional[Name], default:
None
)
–
-
application_arn
(Optional[Arn], default:
None
)
–
The ARN of the application.
-
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_application_fleet_associations(
self,
*,
config_overrides: Optional[AppStreamClientConfig] = None,
fleet_name: Optional["capo_appstream.types.name.Name"] = None,
application_arn: 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_application_fleet_associations_result.DescribeApplicationFleetAssociationsResult":
"""<p>Retrieves a list that describes one or more application fleet associations. Either ApplicationArn or FleetName must be specified.</p>
Args:
fleet_name: <p>The name of the fleet.</p>
application_arn: <p>The ARN of the application.</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_application_fleet_associations_request.DescribeApplicationFleetAssociationsRequest]",
) -> OperationResponse[
"capo_appstream.types.describe_application_fleet_associations_result.DescribeApplicationFleetAssociationsResult"
]:
import capo_appstream._operations.photon_admin_proxy_service.describe_application_fleet_associations
output, http_response = (
capo_appstream._operations.photon_admin_proxy_service.describe_application_fleet_associations.describe_application_fleet_associations(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeApplicationFleetAssociations")
)
input_: capo_appstream.types.describe_application_fleet_associations_request.DescribeApplicationFleetAssociationsRequest = {}
if fleet_name is not None:
input_["fleet_name"] = fleet_name
if application_arn is not None:
input_["application_arn"] = application_arn
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
|