Class CfnFleetMetric
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.iot.CfnFleetMetric
- All Implemented Interfaces:
IInspectable,ITaggable,IFleetMetricRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:41.457Z")
@Stability(Stable)
public class CfnFleetMetric
extends CfnResource
implements IInspectable, IFleetMetricRef, ITaggable
Use the
AWS::IoT::FleetMetric resource to declare a fleet metric.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iot.*;
CfnFleetMetric cfnFleetMetric = CfnFleetMetric.Builder.create(this, "MyCfnFleetMetric")
.metricName("metricName")
// the properties below are optional
.aggregationField("aggregationField")
.aggregationType(AggregationTypeProperty.builder()
.name("name")
.values(List.of("values"))
.build())
.description("description")
.indexName("indexName")
.period(123)
.queryString("queryString")
.queryVersion("queryVersion")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.unit("unit")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe type of aggregation queries.static final classA fluent builder forCfnFleetMetric.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.iot.IFleetMetricRef
IFleetMetricRef.Jsii$Default, IFleetMetricRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnFleetMetric(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnFleetMetric(software.amazon.jsii.JsiiObjectRef objRef) CfnFleetMetric(software.constructs.Construct scope, String id, CfnFleetMetricProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe field to aggregate.The type of the aggregation query.The time the fleet metric was created.The time the fleet metric was last modified.The Amazon Resource Name (ARN) of the fleet metric.The fleet metric version.The fleet metric description.A reference to a FleetMetric resource.The name of the index to search.The name of the fleet metric to create.The time in seconds between fleet metric emissions.The search query string.The query version.getTags()Tag Manager which manages the tags for this resource.Metadata which can be used to manage the fleet metric.getUnit()Used to support unit transformation such as milliseconds to seconds.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAggregationField(String value) The field to aggregate.voidsetAggregationType(IResolvable value) The type of the aggregation query.voidThe type of the aggregation query.voidsetDescription(String value) The fleet metric description.voidsetIndexName(String value) The name of the index to search.voidsetMetricName(String value) The name of the fleet metric to create.voidThe time in seconds between fleet metric emissions.voidsetQueryString(String value) The search query string.voidsetQueryVersion(String value) The query version.voidsetTagsRaw(List<CfnTag> value) Metadata which can be used to manage the fleet metric.voidUsed to support unit transformation such as milliseconds to seconds.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnFleetMetric
protected CfnFleetMetric(software.amazon.jsii.JsiiObjectRef objRef) -
CfnFleetMetric
protected CfnFleetMetric(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnFleetMetric
@Stability(Stable) public CfnFleetMetric(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnFleetMetricProps props) - 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.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreationDate
The time the fleet metric was created. -
getAttrLastModifiedDate
The time the fleet metric was last modified. -
getAttrMetricArn
The Amazon Resource Name (ARN) of the fleet metric. -
getAttrVersion
The fleet metric version. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getFleetMetricRef
A reference to a FleetMetric resource.- Specified by:
getFleetMetricRefin interfaceIFleetMetricRef
-
getTags
Tag Manager which manages the tags for this resource. -
getMetricName
The name of the fleet metric to create. -
setMetricName
The name of the fleet metric to create. -
getAggregationField
The field to aggregate. -
setAggregationField
The field to aggregate. -
getAggregationType
The type of the aggregation query.Returns union: either
IResolvableorCfnFleetMetric.AggregationTypeProperty -
setAggregationType
The type of the aggregation query. -
setAggregationType
@Stability(Stable) public void setAggregationType(@Nullable CfnFleetMetric.AggregationTypeProperty value) The type of the aggregation query. -
getDescription
The fleet metric description. -
setDescription
The fleet metric description. -
getIndexName
The name of the index to search. -
setIndexName
The name of the index to search. -
getPeriod
The time in seconds between fleet metric emissions. -
setPeriod
The time in seconds between fleet metric emissions. -
getQueryString
The search query string. -
setQueryString
The search query string. -
getQueryVersion
The query version. -
setQueryVersion
The query version. -
getTagsRaw
Metadata which can be used to manage the fleet metric. -
setTagsRaw
Metadata which can be used to manage the fleet metric. -
getUnit
Used to support unit transformation such as milliseconds to seconds. -
setUnit
Used to support unit transformation such as milliseconds to seconds.
-