Skip to main content

Type annotations for aiobotocore.OpsWorks 2.1.0 service generated by mypy-boto3-builder 6.4.2

Project description

mypy-boto3-opsworks

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

boto3.typed

Type annotations for boto3.OpsWorks 1.20.47 service compatible with VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright and other tools.

Generated by mypy-boto3-builder 6.4.2.

More information can be found on boto3-stubs page and in types-aiobotocore-opsworks docs

See how it helps to find and fix potential bugs:

boto3-stubs demo

How to install

VSCode extension

Add AWS Boto3 extension to your VSCode and run AWS boto3: Quick Start command.

Click Modify and select boto3 common and OpsWorks.

From PyPI with pip

Install types-aiobotocore for OpsWorks service.

python -m pip install types-aiobotocore[opsworks]

Usage

VSCode

  • Install Python extension
  • Install Pylance extension
  • Set Pylance as your Python Language Server
  • Install types-aiobotocore[opsworks] in your environment: python -m pip install 'types-aiobotocore[opsworks]'

Both type checking and auto-complete should work for OpsWorks service. No explicit type annotations required, write your boto3 code as usual.

PyCharm

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

Both type checking and auto-complete should work for OpsWorks service. No explicit type annotations required, write your aiobotocore code as usual. Auto-complete can be slow on big projects or if you have a lot of installed types-aiobotocore submodules.

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[opsworks] in your environment: python -m pip install 'types-aiobotocore[opsworks]'
  • Run mypy as usual

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

pyright

  • Install pyright: yarn global add pyright
  • Install types-aiobotocore[opsworks] in your environment: python -m pip install 'types-aiobotocore[opsworks]'
  • Optionally, you can install boto3-stubs to typings folder.

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

Explicit type annotations

Client annotations

OpsWorksClient provides annotations for session.create_client("opsworks").

from aiobotocore.session import get_session

from types_aiobotocore_opsworks import OpsWorksClient

session = get_session()
with async session.create_client("opsworks") as client:
    client: OpsWorksClient
    # now client usage is checked by mypy and IDE should provide code auto-complete

Paginators annotations

types_aiobotocore_opsworks.paginator module contains type annotations for all paginators.

from aiobotocore.session import get_session

from types_aiobotocore_opsworks import OpsWorksClient
from types_aiobotocore_opsworks.paginator import (
    DescribeEcsClustersPaginator,
)

session = get_session()
with async session.create_client("opsworks") as client:
    client: OpsWorksClient

    # Explicit type annotations are optional here
    # Type should be correctly discovered by mypy and IDEs
    # VSCode requires explicit type annotations
        describe_ecs_clusters_paginator: DescribeEcsClustersPaginator = client.get_paginator("describe_ecs_clusters")
    ```


### Waiters annotations

`types_aiobotocore_opsworks.waiter` module contains type annotations for all waiters.

```python
from aiobotocore.session import get_session

from types_aiobotocore_opsworks.client import OpsWorksClient
from types_aiobotocore_opsworks.waiter import (
    AppExistsWaiter,
    DeploymentSuccessfulWaiter,
    InstanceOnlineWaiter,
    InstanceRegisteredWaiter,
    InstanceStoppedWaiter,
    InstanceTerminatedWaiter,
)

session = get_session()
with async session.create_client("opsworks") as client:
    client: OpsWorksClient

    # Explicit type annotations are optional here
    # Type should be correctly discovered by mypy and IDEs
    # VSCode requires explicit type annotations
        app_exists_waiter: AppExistsWaiter = client.get_waiter("app_exists")
        deployment_successful_waiter: DeploymentSuccessfulWaiter = client.get_waiter("deployment_successful")
        instance_online_waiter: InstanceOnlineWaiter = client.get_waiter("instance_online")
        instance_registered_waiter: InstanceRegisteredWaiter = client.get_waiter("instance_registered")
        instance_stopped_waiter: InstanceStoppedWaiter = client.get_waiter("instance_stopped")
        instance_terminated_waiter: InstanceTerminatedWaiter = client.get_waiter("instance_terminated")
    ```


<a id="service-resource-annotations"></a>

### Service Resource annotations

`OpsWorksServiceResource` provides annotations for `aiobotocore.resource("opsworks")`.

```python
from aiobotocore.session import get_session

