Skip to main content

Type annotations for aiobotocore.Backup 2.5.1 service generated with mypy-boto3-builder 7.14.5

Project description

types-aiobotocore-backup

PyPI - types-aiobotocore-backup PyPI - Python Version Docs PyPI - Downloads

boto3.typed

Type annotations for aiobotocore.Backup 2.5.1 service compatible with VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright and other tools.

Generated by mypy-boto3-builder 7.14.5.

More information can be found on types-aiobotocore page and in types-aiobotocore-backup docs.

See how it helps to find and fix potential bugs:

boto3-stubs demo

How to install

From PyPI with pip

Install types-aiobotocore for Backup service.

# install with aiobotocore type annotations
python -m pip install 'types-aiobotocore[backup]'


# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-aiobotocore-lite[backup]'


# standalone installation
python -m pip install types-aiobotocore-backup

How to uninstall

python -m pip uninstall -y types-aiobotocore-backup

Usage

VSCode

python -m pip install 'types-aiobotocore[backup]'

Both type checking and code completion should now work. No explicit type annotations required, write your aiobotocore code as usual.

PyCharm

Install types-aiobotocore-lite[backup] in your environment:

python -m pip install 'types-aiobotocore-lite[backup]'`

Both type checking and code completion should now work. Explicit type annotations are required.

Use types-aiobotocore package instead for implicit type discovery.

Emacs

  • Install types-aiobotocore with services you use in your environment:
python -m pip install 'types-aiobotocore[backup]'
(use-package lsp-pyright
  :ensure t
  :hook (python-mode . (lambda ()
                          (require 'lsp-pyright)
                          (lsp)))  ; or lsp-deferred
  :init (when (executable-find "python3")
          (setq lsp-pyright-python-executable-cmd "python3"))
  )
  • Make sure emacs uses the environment where you have installed types-aiobotocore

Type checking should now work. No explicit type annotations required, write your aiobotocore code as usual.

Sublime Text

  • Install types-aiobotocore[backup] with services you use in your environment:
python -m pip install 'types-aiobotocore[backup]'

Type checking should now work. No explicit type annotations required, write your aiobotocore code as usual.

Other IDEs

Not tested, but as long as your IDE supports mypy or pyright, everything should work.

mypy

  • Install mypy: python -m pip install mypy
  • Install types-aiobotocore[backup] in your environment:
python -m pip install 'types-aiobotocore[backup]'`

Type checking should now work. No explicit type annotations required, write your aiobotocore code as usual.

pyright

  • Install pyright: npm i -g pyright
  • Install types-aiobotocore[backup] in your environment:
python -m pip install 'types-aiobotocore[backup]'

Optionally, you can install types-aiobotocore to typings folder.

Type checking should now work. No explicit type annotations required, write your aiobotocore code as usual.

Explicit type annotations

Client annotations

BackupClient provides annotations for session.create_client("backup").

from aiobotocore.session import get_session

from types_aiobotocore_backup import BackupClient

session = get_session()
async with session.create_client("backup") as client:
    client: BackupClient
    # now client usage is checked by mypy and IDE should provide code completion

Paginators annotations

types_aiobotocore_backup.paginator module contains type annotations for all paginators.

from aiobotocore.session import get_session

from types_aiobotocore_backup import BackupClient
from types_aiobotocore_backup.paginator import (
    ListBackupJobsPaginator,
    ListBackupPlanTemplatesPaginator,
    ListBackupPlanVersionsPaginator,
    ListBackupPlansPaginator,
    ListBackupSelectionsPaginator,
    ListBackupVaultsPaginator,
    ListCopyJobsPaginator,
    ListLegalHoldsPaginator,
    ListProtectedResourcesPaginator,
    ListRecoveryPointsByBackupVaultPaginator,
    ListRecoveryPointsByLegalHoldPaginator,
    ListRecoveryPointsByResourcePaginator,
    ListRestoreJobsPaginator,
)

