# AWS::APS Construct Library

This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.

```ts
import * as aps from 'aws-cdk-lib/aws-aps';
```

There are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. Here are some suggestions on how to proceed:

- Search [Construct Hub for APS construct libraries](https://constructs.dev/search?q=aps)
- Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation AWS::APS resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_APS.html) directly.

There are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet.
However, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly.

For more information on the resources and properties available for this service, see the [CloudFormation documentation for AWS::APS](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_APS.html).

(Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.)

## Types

| Name | Kind | Summary |
| --- | --- | --- |
| [`CfnAnomalyDetector`](/v2/docs/aws-cdk-lib.aws_aps.CfnAnomalyDetector) | Construct (L1) | Anomaly detection uses the Random Cut Forest algorithm for time-series analysis. |
| [`CfnResourcePolicy`](/v2/docs/aws-cdk-lib.aws_aps.CfnResourcePolicy) | Construct (L1) | Use resource-based policies to grant permissions to other AWS accounts or services to access your workspace. |
| [`CfnRuleGroupsNamespace`](/v2/docs/aws-cdk-lib.aws_aps.CfnRuleGroupsNamespace) | Construct (L1) | The definition of a rule groups namespace in an Amazon Managed Service for Prometheus workspace. |
| [`CfnScraper`](/v2/docs/aws-cdk-lib.aws_aps.CfnScraper) | Construct (L1) | A scraper is a fully-managed agentless collector that discovers and pulls metrics automatically. |
| [`CfnWorkspace`](/v2/docs/aws-cdk-lib.aws_aps.CfnWorkspace) | Construct (L1) | An Amazon Managed Service for Prometheus workspace is a logical and isolated Prometheus server dedicated to ingesting, storing, and querying your Prometheus-compatible metrics. |
| [`CfnAnomalyDetector.AnomalyDetectorConfigurationProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnAnomalyDetector.AnomalyDetectorConfigurationProperty) | Struct | The configuration for the anomaly detection algorithm. |
| [`CfnAnomalyDetector.IgnoreNearExpectedProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnAnomalyDetector.IgnoreNearExpectedProperty) | Struct | Configuration for threshold settings that determine when values near expected values should be ignored during anomaly detection. |
| [`CfnAnomalyDetector.LabelProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnAnomalyDetector.LabelProperty) | Struct | The Amazon Managed Service for Prometheus metric labels associated with the anomaly detector. |
| [`CfnAnomalyDetector.MissingDataActionProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnAnomalyDetector.MissingDataActionProperty) | Struct | Specifies the action to take when data is missing during anomaly detection evaluation. |
| [`CfnAnomalyDetector.RandomCutForestConfigurationProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnAnomalyDetector.RandomCutForestConfigurationProperty) | Struct | Configuration for the Random Cut Forest algorithm used for anomaly detection in time-series data. |
| [`CfnAnomalyDetectorProps`](/v2/docs/aws-cdk-lib.aws_aps.CfnAnomalyDetectorProps) | Struct | Properties for defining a `CfnAnomalyDetector`. |
| [`CfnResourcePolicyProps`](/v2/docs/aws-cdk-lib.aws_aps.CfnResourcePolicyProps) | Struct | Properties for defining a `CfnResourcePolicy`. |
| [`CfnRuleGroupsNamespaceProps`](/v2/docs/aws-cdk-lib.aws_aps.CfnRuleGroupsNamespaceProps) | Struct | Properties for defining a `CfnRuleGroupsNamespace`. |
| [`CfnScraper.AmpConfigurationProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnScraper.AmpConfigurationProperty) | Struct | The `AmpConfiguration` structure defines the Amazon Managed Service for Prometheus instance a scraper should send metrics to. |
| [`CfnScraper.CloudWatchConfigurationProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnScraper.CloudWatchConfigurationProperty) | Struct | Configuration for CloudWatch metrics destination. |
| [`CfnScraper.CloudWatchLogDestinationProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnScraper.CloudWatchLogDestinationProperty) | Struct | Represents a cloudwatch logs destination for scraper logging. |
| [`CfnScraper.ComponentConfigProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnScraper.ComponentConfigProperty) | Struct | Configuration settings for a scraper component. |
| [`CfnScraper.DestinationProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnScraper.DestinationProperty) | Struct | Where to send the metrics from a scraper. |
| [`CfnScraper.EksConfigurationProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnScraper.EksConfigurationProperty) | Struct | The `EksConfiguration` structure describes the connection to the Amazon EKS cluster from which a scraper collects metrics. |
| [`CfnScraper.RoleConfigurationProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnScraper.RoleConfigurationProperty) | Struct | The role configuration in an Amazon Managed Service for Prometheus scraper. |
| [`CfnScraper.ScrapeConfigurationProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnScraper.ScrapeConfigurationProperty) | Struct | A scrape configuration for a scraper, base 64 encoded. |
| [`CfnScraper.ScraperComponentProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnScraper.ScraperComponentProperty) | Struct | A component of a Amazon Managed Service for Prometheus scraper that can be configured for logging. |
| [`CfnScraper.ScraperLoggingConfigurationProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnScraper.ScraperLoggingConfigurationProperty) | Struct | Configuration for scraper logging. |
| [`CfnScraper.ScraperLoggingDestinationProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnScraper.ScraperLoggingDestinationProperty) | Struct | The destination where scraper logs are sent. |
| [`CfnScraper.SourceProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnScraper.SourceProperty) | Struct | The source of collected metrics for a scraper. |
| [`CfnScraper.VpcConfigurationProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnScraper.VpcConfigurationProperty) | Struct | Configuration for VPC metrics source. |
| [`CfnScraperProps`](/v2/docs/aws-cdk-lib.aws_aps.CfnScraperProps) | Struct | Properties for defining a `CfnScraper`. |
| [`CfnWorkspace.CloudWatchLogDestinationProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnWorkspace.CloudWatchLogDestinationProperty) | Struct | Configuration details for logging to CloudWatch Logs. |
| [`CfnWorkspace.LabelProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnWorkspace.LabelProperty) | Struct | A label is a name:value pair used to add context to ingested metrics. |
| [`CfnWorkspace.LimitsPerLabelSetEntryProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnWorkspace.LimitsPerLabelSetEntryProperty) | Struct | This structure contains the limits that apply to time series that match one label set. |
| [`CfnWorkspace.LimitsPerLabelSetProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnWorkspace.LimitsPerLabelSetProperty) | Struct | This defines a label set for the workspace, and defines the ingestion limit for active time series that match that label set. |
| [`CfnWorkspace.LoggingConfigurationProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnWorkspace.LoggingConfigurationProperty) | Struct | Contains information about the rules and alerting logging configuration for the workspace. |
| [`CfnWorkspace.LoggingDestinationProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnWorkspace.LoggingDestinationProperty) | Struct | The logging destination in an Amazon Managed Service for Prometheus workspace. |
| [`CfnWorkspace.LoggingFilterProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnWorkspace.LoggingFilterProperty) | Struct | Filtering criteria that determine which queries are logged. |
| [`CfnWorkspace.QueryLoggingConfigurationProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnWorkspace.QueryLoggingConfigurationProperty) | Struct | The query logging configuration in an Amazon Managed Service for Prometheus workspace. |
| [`CfnWorkspace.WorkspaceConfigurationProperty`](/v2/docs/aws-cdk-lib.aws_aps.CfnWorkspace.WorkspaceConfigurationProperty) | Struct | Use this structure to define label sets and the ingestion limits for time series that match label sets, and to specify the retention period of the workspace. |
| [`CfnWorkspaceProps`](/v2/docs/aws-cdk-lib.aws_aps.CfnWorkspaceProps) | Struct | Properties for defining a `CfnWorkspace`. |