from types_aiobotocore_opsworks import OpsWorksServiceResource

session = get_session()
with async session.resource("opsworks") as resource:
    resource: OpsWorksServiceResource
    # now resource usage is checked by mypy and IDE should provide code auto-complete

Other resources annotations

types_aiobotocore_opsworks.service_resource module contains type annotations for all resources.

from aiobotocore.session import get_session

from types_aiobotocore_opsworks import OpsWorksServiceResource
from types_aiobotocore_opsworks.service_resource import (
    Layer,
    Stack,
    StackSummary,
)

session = get_session()
with async session.resource("opsworks") as resource:
    resource: OpsWorksServiceResource

# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
    my_layer: Layer = resource.Layer(...)
    my_stack: Stack = resource.Stack(...)
    my_stack_summary: StackSummary = resource.StackSummary(...)

Collections annotations

types_aiobotocore_opsworks.service_resource module contains type annotations for all OpsWorksServiceResource collections.

from aiobotocore.session import get_session

from types_aiobotocore_opsworks import OpsWorksServiceResource
from types_aiobotocore_opsworks.service_resource import (
    ServiceResourceStacksCollection,
)

session = get_session()
with async session.resource("opsworks") as resource:
    resource: OpsWorksServiceResource

# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
    stacks: opsworks_resources.ServiceResourceStacksCollection = resource.stacks

Literals

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

from types_aiobotocore_opsworks.literals import (
    AppAttributesKeysType,
    AppExistsWaiterName,
    AppTypeType,
    ArchitectureType,
    AutoScalingTypeType,
    CloudWatchLogsEncodingType,
    CloudWatchLogsInitialPositionType,
    CloudWatchLogsTimeZoneType,
    DeploymentCommandNameType,
    DeploymentSuccessfulWaiterName,
    DescribeEcsClustersPaginatorName,
    InstanceOnlineWaiterName,
    InstanceRegisteredWaiterName,
    InstanceStoppedWaiterName,
    InstanceTerminatedWaiterName,
    LayerAttributesKeysType,
    LayerTypeType,
    RootDeviceTypeType,
    SourceTypeType,
    StackAttributesKeysType,
    VirtualizationTypeType,
    VolumeTypeType,
    ServiceName,
    PaginatorName,
    WaiterName,
)

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

Typed dictionaries

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