session = get_session()
async with session.create_client("backup") as client:
    client: BackupClient

    # Explicit type annotations are optional here
    # Types should be correctly discovered by mypy and IDEs
    list_backup_jobs_paginator: ListBackupJobsPaginator = client.get_paginator("list_backup_jobs")
    list_backup_plan_templates_paginator: ListBackupPlanTemplatesPaginator = client.get_paginator(
        "list_backup_plan_templates"
    )
    list_backup_plan_versions_paginator: ListBackupPlanVersionsPaginator = client.get_paginator(
        "list_backup_plan_versions"
    )
    list_backup_plans_paginator: ListBackupPlansPaginator = client.get_paginator(
        "list_backup_plans"
    )
    list_backup_selections_paginator: ListBackupSelectionsPaginator = client.get_paginator(
        "list_backup_selections"
    )
    list_backup_vaults_paginator: ListBackupVaultsPaginator = client.get_paginator(
        "list_backup_vaults"
    )
    list_copy_jobs_paginator: ListCopyJobsPaginator = client.get_paginator("list_copy_jobs")
    list_legal_holds_paginator: ListLegalHoldsPaginator = client.get_paginator("list_legal_holds")
    list_protected_resources_paginator: ListProtectedResourcesPaginator = client.get_paginator(
        "list_protected_resources"
    )
    list_recovery_points_by_backup_vault_paginator: ListRecoveryPointsByBackupVaultPaginator = (
        client.get_paginator("list_recovery_points_by_backup_vault")
    )
    list_recovery_points_by_legal_hold_paginator: ListRecoveryPointsByLegalHoldPaginator = (
        client.get_paginator("list_recovery_points_by_legal_hold")
    )
    list_recovery_points_by_resource_paginator: ListRecoveryPointsByResourcePaginator = (
        client.get_paginator("list_recovery_points_by_resource")
    )
    list_restore_jobs_paginator: ListRestoreJobsPaginator = client.get_paginator(
        "list_restore_jobs"
    )

Literals

types_aiobotocore_backup.literals module contains literals extracted from shapes that can be used in user code for type checking.

from types_aiobotocore_backup.literals import (
    BackupJobStateType,
    BackupVaultEventType,
    ConditionTypeType,
    CopyJobStateType,
    LegalHoldStatusType,
    ListBackupJobsPaginatorName,
    ListBackupPlanTemplatesPaginatorName,
    ListBackupPlanVersionsPaginatorName,
    ListBackupPlansPaginatorName,
    ListBackupSelectionsPaginatorName,
    ListBackupVaultsPaginatorName,
    ListCopyJobsPaginatorName,
    ListLegalHoldsPaginatorName,
    ListProtectedResourcesPaginatorName,
    ListRecoveryPointsByBackupVaultPaginatorName,
    ListRecoveryPointsByLegalHoldPaginatorName,
    ListRecoveryPointsByResourcePaginatorName,
    ListRestoreJobsPaginatorName,
    RecoveryPointStatusType,
    RestoreJobStatusType,
    StorageClassType,
    BackupServiceName,
    ServiceName,
    ResourceServiceName,
    PaginatorName,
    RegionName,
)


def check_value(value: BackupJobStateType) -> bool:
    ...

Typed dictionaries

types_aiobotocore_backup.type_defs module contains structures and shapes assembled to typed dictionaries for additional type checking.

