Skip to main content

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

Project description

mypy-boto3-amp

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

boto3.typed

Type annotations for boto3.PrometheusService 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-amp 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 PrometheusService.

From PyPI with pip

Install types-aiobotocore for PrometheusService service.

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

# 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[amp]'

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

Usage

VSCode

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

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

PyCharm

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

Both type checking and auto-complete should work for PrometheusService 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[amp] in your environment: python -m pip install 'types-aiobotocore[amp]'
  • Run mypy as usual

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

pyright

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

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

Explicit type annotations

Client annotations

PrometheusServiceClient provides annotations for session.create_client("amp").

from aiobotocore.session import get_session

from types_aiobotocore_amp import PrometheusServiceClient

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

Paginators annotations

types_aiobotocore_amp.paginator module contains type annotations for all paginators.

from aiobotocore.session import get_session

from types_aiobotocore_amp import PrometheusServiceClient
from types_aiobotocore_amp.paginator import (
    ListRuleGroupsNamespacesPaginator,
    ListWorkspacesPaginator,
)

session = get_session()
async with session.create_client("amp") as client:
    client: PrometheusServiceClient

    # Explicit type annotations are optional here
    # Type should be correctly discovered by mypy and IDEs
    # VSCode requires explicit type annotations
        list_rule_groups_namespaces_paginator: ListRuleGroupsNamespacesPaginator = client.get_paginator("list_rule_groups_namespaces")
        list_workspaces_paginator: ListWorkspacesPaginator = client.get_paginator("list_workspaces")
    ```


### Waiters annotations

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

```python
from aiobotocore.session import get_session

from types_aiobotocore_amp.client import PrometheusServiceClient
from types_aiobotocore_amp.waiter import (
    WorkspaceActiveWaiter,
    WorkspaceDeletedWaiter,
)

session = get_session()
async with session.create_client("amp") as client:
    client: PrometheusServiceClient

    # Explicit type annotations are optional here
    # Type should be correctly discovered by mypy and IDEs
    # VSCode requires explicit type annotations
        workspace_active_waiter: WorkspaceActiveWaiter = client.get_waiter("workspace_active")
        workspace_deleted_waiter: WorkspaceDeletedWaiter = client.get_waiter("workspace_deleted")
    ```





<a id="literals"></a>

### Literals

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

```python
from types_aiobotocore_amp.literals import (
    AlertManagerDefinitionStatusCodeType,
    ListRuleGroupsNamespacesPaginatorName,
    ListWorkspacesPaginatorName,
    RuleGroupsNamespaceStatusCodeType,
    WorkspaceActiveWaiterName,
    WorkspaceDeletedWaiterName,
    WorkspaceStatusCodeType,
    ServiceName,
    PaginatorName,
    WaiterName,
)

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

Typed dictionaries

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

from types_aiobotocore_amp.type_defs import (
    AlertManagerDefinitionDescriptionTypeDef,
    AlertManagerDefinitionStatusTypeDef,
    CreateAlertManagerDefinitionRequestRequestTypeDef,
    CreateAlertManagerDefinitionResponseTypeDef,
    CreateRuleGroupsNamespaceRequestRequestTypeDef,
    CreateRuleGroupsNamespaceResponseTypeDef,
    CreateWorkspaceRequestRequestTypeDef,
    CreateWorkspaceResponseTypeDef,
    DeleteAlertManagerDefinitionRequestRequestTypeDef,
    DeleteRuleGroupsNamespaceRequestRequestTypeDef,
    DeleteWorkspaceRequestRequestTypeDef,
    DescribeAlertManagerDefinitionRequestRequestTypeDef,
    DescribeAlertManagerDefinitionResponseTypeDef,
    DescribeRuleGroupsNamespaceRequestRequestTypeDef,
    DescribeRuleGroupsNamespaceResponseTypeDef,
    DescribeWorkspaceRequestRequestTypeDef,
    DescribeWorkspaceResponseTypeDef,
    ListRuleGroupsNamespacesRequestRequestTypeDef,
    ListRuleGroupsNamespacesResponseTypeDef,
    ListTagsForResourceRequestRequestTypeDef,
    ListTagsForResourceResponseTypeDef,
    ListWorkspacesRequestRequestTypeDef,
    ListWorkspacesResponseTypeDef,
    PaginatorConfigTypeDef,
    PutAlertManagerDefinitionRequestRequestTypeDef,
    PutAlertManagerDefinitionResponseTypeDef,
    PutRuleGroupsNamespaceRequestRequestTypeDef,
    PutRuleGroupsNamespaceResponseTypeDef,
    ResponseMetadataTypeDef,
    RuleGroupsNamespaceDescriptionTypeDef,
    RuleGroupsNamespaceStatusTypeDef,
    RuleGroupsNamespaceSummaryTypeDef,
    TagResourceRequestRequestTypeDef,
    UntagResourceRequestRequestTypeDef,
    UpdateWorkspaceAliasRequestRequestTypeDef,
    WaiterConfigTypeDef,
    WorkspaceDescriptionTypeDef,
    WorkspaceStatusTypeDef,
    WorkspaceSummaryTypeDef,
)

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

Versioning

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

Documentation

All type annotations can be found in types-aiobotocore-amp 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-amp-2.1.0.post1.tar.gz (14.7 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_amp-2.1.0.post1-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: types-aiobotocore-amp-2.1.0.post1.tar.gz
  • Upload date:
  • Size: 14.7 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-amp-2.1.0.post1.tar.gz
Algorithm Hash digest
SHA256 6edd605371e72c495aab73ff212fb8b73dd5155b39f6bf07efe7d145c8dbf5ef
MD5 b05953476826a99805b3ee8bc996851b
BLAKE2b-256 f4a301701e132e11bc1369ecdc253482a656a8b39490a90e11e3e5f58b69b2d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: types_aiobotocore_amp-2.1.0.post1-py3-none-any.whl
  • Upload date:
  • Size: 22.6 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_amp-2.1.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 a0c6a5f403beb7569aa6ebe51c20df8c5492767beac01050747f96c668f70355
MD5 656e4fc7ca3b8402288b9a7eaa8d8937
BLAKE2b-256 2e348d1494f065085bcf20061f8a8dbcfff96074ce2c5ea134360871c3723363

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