PrometheusServiceClient#
Index > PrometheusService > PrometheusServiceClient
Auto-generated documentation for PrometheusService type annotations stubs module types-boto3-amp.
PrometheusServiceClient#
Type annotations and code completion for boto3.client("amp").
 boto3 documentation
# PrometheusServiceClient usage example
from boto3.session import Session
from types_boto3_amp.client import PrometheusServiceClient
def get_amp_client() -> PrometheusServiceClient:
    return Session().client("amp")Exceptions#
boto3 client exceptions are generated in runtime.
This class provides code completion for boto3.client("amp").exceptions structure.
# Exceptions.exceptions usage example
client = boto3.client("amp")
try:
    do_something(client)
except (
    client.exceptions.AccessDeniedException,
    client.exceptions.ClientError,
    client.exceptions.ConflictException,
    client.exceptions.InternalServerException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ServiceQuotaExceededException,
    client.exceptions.ThrottlingException,
    client.exceptions.ValidationException,
) as e:
    print(e)# Exceptions.exceptions type checking example
from types_boto3_amp.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
    ...Methods#
can_paginate#
Type annotations and code completion for boto3.client("amp").can_paginate method.
 boto3 documentation
# can_paginate method definition
def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...generate_presigned_url#
Type annotations and code completion for boto3.client("amp").generate_presigned_url method.
 boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...create_alert_manager_definition#
The CreateAlertManagerDefinition operation creates the alert
manager definition in a workspace.
Type annotations and code completion for boto3.client("amp").create_alert_manager_definition method.
 boto3 documentation
# create_alert_manager_definition method definition
def create_alert_manager_definition(
    self,
    *,
    workspaceId: str,
    data: BlobTypeDef,
    clientToken: str = ...,
) -> CreateAlertManagerDefinitionResponseTypeDef:  # (1)
    ...# create_alert_manager_definition method usage example with argument unpacking
kwargs: CreateAlertManagerDefinitionRequestTypeDef = {  # (1)
    "workspaceId": ...,
    "data": ...,
}
parent.create_alert_manager_definition(**kwargs)create_anomaly_detector#
Creates an anomaly detector within a workspace using the Random Cut Forest algorithm for time-series analysis.
Type annotations and code completion for boto3.client("amp").create_anomaly_detector method.
 boto3 documentation
# create_anomaly_detector method definition
def create_anomaly_detector(
    self,
    *,
    workspaceId: str,
    alias: str,
    configuration: AnomalyDetectorConfigurationTypeDef,  # (1)
    evaluationIntervalInSeconds: int = ...,
    missingDataAction: AnomalyDetectorMissingDataActionTypeDef = ...,  # (2)
    labels: Mapping[str, str] = ...,
    clientToken: str = ...,
    tags: Mapping[str, str] = ...,
) -> CreateAnomalyDetectorResponseTypeDef:  # (3)
    ...- See AnomalyDetectorConfigurationTypeDef
- See AnomalyDetectorMissingDataActionTypeDef
- See CreateAnomalyDetectorResponseTypeDef
# create_anomaly_detector method usage example with argument unpacking
kwargs: CreateAnomalyDetectorRequestTypeDef = {  # (1)
    "workspaceId": ...,
    "alias": ...,
    "configuration": ...,
}
parent.create_anomaly_detector(**kwargs)create_logging_configuration#
The CreateLoggingConfiguration operation creates rules and
alerting logging configuration for the workspace.
Type annotations and code completion for boto3.client("amp").create_logging_configuration method.
 boto3 documentation
# create_logging_configuration method definition
def create_logging_configuration(
    self,
    *,
    workspaceId: str,
    logGroupArn: str,
    clientToken: str = ...,
) -> CreateLoggingConfigurationResponseTypeDef:  # (1)
    ...# create_logging_configuration method usage example with argument unpacking
kwargs: CreateLoggingConfigurationRequestTypeDef = {  # (1)
    "workspaceId": ...,
    "logGroupArn": ...,
}
parent.create_logging_configuration(**kwargs)create_query_logging_configuration#
Creates a query logging configuration for the specified workspace.
Type annotations and code completion for boto3.client("amp").create_query_logging_configuration method.
 boto3 documentation
