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
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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnFleetMetric
(Construct scope, String id, CfnFleetMetricProps props) Create a newAWS::IoT::FleetMetric
.protected
CfnFleetMetric
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnFleetMetric
(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.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
Used 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, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
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 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:
inspect
in 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:
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
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.
-