interface LabelProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.APS.CfnWorkspace.LabelProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsaps#CfnWorkspace_LabelProperty |
Java | software.amazon.awscdk.services.aps.CfnWorkspace.LabelProperty |
Python | aws_cdk.aws_aps.CfnWorkspace.LabelProperty |
TypeScript | aws-cdk-lib » aws_aps » CfnWorkspace » LabelProperty |
A label is a name:value pair used to add context to ingested metrics.
This structure defines the name and value for one label that is used in a label set. You can set ingestion limits on time series that match defined label sets, to help prevent a workspace from being overwhelmed with unexpected spikes in time series ingestion.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_aps as aps } from 'aws-cdk-lib';
const labelProperty: aps.CfnWorkspace.LabelProperty = {
name: 'name',
value: 'value',
};
Properties
| Name | Type | Description |
|---|---|---|
| name | string | The name for this label. |
| value | string | The value for this label. |
name
Type:
string
The name for this label.
value
Type:
string
The value for this label.

.NET
Go
Java
Python
TypeScript