Skip to content

delete_backup_vault_lock_configuration async

delete_backup_vault_lock_configuration(
    backup_vault_name: BackupVaultName,
    *,
    config_overrides: Optional[AsyncBackupClientConfig] = None,
) -> None

Deletes Backup Vault Lock from a backup vault specified by a backup vault name.

If the Vault Lock configuration is immutable, then you cannot delete Vault Lock using API operations, and you will receive an InvalidRequestException if you attempt to do so. For more information, see Vault Lock in the Backup Developer Guide.

Parameters:

  • backup_vault_name (BackupVaultName) –

    The name of the backup vault from which to delete Backup Vault Lock.

Raises:

Source code in docs_src/capo_backup/_services/async_backup.py
async def delete_backup_vault_lock_configuration(
    self,
    backup_vault_name: "capo_backup.types.backup_vault_name.BackupVaultName",
    *,
    config_overrides: Optional[AsyncBackupClientConfig] = None,
) -> None:
    """<p>Deletes Backup Vault Lock from a backup vault specified by a backup vault name.</p> <p>If the Vault Lock configuration is immutable, then you cannot delete Vault Lock using API operations, and you will receive an <code>InvalidRequestException</code> if you attempt to do so. For more information, see <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/vault-lock.html">Vault Lock</a> in the <i>Backup Developer Guide</i>.</p>

    Args:
        backup_vault_name: <p>The name of the backup vault from which to delete Backup Vault Lock.</p>

    Raises:
        capo_backup.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>Indicates that something is wrong with a parameter's value. For example, the value is out of range.</p>
        capo_backup.errors.invalid_request_exception.InvalidRequestException: <p>Indicates that something is wrong with the input to the request. For example, a parameter is of the wrong type.</p>
        capo_backup.errors.missing_parameter_value_exception.MissingParameterValueException: <p>Indicates that a required parameter is missing.</p>
        capo_backup.errors.resource_not_found_exception.ResourceNotFoundException: <p>A resource that is required for the action doesn't exist.</p>
        capo_backup.errors.service_unavailable_exception.ServiceUnavailableException: <p>The request failed due to a temporary failure of the server.</p>
        capo_backup.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_backup.types.delete_backup_vault_lock_configuration_input.DeleteBackupVaultLockConfigurationInput]",
    ) -> AsyncOperationResponse[None]:
        import capo_backup._operations.cryo_controller_user_manager.delete_backup_vault_lock_configuration

        (
            output,
            http_response,
        ) = await capo_backup._operations.cryo_controller_user_manager.delete_backup_vault_lock_configuration.async_delete_backup_vault_lock_configuration(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteBackupVaultLockConfiguration")
    )
    input_: capo_backup.types.delete_backup_vault_lock_configuration_input.DeleteBackupVaultLockConfigurationInput = {
        "backup_vault_name": backup_vault_name
    }

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