Updates an existing application with new attributes.
Parameters:
-
application
(ApplicationSpecifier)
–
The name, ID, or ARN of the application that will be updated.
-
name
(Optional[Name], default:
None
)
–
Deprecated: The new name of the application. The name must be unique in the region in which you are updating the application. Please do not use this field as we have stopped supporting name updates.
-
description
(Optional[Description], default:
None
)
–
The new description of the application.
Raises:
Source code in docs_src/capo_service_catalog_appregistry/_services/service_catalog_app_registry.py
| def update_application(
self,
application: "capo_service_catalog_appregistry.types.application_specifier.ApplicationSpecifier",
*,
config_overrides: Optional[ServiceCatalogAppRegistryClientConfig] = None,
name: Optional["capo_service_catalog_appregistry.types.name.Name"] = None,
description: Optional[
"capo_service_catalog_appregistry.types.description.Description"
] = None,
) -> "capo_service_catalog_appregistry.types.update_application_response.UpdateApplicationResponse":
"""<p>Updates an existing application with new attributes.</p>
Args:
application: <p> The name, ID, or ARN of the application that will be updated. </p>
name: <p>Deprecated: The new name of the application. The name must be unique in the region in which you are updating the application. Please do not use this field as we have stopped supporting name updates.</p>
description: <p>The new description of the application.</p>
Raises:
capo_service_catalog_appregistry.errors.conflict_exception.ConflictException: <p>There was a conflict when processing the request (for example, a resource with the given name already exists within the account).</p>
capo_service_catalog_appregistry.errors.internal_server_exception.InternalServerException: <p>The service is experiencing internal problems.</p>
capo_service_catalog_appregistry.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource does not exist.</p>
capo_service_catalog_appregistry.errors.throttling_exception.ThrottlingException: <p> The maximum number of API requests has been exceeded. </p>
capo_service_catalog_appregistry.errors.validation_exception.ValidationException: <p>The request has invalid or missing parameters.</p>
capo_service_catalog_appregistry.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_service_catalog_appregistry.types.update_application_request.UpdateApplicationRequest]",
) -> OperationResponse[
"capo_service_catalog_appregistry.types.update_application_response.UpdateApplicationResponse"
]:
import capo_service_catalog_appregistry._operations.aws242_app_registry.update_application
output, http_response = (
capo_service_catalog_appregistry._operations.aws242_app_registry.update_application.update_application(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateApplication")
)
input_: capo_service_catalog_appregistry.types.update_application_request.UpdateApplicationRequest = {
"application": application
}
if name is not None:
input_["name"] = name
if description is not None:
input_["description"] = description
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|