Interface CfnMetricMixinProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnMetricMixinProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:25.428Z")
@Stability(Stable)
public interface CfnMetricMixinProps
extends software.amazon.jsii.JsiiSerializable
Properties for CfnMetricPropsMixin.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.connect.*;
CfnMetricMixinProps cfnMetricMixinProps = CfnMetricMixinProps.builder()
.description("description")
.instanceArn("instanceArn")
.metricCalculation(MetricCalculationProperty.builder()
.calculation("calculation")
.calculationComponents(List.of(CalculationComponentProperty.builder()
.alias("alias")
.metricFilters(List.of(MetricFilterProperty.builder()
.booleanCondition(MetricFilterBooleanConditionProperty.builder()
.comparison("comparison")
.build())
.metricFilterKey("metricFilterKey")
.negate(false)
.numberCondition(MetricFilterNumberConditionProperty.builder()
.comparison("comparison")
.values(List.of(123))
.build())
.stringCondition(MetricFilterStringConditionProperty.builder()
.comparison("comparison")
.values(List.of("values"))
.build())
.build()))
.metricId("metricId")
.metricName("metricName")
.build()))
.build())
.name("name")
.positiveTrendIndicator("positiveTrendIndicator")
.status("status")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.unit("unit")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnMetricMixinPropsstatic final classAn implementation forCfnMetricMixinProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnMetricMixinProps.Builderbuilder()default StringThe description of the custom metric.default StringThe identifier of the Amazon Connect instance.default ObjectThe calculation configuration for the metric.default StringgetName()The name of the custom metric.default StringIndicates how to classify a positive trend in metric data on the UI.default StringThe status of the custom metric.getTags()One or more tags.default StringgetUnit()Display unit for the metric data.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDescription
The description of the custom metric.- See Also:
-
getInstanceArn
The identifier of the Amazon Connect instance.- See Also:
-
getMetricCalculation
The calculation configuration for the metric.Returns union: either
IResolvableorCfnMetricPropsMixin.MetricCalculationProperty- See Also:
-
getName
The name of the custom metric.- See Also:
-
getPositiveTrendIndicator
Indicates how to classify a positive trend in metric data on the UI.- See Also:
-
getStatus
The status of the custom metric.- See Also:
-
getTags
One or more tags.- See Also:
-
getUnit
Display unit for the metric data.- See Also:
-
builder
- Returns:
- a
CfnMetricMixinProps.BuilderofCfnMetricMixinProps
-