from types_aiobotocore_backup.type_defs import (
    AdvancedBackupSettingTypeDef,
    RecoveryPointCreatorTypeDef,
    BackupPlanTemplatesListMemberTypeDef,
    LifecycleTypeDef,
    ConditionTypeDef,
    BackupSelectionsListMemberTypeDef,
    BackupVaultListMemberTypeDef,
    CalculatedLifecycleTypeDef,
    CancelLegalHoldInputRequestTypeDef,
    ConditionParameterTypeDef,
    ControlInputParameterTypeDef,
    ControlScopeTypeDef,
    CreateBackupSelectionOutputTypeDef,
    CreateBackupVaultInputRequestTypeDef,
    CreateBackupVaultOutputTypeDef,
    CreateFrameworkOutputTypeDef,
    ReportDeliveryChannelTypeDef,
    ReportSettingTypeDef,
    CreateReportPlanOutputTypeDef,
    DateRangeTypeDef,
    DeleteBackupPlanInputRequestTypeDef,
    DeleteBackupPlanOutputTypeDef,
    DeleteBackupSelectionInputRequestTypeDef,
    DeleteBackupVaultAccessPolicyInputRequestTypeDef,
    DeleteBackupVaultInputRequestTypeDef,
    DeleteBackupVaultLockConfigurationInputRequestTypeDef,
    DeleteBackupVaultNotificationsInputRequestTypeDef,
    DeleteFrameworkInputRequestTypeDef,
    DeleteRecoveryPointInputRequestTypeDef,
    DeleteReportPlanInputRequestTypeDef,
    DescribeBackupJobInputRequestTypeDef,
    DescribeBackupVaultInputRequestTypeDef,
    DescribeBackupVaultOutputTypeDef,
    DescribeCopyJobInputRequestTypeDef,
    DescribeFrameworkInputRequestTypeDef,
    DescribeGlobalSettingsOutputTypeDef,
    DescribeProtectedResourceInputRequestTypeDef,
    DescribeProtectedResourceOutputTypeDef,
    DescribeRecoveryPointInputRequestTypeDef,
    DescribeRegionSettingsOutputTypeDef,
    DescribeReportJobInputRequestTypeDef,
    DescribeReportPlanInputRequestTypeDef,
    DescribeRestoreJobInputRequestTypeDef,
    DescribeRestoreJobOutputTypeDef,
    DisassociateRecoveryPointFromParentInputRequestTypeDef,
    DisassociateRecoveryPointInputRequestTypeDef,
    EmptyResponseMetadataTypeDef,
    ExportBackupPlanTemplateInputRequestTypeDef,
    ExportBackupPlanTemplateOutputTypeDef,
    FrameworkTypeDef,
    GetBackupPlanFromJSONInputRequestTypeDef,
    GetBackupPlanFromTemplateInputRequestTypeDef,
    GetBackupPlanInputRequestTypeDef,
    GetBackupSelectionInputRequestTypeDef,
    GetBackupVaultAccessPolicyInputRequestTypeDef,
    GetBackupVaultAccessPolicyOutputTypeDef,
    GetBackupVaultNotificationsInputRequestTypeDef,
    GetBackupVaultNotificationsOutputTypeDef,
    GetLegalHoldInputRequestTypeDef,
    GetRecoveryPointRestoreMetadataInputRequestTypeDef,
    GetRecoveryPointRestoreMetadataOutputTypeDef,
    GetSupportedResourceTypesOutputTypeDef,
    LegalHoldTypeDef,
    ListBackupJobsInputListBackupJobsPaginateTypeDef,
    ListBackupJobsInputRequestTypeDef,
    ListBackupPlanTemplatesInputListBackupPlanTemplatesPaginateTypeDef,
    ListBackupPlanTemplatesInputRequestTypeDef,
    ListBackupPlanVersionsInputListBackupPlanVersionsPaginateTypeDef,
    ListBackupPlanVersionsInputRequestTypeDef,
    ListBackupPlansInputListBackupPlansPaginateTypeDef,
    ListBackupPlansInputRequestTypeDef,
    ListBackupSelectionsInputListBackupSelectionsPaginateTypeDef,
    ListBackupSelectionsInputRequestTypeDef,
    ListBackupVaultsInputListBackupVaultsPaginateTypeDef,
    ListBackupVaultsInputRequestTypeDef,
    ListCopyJobsInputListCopyJobsPaginateTypeDef,
    ListCopyJobsInputRequestTypeDef,
    ListFrameworksInputRequestTypeDef,
    ListLegalHoldsInputListLegalHoldsPaginateTypeDef,
    ListLegalHoldsInputRequestTypeDef,
    ListProtectedResourcesInputListProtectedResourcesPaginateTypeDef,
    ListProtectedResourcesInputRequestTypeDef,
    ProtectedResourceTypeDef,
    ListRecoveryPointsByBackupVaultInputListRecoveryPointsByBackupVaultPaginateTypeDef,
    ListRecoveryPointsByBackupVaultInputRequestTypeDef,
    ListRecoveryPointsByLegalHoldInputListRecoveryPointsByLegalHoldPaginateTypeDef,
    ListRecoveryPointsByLegalHoldInputRequestTypeDef,
    RecoveryPointMemberTypeDef,
    ListRecoveryPointsByResourceInputListRecoveryPointsByResourcePaginateTypeDef,
    ListRecoveryPointsByResourceInputRequestTypeDef,
    RecoveryPointByResourceTypeDef,
    ListReportJobsInputRequestTypeDef,
    ListReportPlansInputRequestTypeDef,
    ListRestoreJobsInputListRestoreJobsPaginateTypeDef,
    ListRestoreJobsInputRequestTypeDef,
    RestoreJobsListMemberTypeDef,
    ListTagsInputRequestTypeDef,
    ListTagsOutputTypeDef,
    PaginatorConfigTypeDef,
    PutBackupVaultAccessPolicyInputRequestTypeDef,
    PutBackupVaultLockConfigurationInputRequestTypeDef,
    PutBackupVaultNotificationsInputRequestTypeDef,
    ReportDestinationTypeDef,
    ResponseMetadataTypeDef,
    StartBackupJobOutputTypeDef,
    StartCopyJobOutputTypeDef,
    StartReportJobInputRequestTypeDef,
    StartReportJobOutputTypeDef,
    StartRestoreJobInputRequestTypeDef,
    StartRestoreJobOutputTypeDef,
    StopBackupJobInputRequestTypeDef,
    TagResourceInputRequestTypeDef,
    UntagResourceInputRequestTypeDef,
    UpdateFrameworkOutputTypeDef,
    UpdateGlobalSettingsInputRequestTypeDef,
    UpdateRegionSettingsInputRequestTypeDef,
    UpdateReportPlanOutputTypeDef,
    BackupPlansListMemberTypeDef,
    CreateBackupPlanOutputTypeDef,
    UpdateBackupPlanOutputTypeDef,
    BackupJobTypeDef,
    CopyJobTypeDef,
    DescribeBackupJobOutputTypeDef,
    ListBackupPlanTemplatesOutputTypeDef,
    CopyActionTypeDef,
    StartBackupJobInputRequestTypeDef,
    StartCopyJobInputRequestTypeDef,
    UpdateRecoveryPointLifecycleInputRequestTypeDef,
    ListBackupSelectionsOutputTypeDef,
    ListBackupVaultsOutputTypeDef,
    DescribeRecoveryPointOutputTypeDef,
    RecoveryPointByBackupVaultTypeDef,
    UpdateRecoveryPointLifecycleOutputTypeDef,
    ConditionsTypeDef,
    FrameworkControlTypeDef,
    CreateReportPlanInputRequestTypeDef,
    ReportPlanTypeDef,
    UpdateReportPlanInputRequestTypeDef,
    RecoveryPointSelectionTypeDef,
    ListFrameworksOutputTypeDef,
    ListLegalHoldsOutputTypeDef,
    ListProtectedResourcesOutputTypeDef,
    ListRecoveryPointsByLegalHoldOutputTypeDef,
    ListRecoveryPointsByResourceOutputTypeDef,
    ListRestoreJobsOutputTypeDef,
    ReportJobTypeDef,
    ListBackupPlanVersionsOutputTypeDef,
    ListBackupPlansOutputTypeDef,
    ListBackupJobsOutputTypeDef,
    DescribeCopyJobOutputTypeDef,
    ListCopyJobsOutputTypeDef,
    BackupRuleInputTypeDef,
    BackupRuleTypeDef,
    ListRecoveryPointsByBackupVaultOutputTypeDef,
    BackupSelectionTypeDef,
    CreateFrameworkInputRequestTypeDef,
    DescribeFrameworkOutputTypeDef,
    UpdateFrameworkInputRequestTypeDef,
    DescribeReportPlanOutputTypeDef,
    ListReportPlansOutputTypeDef,
    CreateLegalHoldInputRequestTypeDef,
    CreateLegalHoldOutputTypeDef,
    GetLegalHoldOutputTypeDef,
    DescribeReportJobOutputTypeDef,
    ListReportJobsOutputTypeDef,
    BackupPlanInputTypeDef,
    BackupPlanTypeDef,
    CreateBackupSelectionInputRequestTypeDef,
    GetBackupSelectionOutputTypeDef,
    CreateBackupPlanInputRequestTypeDef,
    UpdateBackupPlanInputRequestTypeDef,
    GetBackupPlanFromJSONOutputTypeDef,
    GetBackupPlanFromTemplateOutputTypeDef,
    GetBackupPlanOutputTypeDef,
)


