Skip to content

get_restore_testing_inferred_metadata async

get_restore_testing_inferred_metadata(
    backup_vault_name: str,
    recovery_point_arn: str,
    *,
    config_overrides: Optional[AsyncBackupClientConfig] = None,
    backup_vault_account_id: Optional[str] = None,
) -> GetRestoreTestingInferredMetadataOutput

This request returns the minimal required set of metadata needed to start a restore job with secure default settings. BackupVaultName and RecoveryPointArn are required parameters. BackupVaultAccountId is an optional parameter.

Parameters:

  • backup_vault_account_id (Optional[str], default: None ) –

    The account ID of the specified backup vault.

  • backup_vault_name (str) –

    The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web ServicesRegion where they are created. They consist of letters, numbers, and hyphens.

  • recovery_point_arn (str) –

    An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.

Raises:

Source code in docs_src/capo_backup/_services/async_backup.py
async def get_restore_testing_inferred_metadata(
    self,
    backup_vault_name: str,
    recovery_point_arn: str,
    *,
    config_overrides: Optional[AsyncBackupClientConfig] = None,
    backup_vault_account_id: Optional[str] = None,
) -> "capo_backup.types.get_restore_testing_inferred_metadata_output.GetRestoreTestingInferredMetadataOutput":
    """<p>This request returns the minimal required set of metadata needed to start a restore job with secure default settings. <code>BackupVaultName</code> and <code>RecoveryPointArn</code> are required parameters. <code>BackupVaultAccountId</code> is an optional parameter.</p>

    Args:
        backup_vault_account_id: <p>The account ID of the specified backup vault.</p>
        backup_vault_name: <p>The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web ServicesRegion where they are created. They consist of letters, numbers, and hyphens.</p>
        recovery_point_arn: <p>An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, <code>arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45</code>. </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.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.get_restore_testing_inferred_metadata_input.GetRestoreTestingInferredMetadataInput]",
    ) -> AsyncOperationResponse[
        "capo_backup.types.get_restore_testing_inferred_metadata_output.GetRestoreTestingInferredMetadataOutput"
    ]:
        import capo_backup._operations.cryo_controller_user_manager.get_restore_testing_inferred_metadata

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetRestoreTestingInferredMetadata")
    )
    input_: capo_backup.types.get_restore_testing_inferred_metadata_input.GetRestoreTestingInferredMetadataInput = {
        "backup_vault_name": backup_vault_name,
        "recovery_point_arn": recovery_point_arn,
    }
    if backup_vault_account_id is not None:
        input_["backup_vault_account_id"] = backup_vault_account_id

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