Skip to content

update_application async

update_application(
    *,
    config_overrides: Optional[AsyncAppStreamClientConfig] = None,
    name: Optional[Name] = None,
    display_name: Optional[DisplayName] = None,
    description: Optional[Description] = None,
    icon_s3_location: Optional[S3Location] = None,
    launch_path: Optional[String] = None,
    working_directory: Optional[String] = None,
    launch_parameters: Optional[String] = None,
    app_block_arn: Optional[Arn] = None,
    attributes_to_delete: Optional[ApplicationAttributes] = None,
) -> UpdateApplicationResult

Updates the specified application.

Parameters:

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

    The name of the application. This name is visible to users when display name is not specified.

  • display_name (Optional[DisplayName], default: None ) –

    The display name of the application. This name is visible to users in the application catalog.

  • description (Optional[Description], default: None ) –

    The description of the application.

  • icon_s3_location (Optional[S3Location], default: None ) –

    The icon S3 location of the application.

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

    The launch path of the application.

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

    The working directory of the application.

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

    The launch parameters of the application.

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

    The ARN of the app block.

  • attributes_to_delete (Optional[ApplicationAttributes], default: None ) –

    The attributes to delete for an application.

Raises:

Source code in docs_src/capo_appstream/_services/async_app_stream.py
async def update_application(
    self,
    *,
    config_overrides: Optional[AsyncAppStreamClientConfig] = None,
    name: Optional["capo_appstream.types.name.Name"] = None,
    display_name: Optional["capo_appstream.types.display_name.DisplayName"] = None,
    description: Optional["capo_appstream.types.description.Description"] = None,
    icon_s3_location: Optional[
        "capo_appstream.types.s3_location.S3Location"
    ] = None,
    launch_path: Optional["capo_appstream.types.string.String"] = None,
    working_directory: Optional["capo_appstream.types.string.String"] = None,
    launch_parameters: Optional["capo_appstream.types.string.String"] = None,
    app_block_arn: Optional["capo_appstream.types.arn.Arn"] = None,
    attributes_to_delete: Optional[
        "capo_appstream.types.application_attributes.ApplicationAttributes"
    ] = None,
) -> "capo_appstream.types.update_application_result.UpdateApplicationResult":
    """<p>Updates the specified application.</p>

    Args:
        name: <p>The name of the application. This name is visible to users when display name is not specified.</p>
        display_name: <p>The display name of the application. This name is visible to users in the application catalog.</p>
        description: <p>The description of the application.</p>
        icon_s3_location: <p>The icon S3 location of the application.</p>
        launch_path: <p>The launch path of the application.</p>
        working_directory: <p>The working directory of the application.</p>
        launch_parameters: <p>The launch parameters of the application.</p>
        app_block_arn: <p>The ARN of the app block.</p>
        attributes_to_delete: <p>The attributes to delete for an 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.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.update_application_request.UpdateApplicationRequest]",
    ) -> AsyncOperationResponse[
        "capo_appstream.types.update_application_result.UpdateApplicationResult"
    ]:
        import capo_appstream._operations.photon_admin_proxy_service.update_application

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateApplication")
    )
    input_: capo_appstream.types.update_application_request.UpdateApplicationRequest = {}
    if name is not None:
        input_["name"] = name
    if display_name is not None:
        input_["display_name"] = display_name
    if description is not None:
        input_["description"] = description
    if icon_s3_location is not None:
        input_["icon_s3_location"] = icon_s3_location
    if launch_path is not None:
        input_["launch_path"] = launch_path
    if working_directory is not None:
        input_["working_directory"] = working_directory
    if launch_parameters is not None:
        input_["launch_parameters"] = launch_parameters
    if app_block_arn is not None:
        input_["app_block_arn"] = app_block_arn
    if attributes_to_delete is not None:
        input_["attributes_to_delete"] = attributes_to_delete

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