CfnFleetMetricPropsMixin
- class aws_cdk.mixins_preview.aws_iot.mixins.CfnFleetMetricPropsMixin(props, *, strategy=None)
Bases:
MixinUse the
AWS::IoT::FleetMetricresource to declare a fleet metric.- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-fleetmetric.html
- CloudformationResource:
AWS::IoT::FleetMetric
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_iot import mixins as iot_mixins cfn_fleet_metric_props_mixin = iot_mixins.CfnFleetMetricPropsMixin(iot_mixins.CfnFleetMetricMixinProps( aggregation_field="aggregationField", aggregation_type=iot_mixins.CfnFleetMetricPropsMixin.AggregationTypeProperty( name="name", values=["values"] ), description="description", index_name="indexName", metric_name="metricName", period=123, query_string="queryString", query_version="queryVersion", tags=[CfnTag( key="key", value="value" )], unit="unit" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::IoT::FleetMetric.- Parameters:
props (
Union[CfnFleetMetricMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['aggregationField', 'aggregationType', 'description', 'indexName', 'metricName', 'period', 'queryString', 'queryVersion', 'tags', 'unit']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
AggregationTypeProperty
- class CfnFleetMetricPropsMixin.AggregationTypeProperty(*, name=None, values=None)
Bases:
objectThe type of aggregation queries.
- Parameters:
name (
Optional[str]) – The name of the aggregation type.values (
Optional[Sequence[str]]) – A list of the values of aggregation types.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_iot import mixins as iot_mixins aggregation_type_property = iot_mixins.CfnFleetMetricPropsMixin.AggregationTypeProperty( name="name", values=["values"] )
Attributes
- name
The name of the aggregation type.
- values
A list of the values of aggregation types.