def get_structure() -> AdvancedBackupSettingTypeDef:
    return {...}

How it works

Fully automated mypy-boto3-builder carefully generates type annotations for each service, patiently waiting for aiobotocore updates. It delivers drop-in type annotations for you and makes sure that:

  • All available aiobotocore services are covered.
  • Each public class and method of every aiobotocore service gets valid type annotations extracted from botocore schemas.
  • Type annotations include up-to-date documentation.
  • Link to documentation is provided for every method.
  • Code is processed by black and isort for readability.

What's new

Implemented features

  • Fully type annotated boto3, botocore, aiobotocore and aioboto3 libraries
  • mypy, pyright, VSCode, PyCharm, Sublime Text and Emacs compatibility
  • Client, ServiceResource, Resource, Waiter Paginator type annotations for each service
  • Generated TypeDefs for each service
  • Generated Literals for each service
  • Auto discovery of types for boto3.client and boto3.resource calls
  • Auto discovery of types for session.client and session.resource calls
  • Auto discovery of types for client.get_waiter and client.get_paginator calls
  • Auto discovery of types for ServiceResource and Resource collections
  • Auto discovery of types for aiobotocore.Session.create_client calls

Latest changes

Builder changelog can be found in Releases.

Versioning

types-aiobotocore-backup version is the same as related aiobotocore version and follows PEP 440 format.

