Backup module#
Index > Backup
Auto-generated documentation for Backup type annotations stubs module mypy-boto3-backup.
How to install#
Generate locally (recommended)#
You can generate type annotations for boto3
package locally with mypy_boto3_builder
.
Use uv for build isolation.
- Run mypy-boto3-builder in your package root directory:
uvx --with 'boto3==1.35.86' mypy_boto3_builder
- Select
boto3-stubs
AWS SDK. - Add
Backup
service. - Use provided commands to install generated packages.
VSCode extension#
Add AWS Boto3
extension to your VSCode and run AWS boto3: Quick Start
command.
Click Modify
and select boto3 common
and Backup
.
From PyPI with pip#
Install boto3-stubs
for Backup
service.
# install with boto3 type annotations
python -m pip install 'boto3-stubs[backup]'
# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'boto3-stubs-lite[backup]'
# standalone installation
python -m pip install mypy-boto3-backup
How to uninstall#
python -m pip uninstall -y mypy-boto3-backup
Usage#
Code samples can be found in Examples.
BackupClient#
Type annotations and code completion for boto3.client("backup")
as BackupClient
boto3 documentation
# BackupClient usage example
from boto3.session import Session
from mypy_boto3_backup.client import BackupClient
def get_client() -> BackupClient:
return Session().client("backup")
Paginators#
Type annotations and code completion for paginators
from boto3.client("backup").get_paginator("...")
.
# ListBackupJobsPaginator usage example
from boto3.session import Session
from mypy_boto3_backup.paginator import ListBackupJobsPaginator
def get_list_backup_jobs_paginator() -> ListBackupJobsPaginator:
return Session().client("backup").get_paginator("list_backup_jobs"))
- ListBackupJobsPaginator
- ListBackupPlanTemplatesPaginator
- ListBackupPlanVersionsPaginator
- ListBackupPlansPaginator
- ListBackupSelectionsPaginator
- ListBackupVaultsPaginator
- ListCopyJobsPaginator
- ListIndexedRecoveryPointsPaginator
- ListLegalHoldsPaginator
- ListProtectedResourcesByBackupVaultPaginator
- ListProtectedResourcesPaginator
- ListRecoveryPointsByBackupVaultPaginator
- ListRecoveryPointsByLegalHoldPaginator
- ListRecoveryPointsByResourcePaginator
- ListRestoreJobsByProtectedResourcePaginator
- ListRestoreJobsPaginator
- ListRestoreTestingPlansPaginator
- ListRestoreTestingSelectionsPaginator
Literals#
Type annotations for literals used in methods and schema.
# AggregationPeriodType usage example
from mypy_boto3_backup.literals import AggregationPeriodType
def get_value() -> AggregationPeriodType:
return "FOURTEEN_DAYS"
- AggregationPeriodType
- BackupJobStateType
- BackupJobStatusType
- BackupVaultEventType
- ConditionTypeType
- CopyJobStateType
- CopyJobStatusType
- IndexStatusType
- IndexType
- LegalHoldStatusType
- ListBackupJobsPaginatorName
- ListBackupPlanTemplatesPaginatorName
- ListBackupPlanVersionsPaginatorName
- ListBackupPlansPaginatorName
- ListBackupSelectionsPaginatorName
- ListBackupVaultsPaginatorName
- ListCopyJobsPaginatorName
- ListIndexedRecoveryPointsPaginatorName
- ListLegalHoldsPaginatorName
- ListProtectedResourcesByBackupVaultPaginatorName
- ListProtectedResourcesPaginatorName
- ListRecoveryPointsByBackupVaultPaginatorName
- ListRecoveryPointsByLegalHoldPaginatorName
- ListRecoveryPointsByResourcePaginatorName
- ListRestoreJobsByProtectedResourcePaginatorName
- ListRestoreJobsPaginatorName
- ListRestoreTestingPlansPaginatorName
- ListRestoreTestingSelectionsPaginatorName
- RecoveryPointStatusType
- RestoreDeletionStatusType
- RestoreJobStateType
- RestoreJobStatusType
- RestoreTestingRecoveryPointSelectionAlgorithmType
- RestoreTestingRecoveryPointTypeType
- RestoreValidationStatusType
- StorageClassType
- VaultStateType
- VaultTypeType
- BackupServiceName
- ServiceName
- ResourceServiceName
- PaginatorName
- RegionName
Type definitions#
Type annotations for type definitions used in methods and schema.
- AdvancedBackupSettingOutputTypeDef
- AdvancedBackupSettingTypeDef
- BackupJobSummaryTypeDef
- RecoveryPointCreatorTypeDef
- BackupPlanTemplatesListMemberTypeDef
- LifecycleTypeDef
- IndexActionOutputTypeDef
- ConditionTypeDef
- BackupSelectionsListMemberTypeDef
- BackupVaultListMemberTypeDef
- CalculatedLifecycleTypeDef
- CancelLegalHoldInputRequestTypeDef
- ConditionParameterTypeDef
- ControlInputParameterTypeDef
- ControlScopeOutputTypeDef
- ControlScopeTypeDef
- CopyJobSummaryTypeDef
- ResponseMetadataTypeDef
- CreateBackupVaultInputRequestTypeDef
- CreateLogicallyAirGappedBackupVaultInputRequestTypeDef
- ReportDeliveryChannelTypeDef
- ReportSettingTypeDef
- DateRangeOutputTypeDef
- TimestampTypeDef
- DeleteBackupPlanInputRequestTypeDef
- DeleteBackupSelectionInputRequestTypeDef
- DeleteBackupVaultAccessPolicyInputRequestTypeDef
- DeleteBackupVaultInputRequestTypeDef
- DeleteBackupVaultLockConfigurationInputRequestTypeDef
- DeleteBackupVaultNotificationsInputRequestTypeDef
- DeleteFrameworkInputRequestTypeDef
- DeleteRecoveryPointInputRequestTypeDef
- DeleteReportPlanInputRequestTypeDef
- DeleteRestoreTestingPlanInputRequestTypeDef
- DeleteRestoreTestingSelectionInputRequestTypeDef
- DescribeBackupJobInputRequestTypeDef
- DescribeBackupVaultInputRequestTypeDef
- DescribeCopyJobInputRequestTypeDef
- DescribeFrameworkInputRequestTypeDef
- DescribeProtectedResourceInputRequestTypeDef
- DescribeRecoveryPointInputRequestTypeDef
- DescribeReportJobInputRequestTypeDef
- DescribeReportPlanInputRequestTypeDef
- DescribeRestoreJobInputRequestTypeDef
- RestoreJobCreatorTypeDef
- DisassociateRecoveryPointFromParentInputRequestTypeDef
- DisassociateRecoveryPointInputRequestTypeDef
- ExportBackupPlanTemplateInputRequestTypeDef
- FrameworkTypeDef
- GetBackupPlanFromJSONInputRequestTypeDef
- GetBackupPlanFromTemplateInputRequestTypeDef
- GetBackupPlanInputRequestTypeDef
- GetBackupSelectionInputRequestTypeDef
- GetBackupVaultAccessPolicyInputRequestTypeDef
- GetBackupVaultNotificationsInputRequestTypeDef
- GetLegalHoldInputRequestTypeDef
- GetRecoveryPointIndexDetailsInputRequestTypeDef
- GetRecoveryPointRestoreMetadataInputRequestTypeDef
- GetRestoreJobMetadataInputRequestTypeDef
- GetRestoreTestingInferredMetadataInputRequestTypeDef
- GetRestoreTestingPlanInputRequestTypeDef
- GetRestoreTestingSelectionInputRequestTypeDef
- IndexActionTypeDef
- IndexedRecoveryPointTypeDef
- KeyValueTypeDef
- LegalHoldTypeDef
- ListBackupJobSummariesInputRequestTypeDef
- PaginatorConfigTypeDef
- ListBackupPlanTemplatesInputRequestTypeDef
- ListBackupPlanVersionsInputRequestTypeDef
- ListBackupPlansInputRequestTypeDef
- ListBackupSelectionsInputRequestTypeDef
- ListBackupVaultsInputRequestTypeDef
- ListCopyJobSummariesInputRequestTypeDef
- ListFrameworksInputRequestTypeDef
- ListLegalHoldsInputRequestTypeDef
- ListProtectedResourcesByBackupVaultInputRequestTypeDef
- ProtectedResourceTypeDef
- ListProtectedResourcesInputRequestTypeDef
- ListRecoveryPointsByLegalHoldInputRequestTypeDef
- RecoveryPointMemberTypeDef
- ListRecoveryPointsByResourceInputRequestTypeDef
- RecoveryPointByResourceTypeDef
- ListReportPlansInputRequestTypeDef
- ListRestoreJobSummariesInputRequestTypeDef
- RestoreJobSummaryTypeDef
- ListRestoreTestingPlansInputRequestTypeDef
- RestoreTestingPlanForListTypeDef
- ListRestoreTestingSelectionsInputRequestTypeDef
- RestoreTestingSelectionForListTypeDef
- ListTagsInputRequestTypeDef
- PutBackupVaultAccessPolicyInputRequestTypeDef
- PutBackupVaultLockConfigurationInputRequestTypeDef
- PutBackupVaultNotificationsInputRequestTypeDef
- PutRestoreValidationResultInputRequestTypeDef
- ReportDeliveryChannelOutputTypeDef
- ReportDestinationTypeDef
- ReportSettingOutputTypeDef
- RestoreTestingRecoveryPointSelectionOutputTypeDef
- RestoreTestingRecoveryPointSelectionTypeDef
- StartReportJobInputRequestTypeDef
- StartRestoreJobInputRequestTypeDef
- StopBackupJobInputRequestTypeDef
- TagResourceInputRequestTypeDef
- UntagResourceInputRequestTypeDef
- UpdateGlobalSettingsInputRequestTypeDef
- UpdateRecoveryPointIndexSettingsInputRequestTypeDef
- UpdateRegionSettingsInputRequestTypeDef
- BackupPlansListMemberTypeDef
- AdvancedBackupSettingUnionTypeDef
- BackupJobTypeDef
- CopyJobTypeDef
- CopyActionTypeDef
- StartBackupJobInputRequestTypeDef
- StartCopyJobInputRequestTypeDef
- UpdateRecoveryPointLifecycleInputRequestTypeDef
- RecoveryPointByBackupVaultTypeDef
- ConditionsOutputTypeDef
- ConditionsTypeDef
- FrameworkControlOutputTypeDef
- ControlScopeUnionTypeDef
- CreateBackupPlanOutputTypeDef
- CreateBackupSelectionOutputTypeDef
- CreateBackupVaultOutputTypeDef
- CreateFrameworkOutputTypeDef
- CreateLogicallyAirGappedBackupVaultOutputTypeDef
- CreateReportPlanOutputTypeDef
- CreateRestoreTestingPlanOutputTypeDef
- CreateRestoreTestingSelectionOutputTypeDef
- DeleteBackupPlanOutputTypeDef
- DescribeBackupJobOutputTypeDef
- DescribeBackupVaultOutputTypeDef
- DescribeGlobalSettingsOutputTypeDef
- DescribeProtectedResourceOutputTypeDef
- DescribeRecoveryPointOutputTypeDef
- DescribeRegionSettingsOutputTypeDef
- EmptyResponseMetadataTypeDef
- ExportBackupPlanTemplateOutputTypeDef
- GetBackupVaultAccessPolicyOutputTypeDef
- GetBackupVaultNotificationsOutputTypeDef
- GetRecoveryPointIndexDetailsOutputTypeDef
- GetRecoveryPointRestoreMetadataOutputTypeDef
- GetRestoreJobMetadataOutputTypeDef
- GetRestoreTestingInferredMetadataOutputTypeDef
- GetSupportedResourceTypesOutputTypeDef
- ListBackupJobSummariesOutputTypeDef
- ListBackupPlanTemplatesOutputTypeDef
- ListBackupSelectionsOutputTypeDef
- ListBackupVaultsOutputTypeDef
- ListCopyJobSummariesOutputTypeDef
- ListTagsOutputTypeDef
- StartBackupJobOutputTypeDef
- StartCopyJobOutputTypeDef
- StartReportJobOutputTypeDef
- StartRestoreJobOutputTypeDef
- UpdateBackupPlanOutputTypeDef
- UpdateFrameworkOutputTypeDef
- UpdateRecoveryPointIndexSettingsOutputTypeDef
- UpdateRecoveryPointLifecycleOutputTypeDef
- UpdateReportPlanOutputTypeDef
- UpdateRestoreTestingPlanOutputTypeDef
- UpdateRestoreTestingSelectionOutputTypeDef
- CreateReportPlanInputRequestTypeDef
- UpdateReportPlanInputRequestTypeDef
- RecoveryPointSelectionOutputTypeDef
- DateRangeTypeDef
- ListBackupJobsInputRequestTypeDef
- ListCopyJobsInputRequestTypeDef
- ListIndexedRecoveryPointsInputRequestTypeDef
- ListRecoveryPointsByBackupVaultInputRequestTypeDef
- ListReportJobsInputRequestTypeDef
- ListRestoreJobsByProtectedResourceInputRequestTypeDef
- ListRestoreJobsInputRequestTypeDef
- DescribeRestoreJobOutputTypeDef
- RestoreJobsListMemberTypeDef
- ListFrameworksOutputTypeDef
- IndexActionUnionTypeDef
- ListIndexedRecoveryPointsOutputTypeDef
- ProtectedResourceConditionsOutputTypeDef
- ProtectedResourceConditionsTypeDef
- ListLegalHoldsOutputTypeDef
- ListBackupJobsInputPaginateTypeDef
- ListBackupPlanTemplatesInputPaginateTypeDef
- ListBackupPlanVersionsInputPaginateTypeDef
- ListBackupPlansInputPaginateTypeDef
- ListBackupSelectionsInputPaginateTypeDef
- ListBackupVaultsInputPaginateTypeDef
- ListCopyJobsInputPaginateTypeDef
- ListIndexedRecoveryPointsInputPaginateTypeDef
- ListLegalHoldsInputPaginateTypeDef
- ListProtectedResourcesByBackupVaultInputPaginateTypeDef
- ListProtectedResourcesInputPaginateTypeDef
- ListRecoveryPointsByBackupVaultInputPaginateTypeDef
- ListRecoveryPointsByLegalHoldInputPaginateTypeDef
- ListRecoveryPointsByResourceInputPaginateTypeDef
- ListRestoreJobsByProtectedResourceInputPaginateTypeDef
- ListRestoreJobsInputPaginateTypeDef
- ListRestoreTestingPlansInputPaginateTypeDef
- ListRestoreTestingSelectionsInputPaginateTypeDef
- ListProtectedResourcesByBackupVaultOutputTypeDef
- ListProtectedResourcesOutputTypeDef
- ListRecoveryPointsByLegalHoldOutputTypeDef
- ListRecoveryPointsByResourceOutputTypeDef
- ListRestoreJobSummariesOutputTypeDef
- ListRestoreTestingPlansOutputTypeDef
- ListRestoreTestingSelectionsOutputTypeDef
- ReportJobTypeDef
- ReportPlanTypeDef
- RestoreTestingPlanForGetTypeDef
- RestoreTestingRecoveryPointSelectionUnionTypeDef
- ListBackupPlanVersionsOutputTypeDef
- ListBackupPlansOutputTypeDef
- ListBackupJobsOutputTypeDef
- DescribeCopyJobOutputTypeDef
- ListCopyJobsOutputTypeDef
- BackupRuleTypeDef
- ListRecoveryPointsByBackupVaultOutputTypeDef
- BackupSelectionOutputTypeDef
- ConditionsUnionTypeDef
- DescribeFrameworkOutputTypeDef
- FrameworkControlTypeDef
- CreateLegalHoldOutputTypeDef
- GetLegalHoldOutputTypeDef
- DateRangeUnionTypeDef
- ListRestoreJobsByProtectedResourceOutputTypeDef
- ListRestoreJobsOutputTypeDef
- BackupRuleInputTypeDef
- RestoreTestingSelectionForGetTypeDef
- ProtectedResourceConditionsUnionTypeDef
- DescribeReportJobOutputTypeDef
- ListReportJobsOutputTypeDef
- DescribeReportPlanOutputTypeDef
- ListReportPlansOutputTypeDef
- GetRestoreTestingPlanOutputTypeDef
- RestoreTestingPlanForCreateTypeDef
- RestoreTestingPlanForUpdateTypeDef
- BackupPlanTypeDef
- GetBackupSelectionOutputTypeDef
- BackupSelectionTypeDef
- FrameworkControlUnionTypeDef
- UpdateFrameworkInputRequestTypeDef
- RecoveryPointSelectionTypeDef
- BackupPlanInputTypeDef
- GetRestoreTestingSelectionOutputTypeDef
- RestoreTestingSelectionForCreateTypeDef
- RestoreTestingSelectionForUpdateTypeDef
- CreateRestoreTestingPlanInputRequestTypeDef
- UpdateRestoreTestingPlanInputRequestTypeDef
- GetBackupPlanFromJSONOutputTypeDef
- GetBackupPlanFromTemplateOutputTypeDef
- GetBackupPlanOutputTypeDef
- CreateBackupSelectionInputRequestTypeDef
- CreateFrameworkInputRequestTypeDef
- CreateLegalHoldInputRequestTypeDef
- CreateBackupPlanInputRequestTypeDef
- UpdateBackupPlanInputRequestTypeDef
- CreateRestoreTestingSelectionInputRequestTypeDef
- UpdateRestoreTestingSelectionInputRequestTypeDef