PrometheusService module#
Index > PrometheusService
Auto-generated documentation for PrometheusService type annotations stubs module types-boto3-amp.
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.40.63' mypy-boto3-builder
- Select boto3AWS SDK.
- Add PrometheusServiceservice.
- 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 PrometheusService.
From PyPI with pip#
Install types-boto3 for PrometheusService service.
# install with boto3 type annotations
python -m pip install 'types-boto3[amp]'
# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-boto3-lite[amp]'
# standalone installation
python -m pip install types-boto3-ampHow to uninstall#
python -m pip uninstall -y types-boto3-ampUsage#
Code samples can be found in Examples.
PrometheusServiceClient#
Type annotations and code completion for  boto3.client("amp") as PrometheusServiceClient
 boto3 documentation
# PrometheusServiceClient usage example
from boto3.session import Session
from types_boto3_amp.client import PrometheusServiceClient
def get_client() -> PrometheusServiceClient:
    return Session().client("amp")Paginators#
Type annotations and code completion for paginators
from boto3.client("amp").get_paginator("...").
# ListAnomalyDetectorsPaginator usage example
from boto3.session import Session
from types_boto3_amp.paginator import ListAnomalyDetectorsPaginator
def get_list_anomaly_detectors_paginator() -> ListAnomalyDetectorsPaginator:
    return Session().client("amp").get_paginator("list_anomaly_detectors"))- ListAnomalyDetectorsPaginator
- ListRuleGroupsNamespacesPaginator
- ListScrapersPaginator
- ListWorkspacesPaginator
Waiters#
Type annotations and code completion for waiters
from boto3.client("amp").get_waiter("...").
# AnomalyDetectorActiveWaiter usage example
from boto3.session import Session
from types_boto3_amp.waiter import AnomalyDetectorActiveWaiter
def get_anomaly_detector_active_waiter() -> AnomalyDetectorActiveWaiter:
    return Session().client("amp").get_waiter("anomaly_detector_active")- AnomalyDetectorActiveWaiter
- AnomalyDetectorDeletedWaiter
- ScraperActiveWaiter
- ScraperDeletedWaiter
- WorkspaceActiveWaiter
- WorkspaceDeletedWaiter
Literals#
Type annotations for literals used in methods and schema.
# AlertManagerDefinitionStatusCodeType usage example
from types_boto3_amp.literals import AlertManagerDefinitionStatusCodeType
def get_value() -> AlertManagerDefinitionStatusCodeType:
    return "ACTIVE"- AlertManagerDefinitionStatusCodeType
