Class CfnFleetMetricPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iot.CfnFleetMetricPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleetMetricPropsMixin>
- Enclosing class:
CfnFleetMetricPropsMixin
@Stability(Stable)
public static final class CfnFleetMetricPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleetMetricPropsMixin>
A fluent builder for
CfnFleetMetricPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionaggregationField(String aggregationField) The field to aggregate.aggregationType(CfnFleetMetricPropsMixin.AggregationTypeProperty aggregationType) The type of the aggregation query.aggregationType(IResolvable aggregationType) The type of the aggregation query.build()create()create(CfnPropertyMixinOptions options) description(String description) The fleet metric description.The name of the index to search.metricName(String metricName) The name of the fleet metric to create.The time in seconds between fleet metric emissions.queryString(String queryString) The search query string.queryVersion(String queryVersion) The query version.Metadata which can be used to manage the fleet metric.Used to support unit transformation such as milliseconds to seconds.
-
Method Details
-
create
@Stability(Stable) public static CfnFleetMetricPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnFleetMetricPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnFleetMetricPropsMixin.Builder.
-
aggregationField
@Stability(Stable) public CfnFleetMetricPropsMixin.Builder aggregationField(String aggregationField) The field to aggregate.- Parameters:
aggregationField- The field to aggregate. This parameter is required.- Returns:
this- See Also:
-
aggregationType
@Stability(Stable) public CfnFleetMetricPropsMixin.Builder aggregationType(IResolvable aggregationType) The type of the aggregation query.- Parameters:
aggregationType- The type of the aggregation query. This parameter is required.- Returns:
this- See Also:
-
aggregationType
@Stability(Stable) public CfnFleetMetricPropsMixin.Builder aggregationType(CfnFleetMetricPropsMixin.AggregationTypeProperty aggregationType) The type of the aggregation query.- Parameters:
aggregationType- The type of the aggregation query. This parameter is required.- Returns:
this- See Also:
-
description
The fleet metric description.- Parameters:
description- The fleet metric description. This parameter is required.- Returns:
this- See Also:
-
indexName
The name of the index to search.- Parameters:
indexName- The name of the index to search. This parameter is required.- Returns:
this- See Also:
-
metricName
The name of the fleet metric to create.- Parameters:
metricName- The name of the fleet metric to create. This parameter is required.- Returns:
this- See Also:
-
period
The time in seconds between fleet metric emissions.Range [60(1 min), 86400(1 day)] and must be multiple of 60.
- Parameters:
period- The time in seconds between fleet metric emissions. This parameter is required.- Returns:
this- See Also:
-
queryString
The search query string.- Parameters:
queryString- The search query string. This parameter is required.- Returns:
this- See Also:
-
queryVersion
The query version.- Parameters:
queryVersion- The query version. This parameter is required.- Returns:
this- See Also:
-
tags
Metadata which can be used to manage the fleet metric.- Parameters:
tags- Metadata which can be used to manage the fleet metric. This parameter is required.- Returns:
this- See Also:
-
unit
Used to support unit transformation such as milliseconds to seconds.Must be a unit supported by CW metric. Default to null.
- Parameters:
unit- Used to support unit transformation such as milliseconds to seconds. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFleetMetricPropsMixin>- Returns:
- a newly built instance of
CfnFleetMetricPropsMixin.
-