Class CfnFleetMetric
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.iot.CfnFleetMetric
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:57.544Z")
@Stability(Stable)
public class CfnFleetMetric
extends CfnResource
implements IInspectable
A CloudFormation
AWS::IoT::FleetMetric.
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();
-
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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnFleetMetric(Construct scope, String id, CfnFleetMetricProps props) Create a newAWS::IoT::FleetMetric.protectedCfnFleetMetric(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnFleetMetric(software.amazon.jsii.JsiiObjectRef objRef) -
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()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.voidUsed to support unit transformation such as milliseconds to seconds.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @NotNull CfnFleetMetricProps props) Create a newAWS::IoT::FleetMetric.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
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
-
getTags
Metadata which can be used to manage the fleet metric. -
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.Range [60(1 min), 86400(1 day)] and must be multiple of 60.
-
setPeriod
The time in seconds between fleet metric emissions.Range [60(1 min), 86400(1 day)] and must be multiple of 60.
-
getQueryString
The search query string. -
setQueryString
The search query string. -
getQueryVersion
The query version. -
setQueryVersion
The query version. -
getUnit
Used to support unit transformation such as milliseconds to seconds.Must be a unit supported by CW metric. Default to null.
-
setUnit
Used to support unit transformation such as milliseconds to seconds.Must be a unit supported by CW metric. Default to null.
-