# create_query_logging_configuration method definition
def create_query_logging_configuration(
    self,
    *,
    workspaceId: str,
    destinations: Sequence[LoggingDestinationTypeDef],  # (1)
    clientToken: str = ...,
) -> CreateQueryLoggingConfigurationResponseTypeDef:  # (2)
    ...- See Sequence[LoggingDestinationTypeDef]
- See CreateQueryLoggingConfigurationResponseTypeDef
# create_query_logging_configuration method usage example with argument unpacking
kwargs: CreateQueryLoggingConfigurationRequestTypeDef = {  # (1)
    "workspaceId": ...,
    "destinations": ...,
}
parent.create_query_logging_configuration(**kwargs)create_rule_groups_namespace#
The CreateRuleGroupsNamespace operation creates a rule groups
namespace within a workspace.
Type annotations and code completion for boto3.client("amp").create_rule_groups_namespace method.
 boto3 documentation
# create_rule_groups_namespace method definition
def create_rule_groups_namespace(
    self,
    *,
    workspaceId: str,
    name: str,
    data: BlobTypeDef,
    clientToken: str = ...,
    tags: Mapping[str, str] = ...,
) -> CreateRuleGroupsNamespaceResponseTypeDef:  # (1)
    ...# create_rule_groups_namespace method usage example with argument unpacking
kwargs: CreateRuleGroupsNamespaceRequestTypeDef = {  # (1)
    "workspaceId": ...,
    "name": ...,
    "data": ...,
}
parent.create_rule_groups_namespace(**kwargs)create_scraper#
The CreateScraper operation creates a scraper to collect metrics.
Type annotations and code completion for boto3.client("amp").create_scraper method.
 boto3 documentation
# create_scraper method definition
def create_scraper(
    self,
    *,
    scrapeConfiguration: ScrapeConfigurationUnionTypeDef,  # (1)
    source: SourceUnionTypeDef,  # (2)
    destination: DestinationTypeDef,  # (3)
    alias: str = ...,
    roleConfiguration: RoleConfigurationTypeDef = ...,  # (4)
    clientToken: str = ...,
    tags: Mapping[str, str] = ...,
) -> CreateScraperResponseTypeDef:  # (5)
    ...- See ScrapeConfigurationUnionTypeDef
- See SourceUnionTypeDef
- See DestinationTypeDef
- See RoleConfigurationTypeDef
- See CreateScraperResponseTypeDef
# create_scraper method usage example with argument unpacking
kwargs: CreateScraperRequestTypeDef = {  # (1)
    "scrapeConfiguration": ...,
    "source": ...,
    "destination": ...,
}
parent.create_scraper(**kwargs)create_workspace#
Creates a Prometheus workspace.
Type annotations and code completion for boto3.client("amp").create_workspace method.
 boto3 documentation
# create_workspace method definition
def create_workspace(
    self,
    *,
    alias: str = ...,
    clientToken: str = ...,
    tags: Mapping[str, str] = ...,
    kmsKeyArn: str = ...,
) -> CreateWorkspaceResponseTypeDef:  # (1)
    ...# create_workspace method usage example with argument unpacking
kwargs: CreateWorkspaceRequestTypeDef = {  # (1)
    "alias": ...,
}
parent.create_workspace(**kwargs)delete_alert_manager_definition#
Deletes the alert manager definition from a workspace.
Type annotations and code completion for boto3.client("amp").delete_alert_manager_definition method.
 boto3 documentation