- AnomalyDetectorActiveWaiterName
- AnomalyDetectorDeletedWaiterName
- AnomalyDetectorStatusCodeType
- ListAnomalyDetectorsPaginatorName
- ListRuleGroupsNamespacesPaginatorName
- ListScrapersPaginatorName
- ListWorkspacesPaginatorName
- LoggingConfigurationStatusCodeType
- QueryLoggingConfigurationStatusCodeType
- RuleGroupsNamespaceStatusCodeType
- ScraperActiveWaiterName
- ScraperComponentTypeType
- ScraperDeletedWaiterName
- ScraperLoggingConfigurationStatusCodeType
- ScraperStatusCodeType
- WorkspaceActiveWaiterName
- WorkspaceConfigurationStatusCodeType
- WorkspaceDeletedWaiterName
- WorkspacePolicyStatusCodeType
- WorkspaceStatusCodeType
- PrometheusServiceServiceName
- ServiceName
- ResourceServiceName
- PaginatorName
- WaiterName
- RegionName
Type definitions#
Type annotations for type definitions used in methods and schema.
- AlertManagerDefinitionStatusTypeDef
- AmpConfigurationTypeDef
- AnomalyDetectorMissingDataActionTypeDef
- AnomalyDetectorStatusTypeDef
- BlobTypeDef
- CloudWatchLogDestinationTypeDef
- ComponentConfigOutputTypeDef
- ComponentConfigTypeDef
- ResponseMetadataTypeDef
- CreateLoggingConfigurationRequestTypeDef
- LoggingConfigurationStatusTypeDef
- QueryLoggingConfigurationStatusTypeDef
- RuleGroupsNamespaceStatusTypeDef
- RoleConfigurationTypeDef
- ScraperStatusTypeDef
- CreateWorkspaceRequestTypeDef
- WorkspaceStatusTypeDef
- DeleteAlertManagerDefinitionRequestTypeDef
- DeleteAnomalyDetectorRequestTypeDef
- DeleteLoggingConfigurationRequestTypeDef
- DeleteQueryLoggingConfigurationRequestTypeDef
- DeleteResourcePolicyRequestTypeDef
- DeleteRuleGroupsNamespaceRequestTypeDef
- DeleteScraperLoggingConfigurationRequestTypeDef
- DeleteScraperRequestTypeDef
- DeleteWorkspaceRequestTypeDef
- DescribeAlertManagerDefinitionRequestTypeDef
- DescribeAnomalyDetectorRequestTypeDef
- WaiterConfigTypeDef
- DescribeLoggingConfigurationRequestTypeDef
- DescribeQueryLoggingConfigurationRequestTypeDef
- DescribeResourcePolicyRequestTypeDef
- DescribeRuleGroupsNamespaceRequestTypeDef
- DescribeScraperLoggingConfigurationRequestTypeDef
- ScraperLoggingConfigurationStatusTypeDef
- DescribeScraperRequestTypeDef
- DescribeWorkspaceConfigurationRequestTypeDef
- DescribeWorkspaceRequestTypeDef
- EksConfigurationOutputTypeDef
- EksConfigurationTypeDef
- IgnoreNearExpectedTypeDef
- LimitsPerLabelSetEntryTypeDef
- PaginatorConfigTypeDef
- ListAnomalyDetectorsRequestTypeDef
- ListRuleGroupsNamespacesRequestTypeDef
- ListScrapersRequestTypeDef
- ListTagsForResourceRequestTypeDef
- ListWorkspacesRequestTypeDef
- LoggingFilterTypeDef
- PutResourcePolicyRequestTypeDef
- ScrapeConfigurationOutputTypeDef
- TagResourceRequestTypeDef
- UntagResourceRequestTypeDef
- UpdateLoggingConfigurationRequestTypeDef
- UpdateWorkspaceAliasRequestTypeDef
- WorkspaceConfigurationStatusTypeDef
- AlertManagerDefinitionDescriptionTypeDef
- DestinationTypeDef
- AnomalyDetectorSummaryTypeDef
- CreateAlertManagerDefinitionRequestTypeDef
- CreateRuleGroupsNamespaceRequestTypeDef
- PutAlertManagerDefinitionRequestTypeDef
- PutRuleGroupsNamespaceRequestTypeDef
- ScrapeConfigurationTypeDef
- ScraperLoggingDestinationTypeDef
- ScraperComponentOutputTypeDef
- ComponentConfigUnionTypeDef
- CreateAlertManagerDefinitionResponseTypeDef
- CreateAnomalyDetectorResponseTypeDef
- DescribeResourcePolicyResponseTypeDef
- EmptyResponseMetadataTypeDef
- GetDefaultScraperConfigurationResponseTypeDef
- ListTagsForResourceResponseTypeDef
- PutAlertManagerDefinitionResponseTypeDef
- PutAnomalyDetectorResponseTypeDef
- PutResourcePolicyResponseTypeDef
- CreateLoggingConfigurationResponseTypeDef
- LoggingConfigurationMetadataTypeDef
- UpdateLoggingConfigurationResponseTypeDef
- CreateQueryLoggingConfigurationResponseTypeDef
- UpdateQueryLoggingConfigurationResponseTypeDef
- CreateRuleGroupsNamespaceResponseTypeDef
- PutRuleGroupsNamespaceResponseTypeDef
- RuleGroupsNamespaceDescriptionTypeDef
- RuleGroupsNamespaceSummaryTypeDef
- CreateScraperResponseTypeDef
- DeleteScraperResponseTypeDef
- UpdateScraperResponseTypeDef
- CreateWorkspaceResponseTypeDef
- WorkspaceDescriptionTypeDef
- WorkspaceSummaryTypeDef
- DescribeAnomalyDetectorRequestWaitExtraTypeDef
- DescribeAnomalyDetectorRequestWaitTypeDef
- DescribeScraperRequestWaitExtraTypeDef
- DescribeScraperRequestWaitTypeDef
- DescribeWorkspaceRequestWaitExtraTypeDef
- DescribeWorkspaceRequestWaitTypeDef
- UpdateScraperLoggingConfigurationResponseTypeDef
- SourceOutputTypeDef
- SourceTypeDef
- RandomCutForestConfigurationTypeDef
- LimitsPerLabelSetOutputTypeDef
- LimitsPerLabelSetTypeDef
- ListAnomalyDetectorsRequestPaginateTypeDef
- ListRuleGroupsNamespacesRequestPaginateTypeDef
- ListScrapersRequestPaginateTypeDef
- ListWorkspacesRequestPaginateTypeDef
- LoggingDestinationTypeDef
- UpdateWorkspaceConfigurationResponseTypeDef
- DescribeAlertManagerDefinitionResponseTypeDef
- ListAnomalyDetectorsResponseTypeDef
- ScrapeConfigurationUnionTypeDef
- DescribeScraperLoggingConfigurationResponseTypeDef
- ScraperComponentTypeDef
- DescribeLoggingConfigurationResponseTypeDef
- DescribeRuleGroupsNamespaceResponseTypeDef
- ListRuleGroupsNamespacesResponseTypeDef
- DescribeWorkspaceResponseTypeDef
- ListWorkspacesResponseTypeDef
- ScraperDescriptionTypeDef
- ScraperSummaryTypeDef
- SourceUnionTypeDef
- AnomalyDetectorConfigurationTypeDef
- WorkspaceConfigurationDescriptionTypeDef
- LimitsPerLabelSetUnionTypeDef
- CreateQueryLoggingConfigurationRequestTypeDef
- QueryLoggingConfigurationMetadataTypeDef
- UpdateQueryLoggingConfigurationRequestTypeDef
- UpdateScraperRequestTypeDef
- ScraperComponentUnionTypeDef
- DescribeScraperResponseTypeDef
- ListScrapersResponseTypeDef
- CreateScraperRequestTypeDef
- AnomalyDetectorDescriptionTypeDef
- CreateAnomalyDetectorRequestTypeDef
- PutAnomalyDetectorRequestTypeDef
- DescribeWorkspaceConfigurationResponseTypeDef
- UpdateWorkspaceConfigurationRequestTypeDef
- DescribeQueryLoggingConfigurationResponseTypeDef
- UpdateScraperLoggingConfigurationRequestTypeDef
- DescribeAnomalyDetectorResponseTypeDef