Thank you

Documentation

All services type annotations can be found in aiobotocore docs

Support and contributing

This package is auto-generated. Please reports any bugs or request new features in mypy-boto3-builder repository.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

types-aiobotocore-backup-2.5.1.tar.gz (41.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

types_aiobotocore_backup-2.5.1-py3-none-any.whl (45.6 kB view details)

Uploaded Python 3

File details

Details for the file types-aiobotocore-backup-2.5.1.tar.gz.

File metadata

  • Download URL: types-aiobotocore-backup-2.5.1.tar.gz
  • Upload date:
  • Size: 41.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for types-aiobotocore-backup-2.5.1.tar.gz
Algorithm Hash digest
SHA256 7eaf6bc30658e98fc8a38ade13adeab2f81416b0863c2e2eb159b6ecb1ff4594
MD5 a59e03a375ed59fcd1dbd73b1b1b62a2
BLAKE2b-256 61c5d8067237bc99b0dd40f68943f758cf92d4b3dfad29b1d70a4be59e3dc0ea

See more details on using hashes here.

File details

Details for the file types_aiobotocore_backup-2.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for types_aiobotocore_backup-2.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b9bc5b633734462eac3ed147fd9dfc20eae31b37c9664e2763ab0aa371f91e8d
MD5 29f6e9665969b0c42e27418dfd7e08c5
BLAKE2b-256 6b84ac0c2f4f117004bd427339ad88cddde6acabeba46bdf22979ff7012d13da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page