Skip to content

start_software_deployment_to_image_builder async

start_software_deployment_to_image_builder(
    *,
    config_overrides: Optional[AsyncAppStreamClientConfig] = None,
    image_builder_name: Optional[Name] = None,
    retry_failed_deployments: Optional[Boolean] = None,
) -> StartSoftwareDeploymentToImageBuilderResult

Initiates license included applications deployment to an image builder instance.

Parameters:

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

    The name of the target image builder instance.

  • retry_failed_deployments (Optional[Boolean], default: None ) –

    Whether to retry previously failed license included application deployments.

Raises:

Source code in docs_src/capo_appstream/_services/async_app_stream.py
async def start_software_deployment_to_image_builder(
    self,
    *,
    config_overrides: Optional[AsyncAppStreamClientConfig] = None,
    image_builder_name: Optional["capo_appstream.types.name.Name"] = None,
    retry_failed_deployments: Optional[
        "capo_appstream.types.boolean.Boolean"
    ] = None,
) -> "capo_appstream.types.start_software_deployment_to_image_builder_result.StartSoftwareDeploymentToImageBuilderResult":
    """<p>Initiates license included applications deployment to an image builder instance.</p>

    Args:
        image_builder_name: <p>The name of the target image builder instance.</p>
        retry_failed_deployments: <p>Whether to retry previously failed license included application deployments.</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.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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_appstream.types.start_software_deployment_to_image_builder_request.StartSoftwareDeploymentToImageBuilderRequest]",
    ) -> AsyncOperationResponse[
        "capo_appstream.types.start_software_deployment_to_image_builder_result.StartSoftwareDeploymentToImageBuilderResult"
    ]:
        import capo_appstream._operations.photon_admin_proxy_service.start_software_deployment_to_image_builder

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("StartSoftwareDeploymentToImageBuilder")
    )
    input_: capo_appstream.types.start_software_deployment_to_image_builder_request.StartSoftwareDeploymentToImageBuilderRequest = {}
    if image_builder_name is not None:
        input_["image_builder_name"] = image_builder_name
    if retry_failed_deployments is not None:
        input_["retry_failed_deployments"] = retry_failed_deployments

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