Skip to content

disassociate_application_fleet async

disassociate_application_fleet(
    *,
    config_overrides: Optional[AsyncAppStreamClientConfig] = None,
    fleet_name: Optional[Name] = None,
    application_arn: Optional[Arn] = None,
) -> DisassociateApplicationFleetResult

Disassociates the specified application from the fleet.

Parameters:

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

    The name of the fleet.

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

    The ARN of the application.

Raises:

Source code in docs_src/capo_appstream/_services/async_app_stream.py
async def disassociate_application_fleet(
    self,
    *,
    config_overrides: Optional[AsyncAppStreamClientConfig] = None,
    fleet_name: Optional["capo_appstream.types.name.Name"] = None,
    application_arn: Optional["capo_appstream.types.arn.Arn"] = None,
) -> "capo_appstream.types.disassociate_application_fleet_result.DisassociateApplicationFleetResult":
    """<p>Disassociates the specified application from the fleet.</p>

    Args:
        fleet_name: <p>The name of the fleet.</p>
        application_arn: <p>The ARN of the application.</p>

    Raises:
        capo_appstream.errors.concurrent_modification_exception.ConcurrentModificationException: <p>An API error occurred. Wait a few minutes and try again.</p>
        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.disassociate_application_fleet_request.DisassociateApplicationFleetRequest]",
    ) -> AsyncOperationResponse[
        "capo_appstream.types.disassociate_application_fleet_result.DisassociateApplicationFleetResult"
    ]:
        import capo_appstream._operations.photon_admin_proxy_service.disassociate_application_fleet

        (
            output,
            http_response,
        ) = await capo_appstream._operations.photon_admin_proxy_service.disassociate_application_fleet.async_disassociate_application_fleet(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DisassociateApplicationFleet")
    )
    input_: capo_appstream.types.disassociate_application_fleet_request.DisassociateApplicationFleetRequest = {}
    if fleet_name is not None:
        input_["fleet_name"] = fleet_name
    if application_arn is not None:
        input_["application_arn"] = application_arn

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output