Class CfnFleetMetric.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnFleetMetric.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleetMetric>
- Enclosing class:
CfnFleetMetric
@Stability(Stable)
public static final class CfnFleetMetric.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleetMetric>
A fluent builder for
CfnFleetMetric
.-
Method Summary
Modifier and TypeMethodDescriptionaggregationField
(String aggregationField) The field to aggregate.aggregationType
(IResolvable aggregationType) The type of the aggregation query.aggregationType
(CfnFleetMetric.AggregationTypeProperty aggregationType) The type of the aggregation query.build()
static CfnFleetMetric.Builder
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 CfnFleetMetric.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnFleetMetric.Builder
.
-
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:
-
aggregationField
The field to aggregate.- Parameters:
aggregationField
- The field to aggregate. This parameter is required.- Returns:
this
- See Also:
-
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 CfnFleetMetric.Builder aggregationType(CfnFleetMetric.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:
-
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:
build
in interfacesoftware.amazon.jsii.Builder<CfnFleetMetric>
- Returns:
- a newly built instance of
CfnFleetMetric
.
-