Skip to content
v2.278.0

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.

Example ​

ts
// 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 workspaceConfigurationProperty: aps.CfnWorkspace.WorkspaceConfigurationProperty = {
  limitsPerLabelSets: [{
    labelSet: [{
      name: 'name',
      value: 'value',
    }],
    limits: {
      maxSeries: 123,
    },
  }],
  outOfOrderTimeWindowInSeconds: 123,
  retentionPeriodInDays: 123,
  ruleQueryOffsetInSeconds: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_aps as aps

workspace_configuration_property = aps.CfnWorkspace.WorkspaceConfigurationProperty(
    limits_per_label_sets=[aps.CfnWorkspace.LimitsPerLabelSetProperty(
        label_set=[aps.CfnWorkspace.LabelProperty(
            name="name",
            value="value"
        )],
        limits=aps.CfnWorkspace.LimitsPerLabelSetEntryProperty(
            max_series=123
        )
    )],
    out_of_order_time_window_in_seconds=123,
    retention_period_in_days=123,
    rule_query_offset_in_seconds=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.aps.*;

WorkspaceConfigurationProperty workspaceConfigurationProperty = WorkspaceConfigurationProperty.builder()
        .limitsPerLabelSets(List.of(LimitsPerLabelSetProperty.builder()
                .labelSet(List.of(LabelProperty.builder()
                        .name("name")
                        .value("value")
                        .build()))
                .limits(LimitsPerLabelSetEntryProperty.builder()
                        .maxSeries(123)
                        .build())
                .build()))
        .outOfOrderTimeWindowInSeconds(123)
        .retentionPeriodInDays(123)
        .ruleQueryOffsetInSeconds(123)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.APS;

var workspaceConfigurationProperty = new WorkspaceConfigurationProperty {
    LimitsPerLabelSets = new [] { new LimitsPerLabelSetProperty {
        LabelSet = new [] { new LabelProperty {
            Name = "name",
            Value = "value"
        } },
        Limits = new LimitsPerLabelSetEntryProperty {
            MaxSeries = 123
        }
    } },
    OutOfOrderTimeWindowInSeconds = 123,
    RetentionPeriodInDays = 123,
    RuleQueryOffsetInSeconds = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

workspaceConfigurationProperty := &WorkspaceConfigurationProperty{
	LimitsPerLabelSets: []interface{}{
		&LimitsPerLabelSetProperty{
			LabelSet: []interface{}{
				&LabelProperty{
					Name: jsii.String("name"),
					Value: jsii.String("value"),
				},
			},
			Limits: &LimitsPerLabelSetEntryProperty{
				MaxSeries: jsii.Number(123),
			},
		},
	},
	OutOfOrderTimeWindowInSeconds: jsii.Number(123),
	RetentionPeriodInDays: jsii.Number(123),
	RuleQueryOffsetInSeconds: jsii.Number(123),
}

Properties ​

limitsPerLabelSetsoptionalIResolvable | IResolvable | CfnWorkspace.LimitsPerLabelSetProperty[]limits_per_label_setsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, LimitsPerLabelSetProperty]]]limitsPerLabelSetsoptionalIResolvableLimitsPerLabelSetsoptionalIResolvableLimitsPerLabelSetsoptionalinterface{} #
This is an array of structures, where each structure defines a label set for the workspace, and defines the ingestion limit for active time series for each of those label sets.

Each label name in a label set must be unique.

outOfOrderTimeWindowInSecondsoptionalnumberout_of_order_time_window_in_secondsoptionalint | floatoutOfOrderTimeWindowInSecondsoptionalNumberOutOfOrderTimeWindowInSecondsoptionaldoubleOutOfOrderTimeWindowInSecondsoptional*float64 #
The time window in seconds for accepting out-of-order samples.
retentionPeriodInDaysoptionalnumberretention_period_in_daysoptionalint | floatretentionPeriodInDaysoptionalNumberRetentionPeriodInDaysoptionaldoubleRetentionPeriodInDaysoptional*float64 #
Specifies how many days that metrics will be retained in the workspace.
ruleQueryOffsetInSecondsoptionalnumberrule_query_offset_in_secondsoptionalint | floatruleQueryOffsetInSecondsoptionalNumberRuleQueryOffsetInSecondsoptionaldoubleRuleQueryOffsetInSecondsoptional*float64 #
Duration in seconds to offset rule evaluation queries into the past.