AWS::APS::WorkspaceAn Amazon Managed Service for Prometheus workspace is a logical and isolated Prometheus server dedicated to ingesting, storing, and querying your Prometheus-compatible metrics.
import { CfnWorkspace } from 'aws-cdk-lib/aws-aps';Or use the module namespace:
import * as aps from 'aws-cdk-lib/aws-aps';
// aps.CfnWorkspaceConfiguration passed to the constructor as CfnWorkspaceProps.
alertManagerDefinitionOptionalstringThe alert manager definition, a YAML configuration for the alert manager in your Amazon Managed Service for Prometheus workspace. For details about the alert manager definition, see [Creating an alert manager configuration files](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-alertmanager-config.html) in the *Amazon Managed Service for Prometheus User Guide* . The following example shows part of a CloudFormation YAML file with an embedded alert manager definition (following the `- |-` ). `Workspace: Type: AWS::APS::Workspace .... Properties: .... AlertManagerDefinition: Fn::Sub: - |- alertmanager_config: | templates: - 'default_template' route: receiver: example-sns receivers: - name: example-sns sns_configs: - topic_arn: 'arn:aws:sns:${AWS::Region}:${AWS::AccountId}:${TopicName}' -`
aliasOptionalstringThe alias that is assigned to this workspace to help identify it. It does not need to be unique.
kmsKeyArnOptionalstring(optional) The ARN for a customer managed AWS key to use for encrypting data within your workspace. For more information about using your own key in your workspace, see [Encryption at rest](https://docs.aws.amazon.com/prometheus/latest/userguide/encryption-at-rest-Amazon-Service-Prometheus.html) in the *Amazon Managed Service for Prometheus User Guide* .
loggingConfigurationOptionalIResolvable | LoggingConfigurationPropertyContains information about the logging configuration for the workspace.
queryLoggingConfigurationOptionalIResolvable | QueryLoggingConfigurationPropertyThe definition of logging configuration in an Amazon Managed Service for Prometheus workspace.
tagsOptionalCfnTag[]The list of tag keys and values that are associated with the workspace.
workspaceConfigurationOptionalIResolvable | WorkspaceConfigurationPropertyUse 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.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-apsAWS::APS::Workspace