CfnServiceLevelObjectiveProps Struct
Properties for defining a CfnServiceLevelObjective.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationsignals as applicationsignals } from 'aws-cdk-lib';
const cfnServiceLevelObjectiveProps: applicationsignals.CfnServiceLevelObjectiveProps = {
name: 'name',
// the properties below are optional
burnRateConfigurations: [{
lookBackWindowMinutes: 123,
}],
description: 'description',
exclusionWindows: [{
window: {
duration: 123,
durationUnit: 'durationUnit',
},
// the properties below are optional
reason: 'reason',
recurrenceRule: {
expression: 'expression',
},
startTime: 'startTime',
}],
goal: {
attainmentGoal: 123,
interval: {
calendarInterval: {
duration: 123,
durationUnit: 'durationUnit',
startTime: 123,
},
rollingInterval: {
duration: 123,
durationUnit: 'durationUnit',
},
},
warningThreshold: 123,
},
requestBasedSli: {
requestBasedSliMetric: {
compositeSliConfig: {
selectionConfig: {
type: 'type',
// the properties below are optional
pattern: 'pattern',
},
// the properties below are optional
compositeSliComponents: [{
operationName: 'operationName',
}],
},
dependencyConfig: {
dependencyKeyAttributes: {
dependencyKeyAttributesKey: 'dependencyKeyAttributes',
},
dependencyOperationName: 'dependencyOperationName',
},
keyAttributes: {
keyAttributesKey: 'keyAttributes',
},
metricName: 'metricName',
metricSource: {
metricSourceKeyAttributes: {
metricSourceKeyAttributesKey: 'metricSourceKeyAttributes',
},
// the properties below are optional
metricSourceAttributes: {
metricSourceAttributesKey: 'metricSourceAttributes',
},
},
metricType: 'metricType',
monitoredRequestCountMetric: {
badCountMetric: [{
id: 'id',
// the properties below are optional
accountId: 'accountId',
expression: 'expression',
metricStat: {
metric: {
dimensions: [{
name: 'name',
value: 'value',
}],
metricName: 'metricName',
namespace: 'namespace',
},
period: 123,
stat: 'stat',
// the properties below are optional
unit: 'unit',
},
returnData: false,
}],
goodCountMetric: [{
id: 'id',
// the properties below are optional
accountId: 'accountId',
expression: 'expression',
metricStat: {
metric: {
dimensions: [{
name: 'name',
value: 'value',
}],
metricName: 'metricName',
namespace: 'namespace',
},
period: 123,
stat: 'stat',
// the properties below are optional
unit: 'unit',
},
returnData: false,
}],
},
operationName: 'operationName',
totalRequestCountMetric: [{
id: 'id',
// the properties below are optional
accountId: 'accountId',
expression: 'expression',
metricStat: {
metric: {
dimensions: [{
name: 'name',
value: 'value',
}],
metricName: 'metricName',
namespace: 'namespace',
},
period: 123,
stat: 'stat',
// the properties below are optional
unit: 'unit',
},
returnData: false,
}],
},
// the properties below are optional
comparisonOperator: 'comparisonOperator',
metricThreshold: 123,
},
sli: {
comparisonOperator: 'comparisonOperator',
metricThreshold: 123,
sliMetric: {
compositeSliConfig: {
selectionConfig: {
type: 'type',
// the properties below are optional
pattern: 'pattern',
},
// the properties below are optional
compositeSliComponents: [{
operationName: 'operationName',
}],
},
dependencyConfig: {
dependencyKeyAttributes: {
dependencyKeyAttributesKey: 'dependencyKeyAttributes',
},
dependencyOperationName: 'dependencyOperationName',
},
keyAttributes: {
keyAttributesKey: 'keyAttributes',
},
metricDataQueries: [{
id: 'id',
// the properties below are optional
accountId: 'accountId',
expression: 'expression',
metricStat: {
metric: {
dimensions: [{
name: 'name',
value: 'value',
}],
metricName: 'metricName',
namespace: 'namespace',
},
period: 123,
stat: 'stat',
// the properties below are optional
unit: 'unit',
},
returnData: false,
}],
metricName: 'metricName',
metricSource: {
metricSourceKeyAttributes: {
metricSourceKeyAttributesKey: 'metricSourceKeyAttributes',
},
// the properties below are optional
metricSourceAttributes: {
metricSourceAttributesKey: 'metricSourceAttributes',
},
},
metricType: 'metricType',
operationName: 'operationName',
periodSeconds: 123,
statistic: 'statistic',
},
},
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_applicationsignals as applicationsignals
cfn_service_level_objective_props = applicationsignals.CfnServiceLevelObjectiveProps(
name="name",
# the properties below are optional
burn_rate_configurations=[applicationsignals.CfnServiceLevelObjective.BurnRateConfigurationProperty(
look_back_window_minutes=123
)],
description="description",
exclusion_windows=[applicationsignals.CfnServiceLevelObjective.ExclusionWindowProperty(
window=applicationsignals.CfnServiceLevelObjective.WindowProperty(
duration=123,
duration_unit="durationUnit"
),
# the properties below are optional
reason="reason",
recurrence_rule=applicationsignals.CfnServiceLevelObjective.RecurrenceRuleProperty(
expression="expression"
),
start_time="startTime"
)],
goal=applicationsignals.CfnServiceLevelObjective.GoalProperty(
attainment_goal=123,
interval=applicationsignals.CfnServiceLevelObjective.IntervalProperty(
calendar_interval=applicationsignals.CfnServiceLevelObjective.CalendarIntervalProperty(
duration=123,
duration_unit="durationUnit",
start_time=123
),
rolling_interval=applicationsignals.CfnServiceLevelObjective.RollingIntervalProperty(
duration=123,
duration_unit="durationUnit"
)
),
warning_threshold=123
),
request_based_sli=applicationsignals.CfnServiceLevelObjective.RequestBasedSliProperty(
request_based_sli_metric=applicationsignals.CfnServiceLevelObjective.RequestBasedSliMetricProperty(
composite_sli_config=applicationsignals.CfnServiceLevelObjective.CompositeSliConfigProperty(
selection_config=applicationsignals.CfnServiceLevelObjective.SelectionConfigProperty(
type="type",
# the properties below are optional
pattern="pattern"
),
# the properties below are optional
composite_sli_components=[applicationsignals.CfnServiceLevelObjective.CompositeSliComponentProperty(
operation_name="operationName"
)]
),
dependency_config=applicationsignals.CfnServiceLevelObjective.DependencyConfigProperty(
dependency_key_attributes={
"dependency_key_attributes_key": "dependencyKeyAttributes"
},
dependency_operation_name="dependencyOperationName"
),
key_attributes={
"key_attributes_key": "keyAttributes"
},
metric_name="metricName",
metric_source=applicationsignals.CfnServiceLevelObjective.MetricSourceProperty(
metric_source_key_attributes={
"metric_source_key_attributes_key": "metricSourceKeyAttributes"
},
# the properties below are optional
metric_source_attributes={
"metric_source_attributes_key": "metricSourceAttributes"
}
),
metric_type="metricType",
monitored_request_count_metric=applicationsignals.CfnServiceLevelObjective.MonitoredRequestCountMetricProperty(
bad_count_metric=[applicationsignals.CfnServiceLevelObjective.MetricDataQueryProperty(
id="id",
# the properties below are optional
account_id="accountId",
expression="expression",
metric_stat=applicationsignals.CfnServiceLevelObjective.MetricStatProperty(
metric=applicationsignals.CfnServiceLevelObjective.MetricProperty(
dimensions=[applicationsignals.CfnServiceLevelObjective.DimensionProperty(
name="name",
value="value"
)],
metric_name="metricName",
namespace="namespace"
),
period=123,
stat="stat",
# the properties below are optional
unit="unit"
),
return_data=False
)],
good_count_metric=[applicationsignals.CfnServiceLevelObjective.MetricDataQueryProperty(
id="id",
# the properties below are optional
account_id="accountId",
expression="expression",
metric_stat=applicationsignals.CfnServiceLevelObjective.MetricStatProperty(
metric=applicationsignals.CfnServiceLevelObjective.MetricProperty(
dimensions=[applicationsignals.CfnServiceLevelObjective.DimensionProperty(
name="name",
value="value"
)],
metric_name="metricName",
namespace="namespace"
),
period=123,
stat="stat",
# the properties below are optional
unit="unit"
),
return_data=False
)]
),
operation_name="operationName",
total_request_count_metric=[applicationsignals.CfnServiceLevelObjective.MetricDataQueryProperty(
id="id",
# the properties below are optional
account_id="accountId",
expression="expression",
metric_stat=applicationsignals.CfnServiceLevelObjective.MetricStatProperty(
metric=applicationsignals.CfnServiceLevelObjective.MetricProperty(
dimensions=[applicationsignals.CfnServiceLevelObjective.DimensionProperty(
name="name",
value="value"
)],
metric_name="metricName",
namespace="namespace"
),
period=123,
stat="stat",
# the properties below are optional
unit="unit"
),
return_data=False
)]
),
# the properties below are optional
comparison_operator="comparisonOperator",
metric_threshold=123
),
sli=applicationsignals.CfnServiceLevelObjective.SliProperty(
comparison_operator="comparisonOperator",
metric_threshold=123,
sli_metric=applicationsignals.CfnServiceLevelObjective.SliMetricProperty(
composite_sli_config=applicationsignals.CfnServiceLevelObjective.CompositeSliConfigProperty(
selection_config=applicationsignals.CfnServiceLevelObjective.SelectionConfigProperty(
type="type",
# the properties below are optional
pattern="pattern"
),
# the properties below are optional
composite_sli_components=[applicationsignals.CfnServiceLevelObjective.CompositeSliComponentProperty(
operation_name="operationName"
)]
),
dependency_config=applicationsignals.CfnServiceLevelObjective.DependencyConfigProperty(
dependency_key_attributes={
"dependency_key_attributes_key": "dependencyKeyAttributes"
},
dependency_operation_name="dependencyOperationName"
),
key_attributes={
"key_attributes_key": "keyAttributes"
},
metric_data_queries=[applicationsignals.CfnServiceLevelObjective.MetricDataQueryProperty(
id="id",
# the properties below are optional
account_id="accountId",
expression="expression",
metric_stat=applicationsignals.CfnServiceLevelObjective.MetricStatProperty(
metric=applicationsignals.CfnServiceLevelObjective.MetricProperty(
dimensions=[applicationsignals.CfnServiceLevelObjective.DimensionProperty(
name="name",
value="value"
)],
metric_name="metricName",
namespace="namespace"
),
period=123,
stat="stat",
# the properties below are optional
unit="unit"
),
return_data=False
)],
metric_name="metricName",
metric_source=applicationsignals.CfnServiceLevelObjective.MetricSourceProperty(
metric_source_key_attributes={
"metric_source_key_attributes_key": "metricSourceKeyAttributes"
},
# the properties below are optional
metric_source_attributes={
"metric_source_attributes_key": "metricSourceAttributes"
}
),
metric_type="metricType",
operation_name="operationName",
period_seconds=123,
statistic="statistic"
)
),
tags=[CfnTag(
key="key",
value="value"
)]
)
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.applicationsignals.*;
CfnServiceLevelObjectiveProps cfnServiceLevelObjectiveProps = CfnServiceLevelObjectiveProps.builder()
.name("name")
// the properties below are optional
.burnRateConfigurations(List.of(BurnRateConfigurationProperty.builder()
.lookBackWindowMinutes(123)
.build()))
.description("description")
.exclusionWindows(List.of(ExclusionWindowProperty.builder()
.window(WindowProperty.builder()
.duration(123)
.durationUnit("durationUnit")
.build())
// the properties below are optional
.reason("reason")
.recurrenceRule(RecurrenceRuleProperty.builder()
.expression("expression")
.build())
.startTime("startTime")
.build()))
.goal(GoalProperty.builder()
.attainmentGoal(123)
.interval(IntervalProperty.builder()
.calendarInterval(CalendarIntervalProperty.builder()
.duration(123)
.durationUnit("durationUnit")
.startTime(123)
.build())
.rollingInterval(RollingIntervalProperty.builder()
.duration(123)
.durationUnit("durationUnit")
.build())
.build())
.warningThreshold(123)
.build())
.requestBasedSli(RequestBasedSliProperty.builder()
.requestBasedSliMetric(RequestBasedSliMetricProperty.builder()
.compositeSliConfig(CompositeSliConfigProperty.builder()
.selectionConfig(SelectionConfigProperty.builder()
.type("type")
// the properties below are optional
.pattern("pattern")
.build())
// the properties below are optional
.compositeSliComponents(List.of(CompositeSliComponentProperty.builder()
.operationName("operationName")
.build()))
.build())
.dependencyConfig(DependencyConfigProperty.builder()
.dependencyKeyAttributes(Map.of(
"dependencyKeyAttributesKey", "dependencyKeyAttributes"))
.dependencyOperationName("dependencyOperationName")
.build())
.keyAttributes(Map.of(
"keyAttributesKey", "keyAttributes"))
.metricName("metricName")
.metricSource(MetricSourceProperty.builder()
.metricSourceKeyAttributes(Map.of(
"metricSourceKeyAttributesKey", "metricSourceKeyAttributes"))
// the properties below are optional
.metricSourceAttributes(Map.of(
"metricSourceAttributesKey", "metricSourceAttributes"))
.build())
.metricType("metricType")
.monitoredRequestCountMetric(MonitoredRequestCountMetricProperty.builder()
.badCountMetric(List.of(MetricDataQueryProperty.builder()
.id("id")
// the properties below are optional
.accountId("accountId")
.expression("expression")
.metricStat(MetricStatProperty.builder()
.metric(MetricProperty.builder()
.dimensions(List.of(DimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricName("metricName")
.namespace("namespace")
.build())
.period(123)
.stat("stat")
// the properties below are optional
.unit("unit")
.build())
.returnData(false)
.build()))
.goodCountMetric(List.of(MetricDataQueryProperty.builder()
.id("id")
// the properties below are optional
.accountId("accountId")
.expression("expression")
.metricStat(MetricStatProperty.builder()
.metric(MetricProperty.builder()
.dimensions(List.of(DimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricName("metricName")
.namespace("namespace")
.build())
.period(123)
.stat("stat")
// the properties below are optional
.unit("unit")
.build())
.returnData(false)
.build()))
.build())
.operationName("operationName")
.totalRequestCountMetric(List.of(MetricDataQueryProperty.builder()
.id("id")
// the properties below are optional
.accountId("accountId")
.expression("expression")
.metricStat(MetricStatProperty.builder()
.metric(MetricProperty.builder()
.dimensions(List.of(DimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricName("metricName")
.namespace("namespace")
.build())
.period(123)
.stat("stat")
// the properties below are optional
.unit("unit")
.build())
.returnData(false)
.build()))
.build())
// the properties below are optional
.comparisonOperator("comparisonOperator")
.metricThreshold(123)
.build())
.sli(SliProperty.builder()
.comparisonOperator("comparisonOperator")
.metricThreshold(123)
.sliMetric(SliMetricProperty.builder()
.compositeSliConfig(CompositeSliConfigProperty.builder()
.selectionConfig(SelectionConfigProperty.builder()
.type("type")
// the properties below are optional
.pattern("pattern")
.build())
// the properties below are optional
.compositeSliComponents(List.of(CompositeSliComponentProperty.builder()
.operationName("operationName")
.build()))
.build())
.dependencyConfig(DependencyConfigProperty.builder()
.dependencyKeyAttributes(Map.of(
"dependencyKeyAttributesKey", "dependencyKeyAttributes"))
.dependencyOperationName("dependencyOperationName")
.build())
.keyAttributes(Map.of(
"keyAttributesKey", "keyAttributes"))
.metricDataQueries(List.of(MetricDataQueryProperty.builder()
.id("id")
// the properties below are optional
.accountId("accountId")
.expression("expression")
.metricStat(MetricStatProperty.builder()
.metric(MetricProperty.builder()
.dimensions(List.of(DimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricName("metricName")
.namespace("namespace")
.build())
.period(123)
.stat("stat")
// the properties below are optional
.unit("unit")
.build())
.returnData(false)
.build()))
.metricName("metricName")
.metricSource(MetricSourceProperty.builder()
.metricSourceKeyAttributes(Map.of(
"metricSourceKeyAttributesKey", "metricSourceKeyAttributes"))
// the properties below are optional
.metricSourceAttributes(Map.of(
"metricSourceAttributesKey", "metricSourceAttributes"))
.build())
.metricType("metricType")
.operationName("operationName")
.periodSeconds(123)
.statistic("statistic")
.build())
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.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.ApplicationSignals;
var cfnServiceLevelObjectiveProps = new CfnServiceLevelObjectiveProps {
Name = "name",
// the properties below are optional
BurnRateConfigurations = new [] { new BurnRateConfigurationProperty {
LookBackWindowMinutes = 123
} },
Description = "description",
ExclusionWindows = new [] { new ExclusionWindowProperty {
Window = new WindowProperty {
Duration = 123,
DurationUnit = "durationUnit"
},
// the properties below are optional
Reason = "reason",
RecurrenceRule = new RecurrenceRuleProperty {
Expression = "expression"
},
StartTime = "startTime"
} },
Goal = new GoalProperty {
AttainmentGoal = 123,
Interval = new IntervalProperty {
CalendarInterval = new CalendarIntervalProperty {
Duration = 123,
DurationUnit = "durationUnit",
StartTime = 123
},
RollingInterval = new RollingIntervalProperty {
Duration = 123,
DurationUnit = "durationUnit"
}
},
WarningThreshold = 123
},
RequestBasedSli = new RequestBasedSliProperty {
RequestBasedSliMetric = new RequestBasedSliMetricProperty {
CompositeSliConfig = new CompositeSliConfigProperty {
SelectionConfig = new SelectionConfigProperty {
Type = "type",
// the properties below are optional
Pattern = "pattern"
},
// the properties below are optional
CompositeSliComponents = new [] { new CompositeSliComponentProperty {
OperationName = "operationName"
} }
},
DependencyConfig = new DependencyConfigProperty {
DependencyKeyAttributes = new Dictionary<string, string> {
{ "dependencyKeyAttributesKey", "dependencyKeyAttributes" }
},
DependencyOperationName = "dependencyOperationName"
},
KeyAttributes = new Dictionary<string, string> {
{ "keyAttributesKey", "keyAttributes" }
},
MetricName = "metricName",
MetricSource = new MetricSourceProperty {
MetricSourceKeyAttributes = new Dictionary<string, string> {
{ "metricSourceKeyAttributesKey", "metricSourceKeyAttributes" }
},
// the properties below are optional
MetricSourceAttributes = new Dictionary<string, string> {
{ "metricSourceAttributesKey", "metricSourceAttributes" }
}
},
MetricType = "metricType",
MonitoredRequestCountMetric = new MonitoredRequestCountMetricProperty {
BadCountMetric = new [] { new MetricDataQueryProperty {
Id = "id",
// the properties below are optional
AccountId = "accountId",
Expression = "expression",
MetricStat = new MetricStatProperty {
Metric = new MetricProperty {
Dimensions = new [] { new DimensionProperty {
Name = "name",
Value = "value"
} },
MetricName = "metricName",
Namespace = "namespace"
},
Period = 123,
Stat = "stat",
// the properties below are optional
Unit = "unit"
},
ReturnData = false
} },
GoodCountMetric = new [] { new MetricDataQueryProperty {
Id = "id",
// the properties below are optional
AccountId = "accountId",
Expression = "expression",
MetricStat = new MetricStatProperty {
Metric = new MetricProperty {
Dimensions = new [] { new DimensionProperty {
Name = "name",
Value = "value"
} },
MetricName = "metricName",
Namespace = "namespace"
},
Period = 123,
Stat = "stat",
// the properties below are optional
Unit = "unit"
},
ReturnData = false
} }
},
OperationName = "operationName",
TotalRequestCountMetric = new [] { new MetricDataQueryProperty {
Id = "id",
// the properties below are optional
AccountId = "accountId",
Expression = "expression",
MetricStat = new MetricStatProperty {
Metric = new MetricProperty {
Dimensions = new [] { new DimensionProperty {
Name = "name",
Value = "value"
} },
MetricName = "metricName",
Namespace = "namespace"
},
Period = 123,
Stat = "stat",
// the properties below are optional
Unit = "unit"
},
ReturnData = false
} }
},
// the properties below are optional
ComparisonOperator = "comparisonOperator",
MetricThreshold = 123
},
Sli = new SliProperty {
ComparisonOperator = "comparisonOperator",
MetricThreshold = 123,
SliMetric = new SliMetricProperty {
CompositeSliConfig = new CompositeSliConfigProperty {
SelectionConfig = new SelectionConfigProperty {
Type = "type",
// the properties below are optional
Pattern = "pattern"
},
// the properties below are optional
CompositeSliComponents = new [] { new CompositeSliComponentProperty {
OperationName = "operationName"
} }
},
DependencyConfig = new DependencyConfigProperty {
DependencyKeyAttributes = new Dictionary<string, string> {
{ "dependencyKeyAttributesKey", "dependencyKeyAttributes" }
},
DependencyOperationName = "dependencyOperationName"
},
KeyAttributes = new Dictionary<string, string> {
{ "keyAttributesKey", "keyAttributes" }
},
MetricDataQueries = new [] { new MetricDataQueryProperty {
Id = "id",
// the properties below are optional
AccountId = "accountId",
Expression = "expression",
MetricStat = new MetricStatProperty {
Metric = new MetricProperty {
Dimensions = new [] { new DimensionProperty {
Name = "name",
Value = "value"
} },
MetricName = "metricName",
Namespace = "namespace"
},
Period = 123,
Stat = "stat",
// the properties below are optional
Unit = "unit"
},
ReturnData = false
} },
MetricName = "metricName",
MetricSource = new MetricSourceProperty {
MetricSourceKeyAttributes = new Dictionary<string, string> {
{ "metricSourceKeyAttributesKey", "metricSourceKeyAttributes" }
},
// the properties below are optional
MetricSourceAttributes = new Dictionary<string, string> {
{ "metricSourceAttributesKey", "metricSourceAttributes" }
}
},
MetricType = "metricType",
OperationName = "operationName",
PeriodSeconds = 123,
Statistic = "statistic"
}
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
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"
cfnServiceLevelObjectiveProps := &CfnServiceLevelObjectiveProps{
Name: jsii.String("name"),
// the properties below are optional
BurnRateConfigurations: []interface{}{
&BurnRateConfigurationProperty{
LookBackWindowMinutes: jsii.Number(123),
},
},
Description: jsii.String("description"),
ExclusionWindows: []interface{}{
&ExclusionWindowProperty{
Window: &WindowProperty{
Duration: jsii.Number(123),
DurationUnit: jsii.String("durationUnit"),
},
// the properties below are optional
Reason: jsii.String("reason"),
RecurrenceRule: &RecurrenceRuleProperty{
Expression: jsii.String("expression"),
},
StartTime: jsii.String("startTime"),
},
},
Goal: &GoalProperty{
AttainmentGoal: jsii.Number(123),
Interval: &IntervalProperty{
CalendarInterval: &CalendarIntervalProperty{
Duration: jsii.Number(123),
DurationUnit: jsii.String("durationUnit"),
StartTime: jsii.Number(123),
},
RollingInterval: &RollingIntervalProperty{
Duration: jsii.Number(123),
DurationUnit: jsii.String("durationUnit"),
},
},
WarningThreshold: jsii.Number(123),
},
RequestBasedSli: &RequestBasedSliProperty{
RequestBasedSliMetric: &RequestBasedSliMetricProperty{
CompositeSliConfig: &CompositeSliConfigProperty{
SelectionConfig: &SelectionConfigProperty{
Type: jsii.String("type"),
// the properties below are optional
Pattern: jsii.String("pattern"),
},
// the properties below are optional
CompositeSliComponents: []interface{}{
&CompositeSliComponentProperty{
OperationName: jsii.String("operationName"),
},
},
},
DependencyConfig: &DependencyConfigProperty{
DependencyKeyAttributes: map[string]*string{
"dependencyKeyAttributesKey": jsii.String("dependencyKeyAttributes"),
},
DependencyOperationName: jsii.String("dependencyOperationName"),
},
KeyAttributes: map[string]*string{
"keyAttributesKey": jsii.String("keyAttributes"),
},
MetricName: jsii.String("metricName"),
MetricSource: &MetricSourceProperty{
MetricSourceKeyAttributes: map[string]*string{
"metricSourceKeyAttributesKey": jsii.String("metricSourceKeyAttributes"),
},
// the properties below are optional
MetricSourceAttributes: map[string]*string{
"metricSourceAttributesKey": jsii.String("metricSourceAttributes"),
},
},
MetricType: jsii.String("metricType"),
MonitoredRequestCountMetric: &MonitoredRequestCountMetricProperty{
BadCountMetric: []interface{}{
&MetricDataQueryProperty{
Id: jsii.String("id"),
// the properties below are optional
AccountId: jsii.String("accountId"),
Expression: jsii.String("expression"),
MetricStat: &MetricStatProperty{
Metric: &MetricProperty{
Dimensions: []interface{}{
&DimensionProperty{
Name: jsii.String("name"),
Value: jsii.String("value"),
},
},
MetricName: jsii.String("metricName"),
Namespace: jsii.String("namespace"),
},
Period: jsii.Number(123),
Stat: jsii.String("stat"),
// the properties below are optional
Unit: jsii.String("unit"),
},
ReturnData: jsii.Boolean(false),
},
},
GoodCountMetric: []interface{}{
&MetricDataQueryProperty{
Id: jsii.String("id"),
// the properties below are optional
AccountId: jsii.String("accountId"),
Expression: jsii.String("expression"),
MetricStat: &MetricStatProperty{
Metric: &MetricProperty{
Dimensions: []interface{}{
&DimensionProperty{
Name: jsii.String("name"),
Value: jsii.String("value"),
},
},
MetricName: jsii.String("metricName"),
Namespace: jsii.String("namespace"),
},
Period: jsii.Number(123),
Stat: jsii.String("stat"),
// the properties below are optional
Unit: jsii.String("unit"),
},
ReturnData: jsii.Boolean(false),
},
},
},
OperationName: jsii.String("operationName"),
TotalRequestCountMetric: []interface{}{
&MetricDataQueryProperty{
Id: jsii.String("id"),
// the properties below are optional
AccountId: jsii.String("accountId"),
Expression: jsii.String("expression"),
MetricStat: &MetricStatProperty{
Metric: &MetricProperty{
Dimensions: []interface{}{
&DimensionProperty{
Name: jsii.String("name"),
Value: jsii.String("value"),
},
},
MetricName: jsii.String("metricName"),
Namespace: jsii.String("namespace"),
},
Period: jsii.Number(123),
Stat: jsii.String("stat"),
// the properties below are optional
Unit: jsii.String("unit"),
},
ReturnData: jsii.Boolean(false),
},
},
},
// the properties below are optional
ComparisonOperator: jsii.String("comparisonOperator"),
MetricThreshold: jsii.Number(123),
},
Sli: &SliProperty{
ComparisonOperator: jsii.String("comparisonOperator"),
MetricThreshold: jsii.Number(123),
SliMetric: &SliMetricProperty{
CompositeSliConfig: &CompositeSliConfigProperty{
SelectionConfig: &SelectionConfigProperty{
Type: jsii.String("type"),
// the properties below are optional
Pattern: jsii.String("pattern"),
},
// the properties below are optional
CompositeSliComponents: []interface{}{
&CompositeSliComponentProperty{
OperationName: jsii.String("operationName"),
},
},
},
DependencyConfig: &DependencyConfigProperty{
DependencyKeyAttributes: map[string]*string{
"dependencyKeyAttributesKey": jsii.String("dependencyKeyAttributes"),
},
DependencyOperationName: jsii.String("dependencyOperationName"),
},
KeyAttributes: map[string]*string{
"keyAttributesKey": jsii.String("keyAttributes"),
},
MetricDataQueries: []interface{}{
&MetricDataQueryProperty{
Id: jsii.String("id"),
// the properties below are optional
AccountId: jsii.String("accountId"),
Expression: jsii.String("expression"),
MetricStat: &MetricStatProperty{
Metric: &MetricProperty{
Dimensions: []interface{}{
&DimensionProperty{
Name: jsii.String("name"),
Value: jsii.String("value"),
},
},
MetricName: jsii.String("metricName"),
Namespace: jsii.String("namespace"),
},
Period: jsii.Number(123),
Stat: jsii.String("stat"),
// the properties below are optional
Unit: jsii.String("unit"),
},
ReturnData: jsii.Boolean(false),
},
},
MetricName: jsii.String("metricName"),
MetricSource: &MetricSourceProperty{
MetricSourceKeyAttributes: map[string]*string{
"metricSourceKeyAttributesKey": jsii.String("metricSourceKeyAttributes"),
},
// the properties below are optional
MetricSourceAttributes: map[string]*string{
"metricSourceAttributesKey": jsii.String("metricSourceAttributes"),
},
},
MetricType: jsii.String("metricType"),
OperationName: jsii.String("operationName"),
PeriodSeconds: jsii.Number(123),
Statistic: jsii.String("statistic"),
},
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
burnRateConfigurationsoptionalIResolvable | IResolvable | CfnServiceLevelObjective.burn_rate_configurationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, BurnRateConfigurationProperty]]]burnRateConfigurationsoptionalIResolvableBurnRateConfigurationsoptionalIResolvableBurnRateConfigurationsoptionalinterface{} #Each object in this array defines the length of the look-back window used to calculate one burn rate metric for this SLO.
The burn rate measures how fast the service is consuming the error budget, relative to the attainment goal of the SLO.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #An optional description for this SLO.
Default: "No description"
exclusionWindowsoptionalIResolvable | IResolvable | CfnServiceLevelObjective.exclusion_windowsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ExclusionWindowProperty]]]exclusionWindowsoptionalIResolvableExclusionWindowsoptionalIResolvableExclusionWindowsoptionalinterface{} #The time window to be excluded from the SLO performance metrics.
goaloptionalIResolvable | CfnServiceLevelObjective.goaloptionaltyping.Union[IResolvable, GoalProperty]goaloptionalIResolvableGoaloptionalIResolvableGoaloptionalinterface{} #This structure contains the attributes that determine the goal of an SLO.
This includes the time period for evaluation and the attainment threshold.
A name for this SLO.
requestBasedSlioptionalIResolvable | CfnServiceLevelObjective.request_based_slioptionaltyping.Union[IResolvable, RequestBasedSliProperty]requestBasedSlioptionalIResolvableRequestBasedSlioptionalIResolvableRequestBasedSlioptionalinterface{} #A structure containing information about the performance metric that this SLO monitors, if this is a request-based SLO.
slioptionalIResolvable | CfnServiceLevelObjective.slioptionaltyping.Union[IResolvable, SliProperty]slioptionalIResolvableSlioptionalIResolvableSlioptionalinterface{} #A structure containing information about the performance metric that this SLO monitors, if this is a period-based SLO.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #A list of key-value pairs to associate with the SLO.
notes
You can associate as many as 50 tags with an SLO. To be able to associate tags with the SLO when you create the SLO, you must have the cloudwatch:TagResource permission.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.