from types_aiobotocore_opsworks.type_defs import (
    AgentVersionTypeDef,
    AppTypeDef,
    AssignInstanceRequestRequestTypeDef,
    AssignVolumeRequestRequestTypeDef,
    AssociateElasticIpRequestRequestTypeDef,
    AttachElasticLoadBalancerRequestRequestTypeDef,
    AutoScalingThresholdsTypeDef,
    BlockDeviceMappingTypeDef,
    ChefConfigurationResponseMetadataTypeDef,
    ChefConfigurationTypeDef,
    CloneStackRequestRequestTypeDef,
    CloneStackResultTypeDef,
    CloudWatchLogsConfigurationResponseMetadataTypeDef,
    CloudWatchLogsConfigurationTypeDef,
    CloudWatchLogsLogStreamTypeDef,
    CommandTypeDef,
    CreateAppRequestRequestTypeDef,
    CreateAppResultTypeDef,
    CreateDeploymentRequestRequestTypeDef,
    CreateDeploymentResultTypeDef,
    CreateInstanceRequestRequestTypeDef,
    CreateInstanceResultTypeDef,
    CreateLayerRequestRequestTypeDef,
    CreateLayerRequestStackTypeDef,
    CreateLayerResultTypeDef,
    CreateStackRequestRequestTypeDef,
    CreateStackRequestServiceResourceTypeDef,
    CreateStackResultTypeDef,
    CreateUserProfileRequestRequestTypeDef,
    CreateUserProfileResultTypeDef,
    DataSourceTypeDef,
    DeleteAppRequestRequestTypeDef,
    DeleteInstanceRequestRequestTypeDef,
    DeleteLayerRequestRequestTypeDef,
    DeleteStackRequestRequestTypeDef,
    DeleteUserProfileRequestRequestTypeDef,
    DeploymentCommandTypeDef,
    DeploymentTypeDef,
    DeregisterEcsClusterRequestRequestTypeDef,
    DeregisterElasticIpRequestRequestTypeDef,
    DeregisterInstanceRequestRequestTypeDef,
    DeregisterRdsDbInstanceRequestRequestTypeDef,
    DeregisterVolumeRequestRequestTypeDef,
    DescribeAgentVersionsRequestRequestTypeDef,
    DescribeAgentVersionsResultTypeDef,
    DescribeAppsRequestRequestTypeDef,
    DescribeAppsResultTypeDef,
    DescribeCommandsRequestRequestTypeDef,
    DescribeCommandsResultTypeDef,
    DescribeDeploymentsRequestRequestTypeDef,
    DescribeDeploymentsResultTypeDef,
    DescribeEcsClustersRequestRequestTypeDef,
    DescribeEcsClustersResultTypeDef,
    DescribeElasticIpsRequestRequestTypeDef,
    DescribeElasticIpsResultTypeDef,
    DescribeElasticLoadBalancersRequestRequestTypeDef,
    DescribeElasticLoadBalancersResultTypeDef,
    DescribeInstancesRequestRequestTypeDef,
    DescribeInstancesResultTypeDef,
    DescribeLayersRequestRequestTypeDef,
    DescribeLayersResultTypeDef,
    DescribeLoadBasedAutoScalingRequestRequestTypeDef,
    DescribeLoadBasedAutoScalingResultTypeDef,
    DescribeMyUserProfileResultTypeDef,
    DescribeOperatingSystemsResponseTypeDef,
    DescribePermissionsRequestRequestTypeDef,
    DescribePermissionsResultTypeDef,
    DescribeRaidArraysRequestRequestTypeDef,
    DescribeRaidArraysResultTypeDef,
    DescribeRdsDbInstancesRequestRequestTypeDef,
    DescribeRdsDbInstancesResultTypeDef,
    DescribeServiceErrorsRequestRequestTypeDef,
    DescribeServiceErrorsResultTypeDef,
    DescribeStackProvisioningParametersRequestRequestTypeDef,
    DescribeStackProvisioningParametersResultTypeDef,
    DescribeStackSummaryRequestRequestTypeDef,
    DescribeStackSummaryResultTypeDef,
    DescribeStacksRequestRequestTypeDef,
    DescribeStacksResultTypeDef,
    DescribeTimeBasedAutoScalingRequestRequestTypeDef,
    DescribeTimeBasedAutoScalingResultTypeDef,
    DescribeUserProfilesRequestRequestTypeDef,
    DescribeUserProfilesResultTypeDef,
    DescribeVolumesRequestRequestTypeDef,
    DescribeVolumesResultTypeDef,
    DetachElasticLoadBalancerRequestRequestTypeDef,
    DisassociateElasticIpRequestRequestTypeDef,
    EbsBlockDeviceTypeDef,
    EcsClusterTypeDef,
    ElasticIpTypeDef,
    ElasticLoadBalancerTypeDef,
    EnvironmentVariableTypeDef,
    GetHostnameSuggestionRequestRequestTypeDef,
    GetHostnameSuggestionResultTypeDef,
    GrantAccessRequestRequestTypeDef,
    GrantAccessResultTypeDef,
    InstanceIdentityTypeDef,
    InstanceTypeDef,
    InstancesCountResponseMetadataTypeDef,
    InstancesCountTypeDef,
    LayerTypeDef,
    LifecycleEventConfigurationResponseMetadataTypeDef,
    LifecycleEventConfigurationTypeDef,
    ListTagsRequestRequestTypeDef,
    ListTagsResultTypeDef,
    LoadBasedAutoScalingConfigurationTypeDef,
    OperatingSystemConfigurationManagerTypeDef,
    OperatingSystemTypeDef,
    PaginatorConfigTypeDef,
    PermissionTypeDef,
    RaidArrayTypeDef,
    RdsDbInstanceTypeDef,
    RebootInstanceRequestRequestTypeDef,
    RecipesResponseMetadataTypeDef,
    RecipesTypeDef,
    RegisterEcsClusterRequestRequestTypeDef,
    RegisterEcsClusterResultTypeDef,
    RegisterElasticIpRequestRequestTypeDef,
    RegisterElasticIpResultTypeDef,
    RegisterInstanceRequestRequestTypeDef,
    RegisterInstanceResultTypeDef,
    RegisterRdsDbInstanceRequestRequestTypeDef,
    RegisterVolumeRequestRequestTypeDef,
    RegisterVolumeResultTypeDef,
    ReportedOsTypeDef,
    ResponseMetadataTypeDef,
    SelfUserProfileTypeDef,
    ServiceErrorTypeDef,
    ServiceResourceLayerRequestTypeDef,
    ServiceResourceStackRequestTypeDef,
    ServiceResourceStackSummaryRequestTypeDef,
    SetLoadBasedAutoScalingRequestRequestTypeDef,
    SetPermissionRequestRequestTypeDef,
    SetTimeBasedAutoScalingRequestRequestTypeDef,
    ShutdownEventConfigurationTypeDef,
    SourceResponseMetadataTypeDef,
    SourceTypeDef,
    SslConfigurationTypeDef,
    StackConfigurationManagerResponseMetadataTypeDef,
    StackConfigurationManagerTypeDef,
    StackSummaryTypeDef,
    StackTypeDef,
    StartInstanceRequestRequestTypeDef,
    StartStackRequestRequestTypeDef,
    StopInstanceRequestRequestTypeDef,
    StopStackRequestRequestTypeDef,
    TagResourceRequestRequestTypeDef,
    TemporaryCredentialTypeDef,
    TimeBasedAutoScalingConfigurationTypeDef,
    UnassignInstanceRequestRequestTypeDef,
    UnassignVolumeRequestRequestTypeDef,
    UntagResourceRequestRequestTypeDef,
    UpdateAppRequestRequestTypeDef,
    UpdateElasticIpRequestRequestTypeDef,
    UpdateInstanceRequestRequestTypeDef,
    UpdateLayerRequestRequestTypeDef,
    UpdateMyUserProfileRequestRequestTypeDef,
    UpdateRdsDbInstanceRequestRequestTypeDef,
    UpdateStackRequestRequestTypeDef,
    UpdateUserProfileRequestRequestTypeDef,
    UpdateVolumeRequestRequestTypeDef,
    UserProfileTypeDef,
    VolumeConfigurationTypeDef,
    VolumeTypeDef,
    WaiterConfigTypeDef,
    WeeklyAutoScalingScheduleTypeDef,
)

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

