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
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-05T03:43:44.600Z")
@Stability(Stable)
public class CfnFleetMetric
extends CfnResource
implements IInspectable, 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
Modifier and TypeClassDescriptionstatic interface
The type of aggregation queries.static final class
A fluent builder forCfnFleetMetric
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnFleetMetric
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnFleetMetric
(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.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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAggregationField
(String value) The field to aggregate.void
setAggregationType
(IResolvable value) The type of the aggregation query.void
The type of the aggregation query.void
setDescription
(String value) The fleet metric description.void
setIndexName
(String value) The name of the index to search.void
setMetricName
(String value) The name of the fleet metric to create.void
The time in seconds between fleet metric emissions.void
setQueryString
(String value) The search query string.void
setQueryVersion
(String value) The query version.void
setTagsRaw
(List<CfnTag> value) Metadata which can be used to manage the fleet metric.void
Used 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, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in 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:
getCfnProperties
in classCfnResource
-
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. -
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.
-