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.

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

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

# standalone installation
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()
async with 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()
async with 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()
async with 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()
async with 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()
async with 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()
async with 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

Built Distribution

File details

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

File metadata

  • Download URL: types-aiobotocore-opsworks-2.1.0.post1.tar.gz
  • Upload date:
  • Size: 40.4 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.post1.tar.gz
Algorithm Hash digest
SHA256 82f3aa45f4358ad0c9280e38ab69bad0cdd3f5ee13225741ffc56eb4caafd851
MD5 4aef66fe52cc1f5592881bb6ca2726c7
BLAKE2b-256 4db182fab5a8f2043612ac25ee9cb37cbab61a35e92c9f80bc040d94b9520238

See more details on using hashes here.

File details

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

File metadata

  • Download URL: types_aiobotocore_opsworks-2.1.0.post1-py3-none-any.whl
  • Upload date:
  • Size: 50.2 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.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a51f9d7f3c0fee84001fe5218cdfef0b3d0a4c3e081057a907e012ecf97e338
MD5 2e731e170c425b7f74d80e9946abad89
BLAKE2b-256 b779594495b1635f3ee4a0e29a5332cd4a9b97af081107170cef21857425b9c8

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