# delete_alert_manager_definition method definition
def delete_alert_manager_definition(
    self,
    *,
    workspaceId: str,
    clientToken: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...# delete_alert_manager_definition method usage example with argument unpacking
kwargs: DeleteAlertManagerDefinitionRequestTypeDef = {  # (1)
    "workspaceId": ...,
}
parent.delete_alert_manager_definition(**kwargs)delete_anomaly_detector#
Removes an anomaly detector from a workspace.
Type annotations and code completion for boto3.client("amp").delete_anomaly_detector method.
 boto3 documentation
# delete_anomaly_detector method definition
def delete_anomaly_detector(
    self,
    *,
    workspaceId: str,
    anomalyDetectorId: str,
    clientToken: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...# delete_anomaly_detector method usage example with argument unpacking
kwargs: DeleteAnomalyDetectorRequestTypeDef = {  # (1)
    "workspaceId": ...,
    "anomalyDetectorId": ...,
}
parent.delete_anomaly_detector(**kwargs)delete_logging_configuration#
Deletes the rules and alerting logging configuration for a workspace.
Type annotations and code completion for boto3.client("amp").delete_logging_configuration method.
 boto3 documentation
# delete_logging_configuration method definition
def delete_logging_configuration(
    self,
    *,
    workspaceId: str,
    clientToken: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...# delete_logging_configuration method usage example with argument unpacking
kwargs: DeleteLoggingConfigurationRequestTypeDef = {  # (1)
    "workspaceId": ...,
}
parent.delete_logging_configuration(**kwargs)delete_query_logging_configuration#
Deletes the query logging configuration for the specified workspace.
Type annotations and code completion for boto3.client("amp").delete_query_logging_configuration method.
 boto3 documentation
# delete_query_logging_configuration method definition
def delete_query_logging_configuration(
    self,
    *,
    workspaceId: str,
    clientToken: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...# delete_query_logging_configuration method usage example with argument unpacking
kwargs: DeleteQueryLoggingConfigurationRequestTypeDef = {  # (1)
    "workspaceId": ...,
}
parent.delete_query_logging_configuration(**kwargs)delete_resource_policy#
Deletes the resource-based policy attached to an Amazon Managed Service for Prometheus workspace.
Type annotations and code completion for boto3.client("amp").delete_resource_policy method.
 boto3 documentation
# delete_resource_policy method definition
def delete_resource_policy(
    self,
    *,
    workspaceId: str,
    clientToken: str = ...,
    revisionId: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...# delete_resource_policy method usage example with argument unpacking
kwargs: DeleteResourcePolicyRequestTypeDef = {  # (1)
    "workspaceId": ...,
}
parent.delete_resource_policy(**kwargs)delete_rule_groups_namespace#
Deletes one rule groups namespace and its associated rule groups definition.
Type annotations and code completion for boto3.client("amp").delete_rule_groups_namespace method.
 boto3 documentation
# delete_rule_groups_namespace method definition
def delete_rule_groups_namespace(
    self,
    *,
    workspaceId: str,
    name: str,
    clientToken: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...# delete_rule_groups_namespace method usage example with argument unpacking
kwargs: DeleteRuleGroupsNamespaceRequestTypeDef = {  # (1)
    "workspaceId": ...,
    "name": ...,
}
parent.delete_rule_groups_namespace(**kwargs)delete_scraper#
The DeleteScraper operation deletes one scraper, and stops any
metrics collection that the scraper performs.
Type annotations and code completion for boto3.client("amp").delete_scraper method.
 boto3 documentation
# delete_scraper method definition
def delete_scraper(
    self,
    *,
    scraperId: str,
    clientToken: str = ...,
) -> DeleteScraperResponseTypeDef:  # (1)
    ...# delete_scraper method usage example with argument unpacking
kwargs: DeleteScraperRequestTypeDef = {  # (1)
    "scraperId": ...,
}
parent.delete_scraper(**kwargs)delete_scraper_logging_configuration#
Deletes the logging configuration for a Amazon Managed Service for Prometheus scraper.
Type annotations and code completion for boto3.client("amp").delete_scraper_logging_configuration method.
 boto3 documentation
# delete_scraper_logging_configuration method definition
def delete_scraper_logging_configuration(
    self,
    *,
    scraperId: str,
    clientToken: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...# delete_scraper_logging_configuration method usage example with argument unpacking
kwargs: DeleteScraperLoggingConfigurationRequestTypeDef = {  # (1)
    "scraperId": ...,
}
parent.delete_scraper_logging_configuration(**kwargs)delete_workspace#
Deletes an existing workspace.
Type annotations and code completion for boto3.client("amp").delete_workspace method.
 boto3 documentation
# delete_workspace method definition
def delete_workspace(
    self,
    *,
    workspaceId: str,
    clientToken: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...# delete_workspace method usage example with argument unpacking
kwargs: DeleteWorkspaceRequestTypeDef = {  # (1)
    "workspaceId": ...,
}
parent.delete_workspace(**kwargs)describe_alert_manager_definition#
Retrieves the full information about the alert manager definition for a workspace.
Type annotations and code completion for boto3.client("amp").describe_alert_manager_definition method.
 boto3 documentation
# describe_alert_manager_definition method definition
def describe_alert_manager_definition(
    self,
    *,
    workspaceId: str,
) -> DescribeAlertManagerDefinitionResponseTypeDef:  # (1)
    ...# describe_alert_manager_definition method usage example with argument unpacking
kwargs: DescribeAlertManagerDefinitionRequestTypeDef = {  # (1)
    "workspaceId": ...,
}
parent.describe_alert_manager_definition(**kwargs)describe_anomaly_detector#
Retrieves detailed information about a specific anomaly detector, including its status and configuration.
Type annotations and code completion for boto3.client("amp").describe_anomaly_detector method.
 boto3 documentation
# describe_anomaly_detector method definition
def describe_anomaly_detector(
    self,
    *,
    workspaceId: str,
    anomalyDetectorId: str,
) -> DescribeAnomalyDetectorResponseTypeDef:  # (1)
    ...# describe_anomaly_detector method usage example with argument unpacking
kwargs: DescribeAnomalyDetectorRequestTypeDef = {  # (1)
    "workspaceId": ...,
    "anomalyDetectorId": ...,
}
parent.describe_anomaly_detector(**kwargs)describe_logging_configuration#
Returns complete information about the current rules and alerting logging configuration of the workspace.
Type annotations and code completion for boto3.client("amp").describe_logging_configuration method.
 boto3 documentation
# describe_logging_configuration method definition
def describe_logging_configuration(
    self,
    *,
    workspaceId: str,
) -> DescribeLoggingConfigurationResponseTypeDef:  # (1)
    ...# describe_logging_configuration method usage example with argument unpacking
kwargs: DescribeLoggingConfigurationRequestTypeDef = {  # (1)
    "workspaceId": ...,
}
parent.describe_logging_configuration(**kwargs)describe_query_logging_configuration#
Retrieves the details of the query logging configuration for the specified workspace.
Type annotations and code completion for boto3.client("amp").describe_query_logging_configuration method.
 boto3 documentation
# describe_query_logging_configuration method definition
def describe_query_logging_configuration(
    self,
    *,
    workspaceId: str,
) -> DescribeQueryLoggingConfigurationResponseTypeDef:  # (1)
    ...# describe_query_logging_configuration method usage example with argument unpacking
kwargs: DescribeQueryLoggingConfigurationRequestTypeDef = {  # (1)
    "workspaceId": ...,
}
parent.describe_query_logging_configuration(**kwargs)describe_resource_policy#
Returns information about the resource-based policy attached to an Amazon Managed Service for Prometheus workspace.
Type annotations and code completion for boto3.client("amp").describe_resource_policy method.
 boto3 documentation
# describe_resource_policy method definition
def describe_resource_policy(
    self,
    *,
    workspaceId: str,
) -> DescribeResourcePolicyResponseTypeDef:  # (1)
    ...# describe_resource_policy method usage example with argument unpacking
kwargs: DescribeResourcePolicyRequestTypeDef = {  # (1)
    "workspaceId": ...,
}
parent.describe_resource_policy(**kwargs)describe_rule_groups_namespace#
Returns complete information about one rule groups namespace.
Type annotations and code completion for boto3.client("amp").describe_rule_groups_namespace method.
 boto3 documentation
# describe_rule_groups_namespace method definition
def describe_rule_groups_namespace(
    self,
    *,
    workspaceId: str,
    name: str,
) -> DescribeRuleGroupsNamespaceResponseTypeDef:  # (1)
    ...# describe_rule_groups_namespace method usage example with argument unpacking
kwargs: DescribeRuleGroupsNamespaceRequestTypeDef = {  # (1)
    "workspaceId": ...,
    "name": ...,
}
parent.describe_rule_groups_namespace(**kwargs)describe_scraper#
The DescribeScraper operation displays information about an
existing scraper.
Type annotations and code completion for boto3.client("amp").describe_scraper method.
 boto3 documentation
# describe_scraper method definition
def describe_scraper(
    self,
    *,
    scraperId: str,
) -> DescribeScraperResponseTypeDef:  # (1)
    ...# describe_scraper method usage example with argument unpacking
kwargs: DescribeScraperRequestTypeDef = {  # (1)
    "scraperId": ...,
}
parent.describe_scraper(**kwargs)describe_scraper_logging_configuration#
Describes the logging configuration for a Amazon Managed Service for Prometheus scraper.
Type annotations and code completion for boto3.client("amp").describe_scraper_logging_configuration method.
 boto3 documentation
# describe_scraper_logging_configuration method definition
def describe_scraper_logging_configuration(
    self,
    *,
    scraperId: str,
) -> DescribeScraperLoggingConfigurationResponseTypeDef:  # (1)
    ...# describe_scraper_logging_configuration method usage example with argument unpacking
kwargs: DescribeScraperLoggingConfigurationRequestTypeDef = {  # (1)
    "scraperId": ...,
}
parent.describe_scraper_logging_configuration(**kwargs)describe_workspace#
Returns information about an existing workspace.
Type annotations and code completion for boto3.client("amp").describe_workspace method.
 boto3 documentation
# describe_workspace method definition
def describe_workspace(
    self,
    *,
    workspaceId: str,
) -> DescribeWorkspaceResponseTypeDef:  # (1)
    ...# describe_workspace method usage example with argument unpacking
kwargs: DescribeWorkspaceRequestTypeDef = {  # (1)
    "workspaceId": ...,
}
parent.describe_workspace(**kwargs)describe_workspace_configuration#
Use this operation to return information about the configuration of a workspace.
Type annotations and code completion for boto3.client("amp").describe_workspace_configuration method.
 boto3 documentation
# describe_workspace_configuration method definition
def describe_workspace_configuration(
    self,
    *,
    workspaceId: str,
) -> DescribeWorkspaceConfigurationResponseTypeDef:  # (1)
    ...# describe_workspace_configuration method usage example with argument unpacking
kwargs: DescribeWorkspaceConfigurationRequestTypeDef = {  # (1)
    "workspaceId": ...,
}
parent.describe_workspace_configuration(**kwargs)get_default_scraper_configuration#
The GetDefaultScraperConfiguration operation returns the default
scraper configuration used when Amazon EKS creates a scraper for you.
Type annotations and code completion for boto3.client("amp").get_default_scraper_configuration method.
 boto3 documentation
# get_default_scraper_configuration method definition
def get_default_scraper_configuration(
    self,
) -> GetDefaultScraperConfigurationResponseTypeDef:  # (1)
    ...list_anomaly_detectors#
Returns a paginated list of anomaly detectors for a workspace with optional filtering by alias.
Type annotations and code completion for boto3.client("amp").list_anomaly_detectors method.
 boto3 documentation
# list_anomaly_detectors method definition
def list_anomaly_detectors(
    self,
    *,
    workspaceId: str,
    alias: str = ...,
    maxResults: int = ...,
    nextToken: str = ...,
) -> ListAnomalyDetectorsResponseTypeDef:  # (1)
    ...# list_anomaly_detectors method usage example with argument unpacking
kwargs: ListAnomalyDetectorsRequestTypeDef = {  # (1)
    "workspaceId": ...,
}
parent.list_anomaly_detectors(**kwargs)list_rule_groups_namespaces#
Returns a list of rule groups namespaces in a workspace.
Type annotations and code completion for boto3.client("amp").list_rule_groups_namespaces method.
 boto3 documentation
# list_rule_groups_namespaces method definition
def list_rule_groups_namespaces(
    self,
    *,
    workspaceId: str,
    name: str = ...,
    nextToken: str = ...,
    maxResults: int = ...,
) -> ListRuleGroupsNamespacesResponseTypeDef:  # (1)
    ...# list_rule_groups_namespaces method usage example with argument unpacking
kwargs: ListRuleGroupsNamespacesRequestTypeDef = {  # (1)
    "workspaceId": ...,
}
parent.list_rule_groups_namespaces(**kwargs)list_scrapers#
The ListScrapers operation lists all of the scrapers in your
account.
Type annotations and code completion for boto3.client("amp").list_scrapers method.
 boto3 documentation
# list_scrapers method definition
def list_scrapers(
    self,
    *,
    filters: Mapping[str, Sequence[str]] = ...,
    nextToken: str = ...,
    maxResults: int = ...,
) -> ListScrapersResponseTypeDef:  # (1)
    ...# list_scrapers method usage example with argument unpacking
kwargs: ListScrapersRequestTypeDef = {  # (1)
    "filters": ...,
}
parent.list_scrapers(**kwargs)list_tags_for_resource#
The ListTagsForResource operation returns the tags that are
associated with an Amazon Managed Service for Prometheus resource.
Type annotations and code completion for boto3.client("amp").list_tags_for_resource method.
 boto3 documentation
# list_tags_for_resource method definition
def list_tags_for_resource(
    self,
    *,
    resourceArn: str,
) -> ListTagsForResourceResponseTypeDef:  # (1)
    ...# list_tags_for_resource method usage example with argument unpacking
kwargs: ListTagsForResourceRequestTypeDef = {  # (1)
    "resourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)list_workspaces#
Lists all of the Amazon Managed Service for Prometheus workspaces in your account.
Type annotations and code completion for boto3.client("amp").list_workspaces method.
 boto3 documentation
# list_workspaces method definition
def list_workspaces(
    self,
    *,
    nextToken: str = ...,
    alias: str = ...,
    maxResults: int = ...,
) -> ListWorkspacesResponseTypeDef:  # (1)
    ...# list_workspaces method usage example with argument unpacking
kwargs: ListWorkspacesRequestTypeDef = {  # (1)
    "nextToken": ...,
}
parent.list_workspaces(**kwargs)put_alert_manager_definition#
Updates an existing alert manager definition in a workspace.
Type annotations and code completion for boto3.client("amp").put_alert_manager_definition method.
 boto3 documentation
# put_alert_manager_definition method definition
def put_alert_manager_definition(
    self,
    *,
    workspaceId: str,
    data: BlobTypeDef,
    clientToken: str = ...,
) -> PutAlertManagerDefinitionResponseTypeDef:  # (1)
    ...# put_alert_manager_definition method usage example with argument unpacking
kwargs: PutAlertManagerDefinitionRequestTypeDef = {  # (1)
    "workspaceId": ...,
    "data": ...,
}
parent.put_alert_manager_definition(**kwargs)put_anomaly_detector#
When you call PutAnomalyDetector, the operation creates a new
anomaly detector if one doesn't exist, or updates an existing one.
Type annotations and code completion for boto3.client("amp").put_anomaly_detector method.
 boto3 documentation
# put_anomaly_detector method definition
def put_anomaly_detector(
    self,
    *,
    workspaceId: str,
    anomalyDetectorId: str,
    configuration: AnomalyDetectorConfigurationTypeDef,  # (1)
    evaluationIntervalInSeconds: int = ...,
    missingDataAction: AnomalyDetectorMissingDataActionTypeDef = ...,  # (2)
    labels: Mapping[str, str] = ...,
    clientToken: str = ...,
) -> PutAnomalyDetectorResponseTypeDef:  # (3)
    ...- See AnomalyDetectorConfigurationTypeDef
- See AnomalyDetectorMissingDataActionTypeDef
- See PutAnomalyDetectorResponseTypeDef
# put_anomaly_detector method usage example with argument unpacking
kwargs: PutAnomalyDetectorRequestTypeDef = {  # (1)
    "workspaceId": ...,
    "anomalyDetectorId": ...,
    "configuration": ...,
}
parent.put_anomaly_detector(**kwargs)put_resource_policy#
Creates or updates a resource-based policy for an Amazon Managed Service for Prometheus workspace.
Type annotations and code completion for boto3.client("amp").put_resource_policy method.
 boto3 documentation
# put_resource_policy method definition
def put_resource_policy(
    self,
    *,
    workspaceId: str,
    policyDocument: str,
    clientToken: str = ...,
    revisionId: str = ...,
) -> PutResourcePolicyResponseTypeDef:  # (1)
    ...# put_resource_policy method usage example with argument unpacking
kwargs: PutResourcePolicyRequestTypeDef = {  # (1)
    "workspaceId": ...,
    "policyDocument": ...,
}
parent.put_resource_policy(**kwargs)put_rule_groups_namespace#
Updates an existing rule groups namespace within a workspace.
Type annotations and code completion for boto3.client("amp").put_rule_groups_namespace method.
 boto3 documentation
# put_rule_groups_namespace method definition
def put_rule_groups_namespace(
    self,
    *,
    workspaceId: str,
    name: str,
    data: BlobTypeDef,
    clientToken: str = ...,
) -> PutRuleGroupsNamespaceResponseTypeDef:  # (1)
    ...# put_rule_groups_namespace method usage example with argument unpacking
kwargs: PutRuleGroupsNamespaceRequestTypeDef = {  # (1)
    "workspaceId": ...,
    "name": ...,
    "data": ...,
}
parent.put_rule_groups_namespace(**kwargs)tag_resource#
The TagResource operation associates tags with an Amazon Managed
Service for Prometheus resource.
Type annotations and code completion for boto3.client("amp").tag_resource method.
 boto3 documentation
# tag_resource method definition
def tag_resource(
    self,
    *,
    resourceArn: str,
    tags: Mapping[str, str],
) -> Dict[str, Any]:
    ...# tag_resource method usage example with argument unpacking
kwargs: TagResourceRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "tags": ...,
}
parent.tag_resource(**kwargs)untag_resource#
Removes the specified tags from an Amazon Managed Service for Prometheus resource.
Type annotations and code completion for boto3.client("amp").untag_resource method.
 boto3 documentation
# untag_resource method definition
def untag_resource(
    self,
    *,
    resourceArn: str,
    tagKeys: Sequence[str],
) -> Dict[str, Any]:
    ...# untag_resource method usage example with argument unpacking
kwargs: UntagResourceRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "tagKeys": ...,
}
parent.untag_resource(**kwargs)update_logging_configuration#
Updates the log group ARN or the workspace ID of the current rules and alerting logging configuration.
Type annotations and code completion for boto3.client("amp").update_logging_configuration method.
 boto3 documentation
# update_logging_configuration method definition
def update_logging_configuration(
    self,
    *,
    workspaceId: str,
    logGroupArn: str,
    clientToken: str = ...,
) -> UpdateLoggingConfigurationResponseTypeDef:  # (1)
    ...# update_logging_configuration method usage example with argument unpacking
kwargs: UpdateLoggingConfigurationRequestTypeDef = {  # (1)
    "workspaceId": ...,
    "logGroupArn": ...,
}
parent.update_logging_configuration(**kwargs)update_query_logging_configuration#
Updates the query logging configuration for the specified workspace.
Type annotations and code completion for boto3.client("amp").update_query_logging_configuration method.
 boto3 documentation
# update_query_logging_configuration method definition
def update_query_logging_configuration(
    self,
    *,
    workspaceId: str,
    destinations: Sequence[LoggingDestinationTypeDef],  # (1)
    clientToken: str = ...,
) -> UpdateQueryLoggingConfigurationResponseTypeDef:  # (2)
    ...- See Sequence[LoggingDestinationTypeDef]
- See UpdateQueryLoggingConfigurationResponseTypeDef
# update_query_logging_configuration method usage example with argument unpacking
kwargs: UpdateQueryLoggingConfigurationRequestTypeDef = {  # (1)
    "workspaceId": ...,
    "destinations": ...,
}
parent.update_query_logging_configuration(**kwargs)update_scraper#
Updates an existing scraper.
Type annotations and code completion for boto3.client("amp").update_scraper method.
 boto3 documentation
# update_scraper method definition
def update_scraper(
    self,
    *,
    scraperId: str,
    alias: str = ...,
    scrapeConfiguration: ScrapeConfigurationUnionTypeDef = ...,  # (1)
    destination: DestinationTypeDef = ...,  # (2)
    roleConfiguration: RoleConfigurationTypeDef = ...,  # (3)
    clientToken: str = ...,
) -> UpdateScraperResponseTypeDef:  # (4)
    ...- See ScrapeConfigurationUnionTypeDef
- See DestinationTypeDef
- See RoleConfigurationTypeDef
- See UpdateScraperResponseTypeDef
# update_scraper method usage example with argument unpacking
kwargs: UpdateScraperRequestTypeDef = {  # (1)
    "scraperId": ...,
}
parent.update_scraper(**kwargs)update_scraper_logging_configuration#
Updates the logging configuration for a Amazon Managed Service for Prometheus scraper.
Type annotations and code completion for boto3.client("amp").update_scraper_logging_configuration method.
 boto3 documentation
# update_scraper_logging_configuration method definition
def update_scraper_logging_configuration(
    self,
    *,
    scraperId: str,
    loggingDestination: ScraperLoggingDestinationTypeDef,  # (1)
    scraperComponents: Sequence[ScraperComponentUnionTypeDef] = ...,  # (2)
) -> UpdateScraperLoggingConfigurationResponseTypeDef:  # (3)
    ...- See ScraperLoggingDestinationTypeDef
- See Sequence[ScraperComponentUnionTypeDef]
- See UpdateScraperLoggingConfigurationResponseTypeDef
# update_scraper_logging_configuration method usage example with argument unpacking
kwargs: UpdateScraperLoggingConfigurationRequestTypeDef = {  # (1)
    "scraperId": ...,
    "loggingDestination": ...,
}
parent.update_scraper_logging_configuration(**kwargs)update_workspace_alias#
Updates the alias of an existing workspace.
Type annotations and code completion for boto3.client("amp").update_workspace_alias method.
 boto3 documentation
# update_workspace_alias method definition
def update_workspace_alias(
    self,
    *,
    workspaceId: str,
    alias: str = ...,
    clientToken: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...# update_workspace_alias method usage example with argument unpacking
kwargs: UpdateWorkspaceAliasRequestTypeDef = {  # (1)
    "workspaceId": ...,
}
parent.update_workspace_alias(**kwargs)update_workspace_configuration#
Use this operation to create or update the label sets, label set limits, and retention period of a workspace.
Type annotations and code completion for boto3.client("amp").update_workspace_configuration method.
 boto3 documentation
# update_workspace_configuration method definition
def update_workspace_configuration(
    self,
    *,
    workspaceId: str,
    clientToken: str = ...,
    limitsPerLabelSet: Sequence[LimitsPerLabelSetUnionTypeDef] = ...,  # (1)
    retentionPeriodInDays: int = ...,
) -> UpdateWorkspaceConfigurationResponseTypeDef:  # (2)
    ...- See Sequence[LimitsPerLabelSetUnionTypeDef]
- See UpdateWorkspaceConfigurationResponseTypeDef
# update_workspace_configuration method usage example with argument unpacking
kwargs: UpdateWorkspaceConfigurationRequestTypeDef = {  # (1)
    "workspaceId": ...,
}
parent.update_workspace_configuration(**kwargs)get_paginator#
Type annotations and code completion for boto3.client("amp").get_paginator method with overloads.
- client.get_paginator("list_anomaly_detectors")-> ListAnomalyDetectorsPaginator
- client.get_paginator("list_rule_groups_namespaces")-> ListRuleGroupsNamespacesPaginator
- client.get_paginator("list_scrapers")-> ListScrapersPaginator
- client.get_paginator("list_workspaces")-> ListWorkspacesPaginator
get_waiter#
Type annotations and code completion for boto3.client("amp").get_waiter method with overloads.
- client.get_waiter("anomaly_detector_active")-> AnomalyDetectorActiveWaiter
- client.get_waiter("anomaly_detector_deleted")-> AnomalyDetectorDeletedWaiter
- client.get_waiter("scraper_active")-> ScraperActiveWaiter
- client.get_waiter("scraper_deleted")-> ScraperDeletedWaiter
- client.get_waiter("workspace_active")-> WorkspaceActiveWaiter
- client.get_waiter("workspace_deleted")-> WorkspaceDeletedWaiter