Versioning

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

Documentation

All type annotations can be found in types-aiobotocore-opsworks docs

Support and contributing

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

Project details


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-opsworks-2.1.0.tar.gz (40.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file types-aiobotocore-opsworks-2.1.0.tar.gz.

File metadata

  • Download URL: types-aiobotocore-opsworks-2.1.0.tar.gz
  • Upload date:
  • Size: 40.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for types-aiobotocore-opsworks-2.1.0.tar.gz
Algorithm Hash digest
SHA256 3a1440f557f3e04e504d87277546bd27ea87105b8289cb7e13d80c083d3e4711
MD5 4f7abbfc07873c9be9d763264e13d9bb
BLAKE2b-256 2d90f47b5cf120076f6414ee4e2d5a2eed35771faf22506d538ec998582c76aa

See more details on using hashes here.

File details

Details for the file types_aiobotocore_opsworks-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: types_aiobotocore_opsworks-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 49.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for types_aiobotocore_opsworks-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 67abeaba82f49e231d9a58c98009aa3c98a3d23a3b69d205716c2e91838064c4
MD5 6b5180fa29cd3cee23a985f10ef37ccc
BLAKE2b-256 10c217fbb87884e58bf00d66b8c41ecc384ccdf0a7e48405777656d67e751896

See more details on using hashes here.

Supported by

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