delete_hosted_configuration_version(
application_id: Name,
configuration_profile_id: LongName,
version_number: Integer,
*,
config_overrides: Optional[AppConfigClientConfig] = None,
) -> None
Deletes a version of a configuration from the AppConfig hosted configuration store.
Parameters:
-
application_id
(Name)
–
-
configuration_profile_id
(LongName)
–
The configuration profile ID.
-
version_number
(Integer)
–
The versions number to delete.
Raises:
Examples:
To delete a hosted configuration version
The following delete-hosted-configuration-version example deletes a configuration version hosted in the AWS AppConfig configuration store.
>>> client.delete_hosted_configuration_version(application_id='339ohji', configuration_profile_id='ur8hx2f', version_number=1)
Source code in docs_src/capo_appconfig/_services/app_config.py
| def delete_hosted_configuration_version(
self,
application_id: "capo_appconfig.types.name.Name",
configuration_profile_id: "capo_appconfig.types.long_name.LongName",
version_number: "capo_appconfig.types.integer.Integer",
*,
config_overrides: Optional[AppConfigClientConfig] = None,
) -> None:
"""<p>Deletes a version of a configuration from the AppConfig hosted configuration store.</p>
Args:
application_id: <p>The application ID.</p>
configuration_profile_id: <p>The configuration profile ID.</p>
version_number: <p>The versions number to delete.</p>
Raises:
capo_appconfig.errors.bad_request_exception.BadRequestException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
capo_appconfig.errors.internal_server_exception.InternalServerException: <p>There was an internal failure in the AppConfig service.</p>
capo_appconfig.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
capo_appconfig.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
To delete a hosted configuration version
The following delete-hosted-configuration-version example deletes a configuration version hosted in the AWS AppConfig configuration store.
>>> client.delete_hosted_configuration_version(application_id='339ohji', configuration_profile_id='ur8hx2f', version_number=1)
"""
def _handler(
req: "OperationRequest[capo_appconfig.types.delete_hosted_configuration_version_request.DeleteHostedConfigurationVersionRequest]",
) -> OperationResponse[None]:
import capo_appconfig._operations.amazon_app_config.delete_hosted_configuration_version
output, http_response = (
capo_appconfig._operations.amazon_app_config.delete_hosted_configuration_version.delete_hosted_configuration_version(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteHostedConfigurationVersion")
)
input_: capo_appconfig.types.delete_hosted_configuration_version_request.DeleteHostedConfigurationVersionRequest = {
"application_id": application_id,
"configuration_profile_id": configuration_profile_id,
"version_number": version_number,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|