@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.857Z") @Stability(value=Stable) public class CfnFleetMetric extends CfnResource implements IInspectable
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();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnFleetMetric.AggregationTypeProperty
The type of aggregation queries.
|
static class |
CfnFleetMetric.Builder
A fluent builder for
CfnFleetMetric. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnFleetMetric(software.constructs.Construct scope,
String id,
CfnFleetMetricProps props)
Create a new `AWS::IoT::FleetMetric`.
|
protected |
CfnFleetMetric(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnFleetMetric(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAggregationField()
The field to aggregate.
|
Object |
getAggregationType()
The type of the aggregation query.
|
IResolvable |
getAttrCreationDate()
The time the fleet metric was created.
|
IResolvable |
getAttrLastModifiedDate()
The time the fleet metric was last modified.
|
String |
getAttrMetricArn()
The Amazon Resource Name (ARN) of the fleet metric.
|
IResolvable |
getAttrVersion()
The fleet metric version.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
The fleet metric description.
|
String |
getIndexName()
The name of the index to search.
|
String |
getMetricName()
The name of the fleet metric to create.
|
Number |
getPeriod()
The time in seconds between fleet metric emissions.
|
String |
getQueryString()
The search query string.
|
String |
getQueryVersion()
The query version.
|
TagManager |
getTags()
Metadata which can be used to manage the fleet metric.
|
String |
getUnit()
Used to support unit transformation such as milliseconds to seconds.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAggregationField(String value)
The field to aggregate.
|
void |
setAggregationType(CfnFleetMetric.AggregationTypeProperty value)
The type of the aggregation query.
|
void |
setAggregationType(IResolvable value)
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 |
setPeriod(Number value)
The time in seconds between fleet metric emissions.
|
void |
setQueryString(String value)
The search query string.
|
void |
setQueryVersion(String value)
The query version.
|
void |
setUnit(String value)
Used to support unit transformation such as milliseconds to seconds.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnFleetMetric(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnFleetMetric(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnFleetMetric(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnFleetMetricProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public IResolvable getAttrCreationDate()
@Stability(value=Stable) @NotNull public IResolvable getAttrLastModifiedDate()
@Stability(value=Stable) @NotNull public String getAttrMetricArn()
@Stability(value=Stable) @NotNull public IResolvable getAttrVersion()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getMetricName()
@Stability(value=Stable)
public void setMetricName(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getAggregationField()
@Stability(value=Stable)
public void setAggregationField(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getAggregationType()
@Stability(value=Stable)
public void setAggregationType(@Nullable
CfnFleetMetric.AggregationTypeProperty value)
@Stability(value=Stable)
public void setAggregationType(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getIndexName()
@Stability(value=Stable)
public void setIndexName(@Nullable
String value)
@Stability(value=Stable) @Nullable public Number getPeriod()
Range [60(1 min), 86400(1 day)] and must be multiple of 60.
@Stability(value=Stable)
public void setPeriod(@Nullable
Number value)
Range [60(1 min), 86400(1 day)] and must be multiple of 60.
@Stability(value=Stable) @Nullable public String getQueryString()
@Stability(value=Stable)
public void setQueryString(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getQueryVersion()
@Stability(value=Stable)
public void setQueryVersion(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getUnit()
Must be a unit supported by CW metric. Default to null.
@Stability(value=Stable)
public void setUnit(@Nullable
String value)
Must be a unit supported by CW metric. Default to null.
Copyright © 2022. All rights reserved.