Skip to content
v2.274.0

AWS IoT Construct Library ​

This module is part of the AWS Cloud Development Kit project.

ts
import * as iot from 'aws-cdk-lib/aws-iot';
python
import aws_cdk.aws_iot as iot
java
import software.amazon.awscdk.services.iot.*;
csharp
using Amazon.CDK.AWS.IoT;
go
import iot "github.com/aws/aws-cdk-go/awscdk"

There are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:

An experimental construct library for this service is available in preview. Since it is not stable yet, it is distributed as a separate package so that you can pin its version independently of the rest of the CDK. See the package:

<span class="package-reference">@aws-cdk/aws-iot-alpha</span>

There are no hand-written (L2) constructs for this service yet. However, you can still use the automatically generated L1 constructs, and use this service exactly as you would using CloudFormation directly.

For more information on the resources and properties available for this service, see the CloudFormation documentation for AWS::IoT.

(Read the CDK Contributing Guide and submit an RFC if you are interested in contributing to this construct library.)

Types ​

NameKindSummary
CfnAccountAuditConfigurationConstruct (L1)Use the AWS::IoT::AccountAuditConfiguration resource to configure or reconfigure the Device Defender audit settings for your account.
CfnAuthorizerConstruct (L1)Specifies an authorizer.
CfnBillingGroupConstruct (L1)Creates a new billing group.
CfnCACertificateConstruct (L1)Specifies a CA certificate.
CfnCertificateConstruct (L1)Use the AWS::IoT::Certificate resource to declare an AWS IoT X.509 certificate. For information about working with X.509 certificates, see X.509 Client Certificates in the AWS IoT Developer Guide .
CfnCertificateProviderConstruct (L1)Creates a certificate provider.
CfnCommandConstruct (L1)Represents the resource definition of AWS IoT Command.
CfnCustomMetricConstruct (L1)Use the AWS::IoT::CustomMetric resource to define a custom metric published by your devices to Device Defender.
CfnDimensionConstruct (L1)Use the AWS::IoT::Dimension to limit the scope of a metric used in a security profile for AWS IoT Device Defender .
CfnDomainConfigurationConstruct (L1)Specifies a domain configuration.
CfnEncryptionConfigurationConstruct (L1)Retrieves the encryption configuration for resources and data of your AWS account in AWS IoT Core .
CfnFleetMetricConstruct (L1)Use the AWS::IoT::FleetMetric resource to declare a fleet metric.
CfnJobConstruct (L1)Use the AWS::IoT::Job resource to declare an AWS IoT job.
CfnJobTemplateConstruct (L1)Represents a job template.
CfnLoggingConstruct (L1)Configure logging.
CfnMitigationActionConstruct (L1)Defines an action that can be applied to audit findings by using StartAuditMitigationActionsTask.
CfnPolicyConstruct (L1)Use the AWS::IoT::Policy resource to declare an AWS IoT policy.
CfnPolicyPrincipalAttachmentConstruct (L1)Use the AWS::IoT::PolicyPrincipalAttachment resource to attach an AWS IoT policy to a principal (an X.509 certificate or other credential).
CfnProvisioningTemplateConstruct (L1)Creates a fleet provisioning template.
CfnResourceSpecificLoggingConstruct (L1)Configure resource-specific logging.
CfnRoleAliasConstruct (L1)Specifies a role alias.
CfnScheduledAuditConstruct (L1)Use the AWS::IoT::ScheduledAudit resource to create a scheduled audit that is run at a specified time interval.
CfnSecurityProfileConstruct (L1)Use the AWS::IoT::SecurityProfile resource to create a Device Defender security profile.
CfnSoftwarePackageConstruct (L1)Use the AWS::IoT::SoftwarePackage resource to create a software package.
CfnSoftwarePackageVersionConstruct (L1)Use the AWS::IoT::SoftwarePackageVersion resource to create a software package version.
CfnStreamConstruct (L1)Resource Type definition for AWS IoT Stream.
CfnThingConstruct (L1)Use the AWS::IoT::Thing resource to declare an AWS IoT thing.
CfnThingGroupConstruct (L1)Creates a new thing group.
CfnThingPrincipalAttachmentConstruct (L1)Use the AWS::IoT::ThingPrincipalAttachment resource to attach a principal (an X.509 certificate or another credential) to a thing.
CfnThingTypeConstruct (L1)Creates a new thing type.
CfnTopicRuleConstruct (L1)Use the AWS::IoT::TopicRule resource to declare an AWS IoT rule.
CfnTopicRuleDestinationConstruct (L1)A topic rule destination.
CfnAccountAuditConfiguration.AuditCheckConfigurationPropertyStructWhich audit checks are enabled and disabled for this account.
CfnAccountAuditConfiguration.AuditCheckConfigurationsPropertyStructThe types of audit checks that can be performed.
CfnAccountAuditConfiguration.AuditNotificationTargetConfigurationsPropertyStructThe configuration of the audit notification target.
CfnAccountAuditConfiguration.AuditNotificationTargetPropertyStructInformation about the targets to which audit notifications are sent.
CfnAccountAuditConfiguration.CertAgeCheckCustomConfigurationPropertyStructConfiguration structure containing settings for the device certificate age check.
CfnAccountAuditConfiguration.DeviceCertAgeAuditCheckConfigurationPropertyStructConfiguration for the device certificate age audit check.
CfnAccountAuditConfigurationPropsStructProperties for defining a CfnAccountAuditConfiguration.
CfnAuthorizerPropsStructProperties for defining a CfnAuthorizer.
CfnBillingGroup.BillingGroupPropertiesPropertyStructThe properties of a billing group.
CfnBillingGroupPropsStructProperties for defining a CfnBillingGroup.
CfnCACertificate.RegistrationConfigPropertyStructThe registration configuration.
CfnCACertificatePropsStructProperties for defining a CfnCACertificate.
CfnCertificatePropsStructProperties for defining a CfnCertificate.
CfnCertificateProviderPropsStructProperties for defining a CfnCertificateProvider.
CfnCommand.AwsJsonSubstitutionCommandPreprocessorConfigPropertyStruct
CfnCommand.CommandParameterPropertyStruct
CfnCommand.CommandParameterValueComparisonOperandPropertyStruct
CfnCommand.CommandParameterValueConditionPropertyStruct
CfnCommand.CommandParameterValueNumberRangePropertyStruct
CfnCommand.CommandParameterValuePropertyStruct
CfnCommand.CommandPayloadPropertyStruct
CfnCommand.CommandPreprocessorPropertyStruct
CfnCommandPropsStructProperties for defining a CfnCommand.
CfnCustomMetricPropsStructProperties for defining a CfnCustomMetric.
CfnDimensionPropsStructProperties for defining a CfnDimension.
CfnDomainConfiguration.AuthorizerConfigPropertyStructAn object that specifies the authorization service for a domain.
CfnDomainConfiguration.ClientCertificateConfigPropertyStructAn object that specifies the client certificate configuration for a domain.
CfnDomainConfiguration.ServerCertificateConfigPropertyStructThe server certificate configuration.
CfnDomainConfiguration.ServerCertificateSummaryPropertyStructAn object that contains information about a server certificate.
CfnDomainConfiguration.TlsConfigPropertyStructAn object that specifies the TLS configuration for a domain.
CfnDomainConfigurationPropsStructProperties for defining a CfnDomainConfiguration.
CfnEncryptionConfiguration.ConfigurationDetailsPropertyStructThe encryption configuration details that include the status information of the AWS Key Management Service ( AWS ) key and the AWS access role.
CfnEncryptionConfigurationPropsStructProperties for defining a CfnEncryptionConfiguration.
CfnFleetMetric.AggregationTypePropertyStructThe type of aggregation queries.
CfnFleetMetricPropsStructProperties for defining a CfnFleetMetric.
CfnJob.AbortConfigPropertyStructThe criteria that determine when and how a job abort takes place.
CfnJob.AbortCriteriaPropertyStructThe criteria that determine when and how a job abort takes place.
CfnJob.ExponentialRolloutRatePropertyStructAllows you to create an exponential rate of rollout for a job.
CfnJob.JobExecutionsRetryConfigPropertyStructThe configuration that determines how many retries are allowed for each failure type for a job.
CfnJob.JobExecutionsRolloutConfigPropertyStructAllows you to create a staged rollout of a job.
CfnJob.MaintenanceWindowPropertyStructAn optional configuration within the SchedulingConfig to setup a recurring maintenance window with a predetermined start time and duration for the rollout of a job document to all devices in a target group for a job.
CfnJob.PresignedUrlConfigPropertyStructConfiguration for pre-signed S3 URLs.
CfnJob.RateIncreaseCriteriaPropertyStructAllows you to define a criteria to initiate the increase in rate of rollout for a job.
CfnJob.RetryCriteriaPropertyStructThe criteria that determines how many retries are allowed for each failure type for a job.
CfnJob.SchedulingConfigPropertyStructSpecifies the date and time that a job will begin the rollout of the job document to all devices in the target group.
CfnJob.TimeoutConfigPropertyStructSpecifies the amount of time each device has to finish its execution of the job.
CfnJobPropsStructProperties for defining a CfnJob.
CfnJobTemplate.AbortConfigPropertyStructThe criteria that determine when and how a job abort takes place.
CfnJobTemplate.AbortCriteriaPropertyStructThe criteria that determine when and how a job abort takes place.
CfnJobTemplate.ExponentialRolloutRatePropertyStructAllows you to create an exponential rate of rollout for a job.
CfnJobTemplate.JobExecutionsRetryConfigPropertyStructThe configuration that determines how many retries are allowed for each failure type for a job.
CfnJobTemplate.JobExecutionsRolloutConfigPropertyStructAllows you to create a staged rollout of a job.
CfnJobTemplate.MaintenanceWindowPropertyStructAn optional configuration within the SchedulingConfig to setup a recurring maintenance window with a predetermined start time and duration for the rollout of a job document to all devices in a target group for a job.
CfnJobTemplate.PresignedUrlConfigPropertyStructConfiguration for pre-signed S3 URLs.
CfnJobTemplate.RateIncreaseCriteriaPropertyStructAllows you to define a criteria to initiate the increase in rate of rollout for a job.
CfnJobTemplate.RetryCriteriaPropertyStructThe criteria that determines how many retries are allowed for each failure type for a job.
CfnJobTemplate.TimeoutConfigPropertyStructSpecifies the amount of time each device has to finish its execution of the job.
CfnJobTemplatePropsStructProperties for defining a CfnJobTemplate.
CfnLogging.EventConfigurationPropertyStructConfiguration for event-based logging that specifies which event types to log and their logging settings.
CfnLoggingPropsStructProperties for defining a CfnLogging.
CfnMitigationAction.ActionParamsPropertyStructDefines the type of action and the parameters for that action.
CfnMitigationAction.AddThingsToThingGroupParamsPropertyStructParameters used when defining a mitigation action that move a set of things to a thing group.
CfnMitigationAction.EnableIoTLoggingParamsPropertyStructParameters used when defining a mitigation action that enable AWS IoT Core logging.
CfnMitigationAction.PublishFindingToSnsParamsPropertyStructParameters to define a mitigation action that publishes findings to Amazon SNS.
CfnMitigationAction.ReplaceDefaultPolicyVersionParamsPropertyStructParameters to define a mitigation action that adds a blank policy to restrict permissions.
CfnMitigationAction.UpdateCACertificateParamsPropertyStructParameters to define a mitigation action that changes the state of the CA certificate to inactive.
CfnMitigationAction.UpdateDeviceCertificateParamsPropertyStructParameters to define a mitigation action that changes the state of the device certificate to inactive.
CfnMitigationActionPropsStructProperties for defining a CfnMitigationAction.
CfnPolicyPrincipalAttachmentPropsStructProperties for defining a CfnPolicyPrincipalAttachment.
CfnPolicyPropsStructProperties for defining a CfnPolicy.
CfnProvisioningTemplate.ProvisioningHookPropertyStructStructure that contains payloadVersion and targetArn.
CfnProvisioningTemplatePropsStructProperties for defining a CfnProvisioningTemplate.
CfnResourceSpecificLoggingPropsStructProperties for defining a CfnResourceSpecificLogging.
CfnRoleAliasPropsStructProperties for defining a CfnRoleAlias.
CfnScheduledAuditPropsStructProperties for defining a CfnScheduledAudit.
CfnSecurityProfile.AlertTargetPropertyStructA structure containing the alert target ARN and the role ARN.
CfnSecurityProfile.BehaviorCriteriaPropertyStructThe criteria by which the behavior is determined to be normal.
CfnSecurityProfile.BehaviorPropertyStructA Device Defender security profile behavior.
CfnSecurityProfile.MachineLearningDetectionConfigPropertyStructThe MachineLearningDetectionConfig property type controls confidence of the machine learning model.
CfnSecurityProfile.MetricDimensionPropertyStructThe dimension of the metric.
CfnSecurityProfile.MetricsExportConfigPropertyStructSpecifies the MQTT topic and role ARN required for metric export.
CfnSecurityProfile.MetricToRetainPropertyStructThe metric you want to retain.
CfnSecurityProfile.MetricValuePropertyStructThe value to be compared with the metric .
CfnSecurityProfile.StatisticalThresholdPropertyStructA statistical ranking (percentile) that indicates a threshold value by which a behavior is determined to be in compliance or in violation of the behavior.
CfnSecurityProfilePropsStructProperties for defining a CfnSecurityProfile.
CfnSoftwarePackagePropsStructProperties for defining a CfnSoftwarePackage.
CfnSoftwarePackageVersion.PackageVersionArtifactPropertyStructThe artifact location of the package version.
CfnSoftwarePackageVersion.S3LocationPropertyStructThe Amazon S3 location.
CfnSoftwarePackageVersion.SbomPropertyStructThe sbom zip archive location of the package version.
CfnSoftwarePackageVersionPropsStructProperties for defining a CfnSoftwarePackageVersion.
CfnStream.S3LocationPropertyStructThe location of the file in S3.
CfnStream.StreamFilePropertyStructRepresents a file to stream.
CfnStreamPropsStructProperties for defining a CfnStream.
CfnThing.AttributePayloadPropertyStructThe AttributePayload property specifies up to three attributes for an AWS IoT as key-value pairs.
CfnThingGroup.AttributePayloadPropertyStructThe attribute payload.
CfnThingGroup.ThingGroupPropertiesPropertyStructThing group properties.
CfnThingGroupPropsStructProperties for defining a CfnThingGroup.
CfnThingPrincipalAttachmentPropsStructProperties for defining a CfnThingPrincipalAttachment.
CfnThingPropsStructProperties for defining a CfnThing.
CfnThingType.Mqtt5ConfigurationPropertyStructThe configuration to add user-defined properties to enrich MQTT 5 messages.
CfnThingType.PropagatingAttributePropertyStructAn object that represents the connection attribute, the thing attribute, and the MQTT 5 user property key.
CfnThingType.ThingTypePropertiesPropertyStructThe ThingTypeProperties contains information about the thing type including: a thing type description, and a list of searchable thing attribute names.
CfnThingTypePropsStructProperties for defining a CfnThingType.
CfnTopicRule.ActionPropertyStructDescribes the actions associated with a rule.
CfnTopicRule.AssetPropertyTimestampPropertyStructAn asset property timestamp entry containing the following information.
CfnTopicRule.AssetPropertyValuePropertyStructAn asset property value entry containing the following information.
CfnTopicRule.AssetPropertyVariantPropertyStructContains an asset property value (of a single type).
CfnTopicRule.BatchConfigPropertyStruct
CfnTopicRule.CloudwatchAlarmActionPropertyStructDescribes an action that updates a CloudWatch alarm.
CfnTopicRule.CloudwatchLogsActionPropertyStructDescribes an action that updates a CloudWatch log.
CfnTopicRule.CloudwatchMetricActionPropertyStructDescribes an action that captures a CloudWatch metric.
CfnTopicRule.DynamoDBActionPropertyStructDescribes an action to write to a DynamoDB table.
CfnTopicRule.DynamoDBv2ActionPropertyStructDescribes an action to write to a DynamoDB table.
CfnTopicRule.ElasticsearchActionPropertyStructDescribes an action that writes data to an Amazon OpenSearch Service domain.
CfnTopicRule.FirehoseActionPropertyStructDescribes an action that writes data to an Amazon Kinesis Firehose stream.
CfnTopicRule.HttpActionHeaderPropertyStructThe HTTP action header.
CfnTopicRule.HttpActionPropertyStructSend data to an HTTPS endpoint.
CfnTopicRule.HttpAuthorizationPropertyStructThe authorization method used to send messages.
CfnTopicRule.InfluxDBActionPropertyStruct
CfnTopicRule.InfluxDBBatchConfigPropertyStruct
CfnTopicRule.IotAnalyticsActionPropertyStructSends message data to an AWS IoT Analytics channel.
CfnTopicRule.IotEventsActionPropertyStructSends an input to an AWS IoT Events detector.
CfnTopicRule.IotSiteWiseActionPropertyStructDescribes an action to send data from an MQTT message that triggered the rule to AWS IoT SiteWise asset properties.
CfnTopicRule.KafkaActionHeaderPropertyStructSpecifies a Kafka header using key-value pairs when you create a Rule’s Kafka Action.
CfnTopicRule.KafkaActionPropertyStructSend messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.
CfnTopicRule.KinesisActionPropertyStructDescribes an action to write data to an Amazon Kinesis stream.
CfnTopicRule.LambdaActionPropertyStructDescribes an action to invoke a Lambda function.
CfnTopicRule.LocationActionPropertyStructDescribes an action to send device location updates from an MQTT message to an Amazon Location tracker resource.
CfnTopicRule.OpenSearchActionPropertyStructDescribes an action that writes data to an Amazon OpenSearch Service domain.
CfnTopicRule.PutAssetPropertyValueEntryPropertyStructAn asset property value entry containing the following information.
CfnTopicRule.PutItemInputPropertyStructThe input for the DynamoActionVS action that specifies the DynamoDB table to which the message data will be written.
CfnTopicRule.RepublishActionHeadersPropertyStructSpecifies MQTT Version 5.0 headers information. For more information, see MQTT in the IoT Core Developer Guide.
CfnTopicRule.RepublishActionPropertyStructDescribes an action to republish to another topic.
CfnTopicRule.S3ActionPropertyStructDescribes an action to write data to an Amazon S3 bucket.
CfnTopicRule.SigV4AuthorizationPropertyStructFor more information, see Signature Version 4 signing process .
CfnTopicRule.SnsActionPropertyStructDescribes an action to publish to an Amazon SNS topic.
CfnTopicRule.SqsActionPropertyStructDescribes an action to publish data to an Amazon SQS queue.
CfnTopicRule.StepFunctionsActionPropertyStructStarts execution of a Step Functions state machine.
CfnTopicRule.TimestampPropertyStructDescribes how to interpret an application-defined timestamp value from an MQTT message payload and the precision of that value.
CfnTopicRule.TimestreamActionPropertyStructDescribes an action that writes records into an Amazon Timestream table.
CfnTopicRule.TimestreamDimensionPropertyStructMetadata attributes of the time series that are written in each measure record.
CfnTopicRule.TimestreamTimestampPropertyStructThe value to use for the entry's timestamp.
CfnTopicRule.TopicRulePayloadPropertyStructDescribes a rule.
CfnTopicRule.UserPropertyPropertyStructA key-value pair that you define in the header.
CfnTopicRuleDestination.HttpUrlDestinationSummaryPropertyStructHTTP URL destination properties.
CfnTopicRuleDestination.InfluxDBDestinationPropertiesPropertyStruct
CfnTopicRuleDestination.VpcDestinationPropertiesPropertyStructThe properties of a virtual private cloud (VPC) destination.
CfnTopicRuleDestinationPropsStructProperties for defining a CfnTopicRuleDestination.
CfnTopicRulePropsStructProperties for defining a CfnTopicRule.