AWS IoT Construct Library
This module is part of the AWS Cloud Development Kit project.
import * as iot from 'aws-cdk-lib/aws-iot';
import aws_cdk.aws_iot as iot
import software.amazon.awscdk.services.iot.*;
using Amazon.CDK.AWS.IoT;
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:
- Search Construct Hub for IoT construct libraries
- Use the automatically generated L1 constructs, in the same way you would use the CloudFormation AWS::IoT resources directly.
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:
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
Constructs (L1)
CfnAccountAuditConfigurationConstruct (L1)
Use theAWS::IoT::AccountAuditConfigurationresource 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 theAWS::IoT::Certificateresource 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 theAWS::IoT::CustomMetricresource to define a custom metric published by your devices to Device Defender.CfnDimensionConstruct (L1)
Use theAWS::IoT::Dimensionto 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 theAWS::IoT::FleetMetricresource 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.CfnOTAUpdateConstruct (L1)
Creates an IoT OTA update on a target group of things or groups.CfnPolicyConstruct (L1)
Use theAWS::IoT::Policyresource to declare an AWS IoT policy.CfnPolicyPrincipalAttachmentConstruct (L1)
Use theAWS::IoT::PolicyPrincipalAttachmentresource 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 theAWS::IoT::ScheduledAuditresource to create a scheduled audit that is run at a specified time interval.CfnSecurityProfileConstruct (L1)
Use theAWS::IoT::SecurityProfileresource to create a Device Defender security profile.CfnSoftwarePackageConstruct (L1)
Use theAWS::IoT::SoftwarePackageresource to create a software package.CfnSoftwarePackageVersionConstruct (L1)
Use theAWS::IoT::SoftwarePackageVersionresource to create a software package version.CfnStreamConstruct (L1)
Resource Type definition for AWS IoT Stream.CfnThingConstruct (L1)
Use theAWS::IoT::Thingresource to declare an AWS IoT thing.CfnThingGroupConstruct (L1)
Creates a new thing group.CfnThingPrincipalAttachmentConstruct (L1)
Use theAWS::IoT::ThingPrincipalAttachmentresource to attach a principal (an X.509 certificate or another credential) to a thing.CfnThingTypeConstruct (L1)
Creates a new thing type.CfnTopicRuleConstruct (L1)
Use theAWS::IoT::TopicRuleresource to declare an AWS IoT rule.CfnTopicRuleDestinationConstruct (L1)
A topic rule destination.
Structs
CfnAccountAuditConfiguration.StructAuditCheckConfigurationProperty
Which audit checks are enabled and disabled for this account.CfnAccountAuditConfiguration.StructAuditCheckConfigurationsProperty
The types of audit checks that can be performed.CfnAccountAuditConfiguration.StructAudit Notification Target Configurations Property
The configuration of the audit notification target.CfnAccountAuditConfiguration.StructAuditNotificationTargetProperty
Information about the targets to which audit notifications are sent.CfnAccountAuditConfiguration.StructCert Age Check Custom Configuration Property
Configuration structure containing settings for the device certificate age check.CfnAccountAuditConfiguration.StructDevice Cert Age Audit Check Configuration Property
Configuration for the device certificate age audit check.CfnStructAccount Audit Configuration Props
Properties for defining aCfnAccountAuditConfiguration.CfnAuthorizerPropsStruct
Properties for defining aCfnAuthorizer.CfnBillingGroup.StructBillingGroupPropertiesProperty
The properties of a billing group.CfnBillingGroupPropsStruct
Properties for defining aCfnBillingGroup.CfnCACertificate.StructRegistrationConfigProperty
The registration configuration.CfnCACertificatePropsStruct
Properties for defining aCfnCACertificate.CfnCertificatePropsStruct
Properties for defining aCfnCertificate.CfnCertificateProviderPropsStruct
Properties for defining aCfnCertificateProvider.CfnCommand.StructAws Json Substitution Command Preprocessor Config Property CfnCommand.StructCommandParameterProperty CfnCommand.StructCommand Parameter Value Comparison Operand Property CfnCommand.StructCommand Parameter Value Condition Property CfnCommand.StructCommand Parameter Value Number Range Property CfnCommand.StructCommandParameterValueProperty CfnCommand.StructCommandPayloadProperty CfnCommand.StructCommandPreprocessorProperty CfnCommandPropsStruct
Properties for defining aCfnCommand.CfnCustomMetricPropsStruct
Properties for defining aCfnCustomMetric.CfnDimensionPropsStruct
Properties for defining aCfnDimension.CfnDomainConfiguration.StructAuthorizerConfigProperty
An object that specifies the authorization service for a domain.CfnDomainConfiguration.StructClientCertificateConfigProperty
An object that specifies the client certificate configuration for a domain.CfnDomainConfiguration.StructServerCertificateConfigProperty
The server certificate configuration.CfnDomainConfiguration.StructServerCertificateSummaryProperty
An object that contains information about a server certificate.CfnDomainConfiguration.StructTlsConfigProperty
An object that specifies the TLS configuration for a domain.CfnDomainConfigurationPropsStruct
Properties for defining aCfnDomainConfiguration.CfnEncryptionConfiguration.StructConfigurationDetailsProperty
The encryption configuration details that include the status information of the AWS Key Management Service ( AWS ) key and the AWS access role.CfnEncryptionConfigurationPropsStruct
Properties for defining aCfnEncryptionConfiguration.CfnFleetMetric.StructAggregationTypeProperty
The type of aggregation queries.CfnFleetMetricPropsStruct
Properties for defining aCfnFleetMetric.CfnJob.AbortConfigPropertyStruct
The criteria that determine when and how a job abort takes place.CfnJob.AbortCriteriaPropertyStruct
The criteria that determine when and how a job abort takes place.CfnJob.StructExponentialRolloutRateProperty
Allows you to create an exponential rate of rollout for a job.CfnJob.StructJobExecutionsRetryConfigProperty
The configuration that determines how many retries are allowed for each failure type for a job.CfnJob.StructJob Executions Rollout Config Property
Allows you to create a staged rollout of a job.CfnJob.MaintenanceWindowPropertyStruct
An 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.StructPresignedUrlConfigProperty
Configuration for pre-signed S3 URLs.CfnJob.StructRateIncreaseCriteriaProperty
Allows you to define a criteria to initiate the increase in rate of rollout for a job.CfnJob.RetryCriteriaPropertyStruct
The criteria that determines how many retries are allowed for each failure type for a job.CfnJob.SchedulingConfigPropertyStruct
Specifies the date and time that a job will begin the rollout of the job document to all devices in the target group.CfnJob.TimeoutConfigPropertyStruct
Specifies the amount of time each device has to finish its execution of the job.CfnJobPropsStruct
Properties for defining aCfnJob.CfnJobTemplate.StructAbortConfigProperty
The criteria that determine when and how a job abort takes place.CfnJobTemplate.StructAbortCriteriaProperty
The criteria that determine when and how a job abort takes place.CfnJobTemplate.StructExponentialRolloutRateProperty
Allows you to create an exponential rate of rollout for a job.CfnJobTemplate.StructJobExecutionsRetryConfigProperty
The configuration that determines how many retries are allowed for each failure type for a job.CfnJobTemplate.StructJob Executions Rollout Config Property
Allows you to create a staged rollout of a job.CfnJobTemplate.StructMaintenanceWindowProperty
An optional configuration within theSchedulingConfigto 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.StructPresignedUrlConfigProperty
Configuration for pre-signed S3 URLs.CfnJobTemplate.StructRateIncreaseCriteriaProperty
Allows you to define a criteria to initiate the increase in rate of rollout for a job.CfnJobTemplate.StructRetryCriteriaProperty
The criteria that determines how many retries are allowed for each failure type for a job.CfnJobTemplate.StructTimeoutConfigProperty
Specifies the amount of time each device has to finish its execution of the job.CfnJobTemplatePropsStruct
Properties for defining aCfnJobTemplate.CfnLogging.StructEventConfigurationProperty
Configuration for event-based logging that specifies which event types to log and their logging settings.CfnLoggingPropsStruct
Properties for defining aCfnLogging.CfnMitigationAction.StructActionParamsProperty
Defines the type of action and the parameters for that action.CfnMitigationAction.StructAdd Things To Thing Group Params Property
Parameters used when defining a mitigation action that move a set of things to a thing group.CfnMitigationAction.StructEnableIoTLoggingParamsProperty
Parameters used when defining a mitigation action that enable AWS IoT Core logging.CfnMitigationAction.StructPublish Finding To Sns Params Property
Parameters to define a mitigation action that publishes findings to Amazon SNS.CfnMitigationAction.StructReplace Default Policy Version Params Property
Parameters to define a mitigation action that adds a blank policy to restrict permissions.CfnMitigationAction.StructUpdate CA Certificate Params Property
Parameters to define a mitigation action that changes the state of the CA certificate to inactive.CfnMitigationAction.StructUpdate Device Certificate Params Property
Parameters to define a mitigation action that changes the state of the device certificate to inactive.CfnMitigationActionPropsStruct
Properties for defining aCfnMitigationAction.CfnOTAUpdate.StructAwsJobAbortConfigProperty CfnOTAUpdate.StructAwsJobAbortCriteriaProperty CfnOTAUpdate.StructAws Job Executions Rollout Config Property CfnOTAUpdate.StructAws Job Exponential Rollout Rate Property CfnOTAUpdate.StructAwsJobPresignedUrlConfigProperty CfnOTAUpdate.StructAws Job Rate Increase Criteria Property CfnOTAUpdate.StructAwsJobTimeoutConfigProperty CfnOTAUpdate.StructCode Signing Certificate Chain Property CfnOTAUpdate.CodeSigningPropertyStructCfnOTAUpdate.StructCodeSigningSignatureProperty CfnOTAUpdate.StructCustomCodeSigningProperty CfnOTAUpdate.DestinationPropertyStructCfnOTAUpdate.StructFileLocationProperty CfnOTAUpdate.StructOTAUpdateFileProperty CfnOTAUpdate.StructS3DestinationProperty CfnOTAUpdate.S3LocationPropertyStructCfnOTAUpdate.StructSigningProfileParameterProperty CfnOTAUpdate.StructStartSigningJobParameterProperty CfnOTAUpdate.StreamPropertyStructCfnOTAUpdatePropsStruct
Properties for defining aCfnOTAUpdate.CfnStructPolicy Principal Attachment Props
Properties for defining aCfnPolicyPrincipalAttachment.CfnPolicyPropsStruct
Properties for defining aCfnPolicy.CfnProvisioningTemplate.StructProvisioningHookProperty
Structure that contains payloadVersion and targetArn.CfnProvisioningTemplatePropsStruct
Properties for defining aCfnProvisioningTemplate.CfnResourceSpecificLoggingPropsStruct
Properties for defining aCfnResourceSpecificLogging.CfnRoleAliasPropsStruct
Properties for defining aCfnRoleAlias.CfnScheduledAuditPropsStruct
Properties for defining aCfnScheduledAudit.CfnSecurityProfile.StructAlertTargetProperty
A structure containing the alert target ARN and the role ARN.CfnSecurityProfile.StructBehaviorCriteriaProperty
The criteria by which the behavior is determined to be normal.CfnSecurityProfile.StructBehaviorProperty
A Device Defender security profile behavior.CfnSecurityProfile.StructMachine Learning Detection Config Property
TheMachineLearningDetectionConfigproperty type controls confidence of the machine learning model.CfnSecurityProfile.StructMetricDimensionProperty
The dimension of the metric.CfnSecurityProfile.StructMetricsExportConfigProperty
Specifies the MQTT topic and role ARN required for metric export.CfnSecurityProfile.StructMetricToRetainProperty
The metric you want to retain.CfnSecurityProfile.StructMetricValueProperty
The value to be compared with themetric.CfnSecurityProfile.StructStatisticalThresholdProperty
A statistical ranking (percentile) that indicates a threshold value by which a behavior is determined to be in compliance or in violation of the behavior.CfnSecurityProfilePropsStruct
Properties for defining aCfnSecurityProfile.CfnSoftwarePackagePropsStruct
Properties for defining aCfnSoftwarePackage.CfnSoftwarePackageVersion.StructPackageVersionArtifactProperty
The artifact location of the package version.CfnSoftwarePackageVersion.StructS3LocationProperty
The Amazon S3 location.CfnSoftwarePackageVersion.StructSbomProperty
The sbom zip archive location of the package version.CfnSoftwarePackageVersionPropsStruct
Properties for defining aCfnSoftwarePackageVersion.CfnStream.S3LocationPropertyStruct
The location of the file in S3.CfnStream.StreamFilePropertyStruct
Represents a file to stream.CfnStreamPropsStruct
Properties for defining aCfnStream.CfnThing.StructAttributePayloadProperty
The AttributePayload property specifies up to three attributes for an AWS IoT as key-value pairs.CfnThingGroup.StructAttributePayloadProperty
The attribute payload.CfnThingGroup.StructThingGroupPropertiesProperty
Thing group properties.CfnThingGroupPropsStruct
Properties for defining aCfnThingGroup.CfnThingPrincipalAttachmentPropsStruct
Properties for defining aCfnThingPrincipalAttachment.CfnThingPropsStruct
Properties for defining aCfnThing.CfnThingType.StructMqtt5ConfigurationProperty
The configuration to add user-defined properties to enrich MQTT 5 messages.CfnThingType.StructPropagatingAttributeProperty
An object that represents the connection attribute, the thing attribute, and the MQTT 5 user property key.CfnThingType.StructThingTypePropertiesProperty
The ThingTypeProperties contains information about the thing type including: a thing type description, and a list of searchable thing attribute names.CfnThingTypePropsStruct
Properties for defining aCfnThingType.CfnTopicRule.ActionPropertyStruct
Describes the actions associated with a rule.CfnTopicRule.StructAssetPropertyTimestampProperty
An asset property timestamp entry containing the following information.CfnTopicRule.StructAssetPropertyValueProperty
An asset property value entry containing the following information.CfnTopicRule.StructAssetPropertyVariantProperty
Contains an asset property value (of a single type).CfnTopicRule.BatchConfigPropertyStructCfnTopicRule.StructCloudwatchAlarmActionProperty
Describes an action that updates a CloudWatch alarm.CfnTopicRule.StructCloudwatchLogsActionProperty
Describes an action that updates a CloudWatch log.CfnTopicRule.StructCloudwatchMetricActionProperty
Describes an action that captures a CloudWatch metric.CfnTopicRule.StructDynamoDBActionProperty
Describes an action to write to a DynamoDB table.CfnTopicRule.StructDynamoDBv2ActionProperty
Describes an action to write to a DynamoDB table.CfnTopicRule.StructElasticsearchActionProperty
Describes an action that writes data to an Amazon OpenSearch Service domain.CfnTopicRule.StructFirehoseActionProperty
Describes an action that writes data to an Amazon Kinesis Firehose stream.CfnTopicRule.StructHttpActionHeaderProperty
The HTTP action header.CfnTopicRule.HttpActionPropertyStruct
Send data to an HTTPS endpoint.CfnTopicRule.StructHttpAuthorizationProperty
The authorization method used to send messages.CfnTopicRule.StructInfluxDBActionProperty CfnTopicRule.StructInfluxDBBatchConfigProperty CfnTopicRule.StructIotAnalyticsActionProperty
Sends message data to an AWS IoT Analytics channel.CfnTopicRule.StructIotEventsActionProperty
Sends an input to an AWS IoT Events detector.CfnTopicRule.StructIotSiteWiseActionProperty
Describes an action to send data from an MQTT message that triggered the rule to AWS IoT SiteWise asset properties.CfnTopicRule.StructKafkaActionHeaderProperty
Specifies a Kafka header using key-value pairs when you create a Rule’s Kafka Action.CfnTopicRule.KafkaActionPropertyStruct
Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.CfnTopicRule.StructKinesisActionProperty
Describes an action to write data to an Amazon Kinesis stream.CfnTopicRule.StructLambdaActionProperty
Describes an action to invoke a Lambda function.CfnTopicRule.StructLocationActionProperty
Describes an action to send device location updates from an MQTT message to an Amazon Location tracker resource.CfnTopicRule.StructOpenSearchActionProperty
Describes an action that writes data to an Amazon OpenSearch Service domain.CfnTopicRule.StructPut Asset Property Value Entry Property
An asset property value entry containing the following information.CfnTopicRule.StructPutItemInputProperty
The input for the DynamoActionVS action that specifies the DynamoDB table to which the message data will be written.CfnTopicRule.StructRepublishActionHeadersProperty
Specifies MQTT Version 5.0 headers information. For more information, see MQTT in the IoT Core Developer Guide.CfnTopicRule.StructRepublishActionProperty
Describes an action to republish to another topic.CfnTopicRule.S3ActionPropertyStruct
Describes an action to write data to an Amazon S3 bucket.CfnTopicRule.StructSigV4AuthorizationProperty
For more information, see Signature Version 4 signing process .CfnTopicRule.SnsActionPropertyStruct
Describes an action to publish to an Amazon SNS topic.CfnTopicRule.SqsActionPropertyStruct
Describes an action to publish data to an Amazon SQS queue.CfnTopicRule.StructStepFunctionsActionProperty
Starts execution of a Step Functions state machine.CfnTopicRule.TimestampPropertyStruct
Describes how to interpret an application-defined timestamp value from an MQTT message payload and the precision of that value.CfnTopicRule.StructTimestreamActionProperty
Describes an action that writes records into an Amazon Timestream table.CfnTopicRule.StructTimestreamDimensionProperty
Metadata attributes of the time series that are written in each measure record.CfnTopicRule.StructTimestreamTimestampProperty
The value to use for the entry's timestamp.CfnTopicRule.StructTopicRulePayloadProperty
Describes a rule.CfnTopicRule.StructUserPropertyProperty
A key-value pair that you define in the header.CfnTopicRuleDestination.StructHttp Url Destination Summary Property
HTTP URL destination properties.CfnTopicRuleDestination.StructInflux DB Destination Properties Property CfnTopicRuleDestination.StructVpcDestinationPropertiesProperty
The properties of a virtual private cloud (VPC) destination.CfnTopicRuleDestinationPropsStruct
Properties for defining aCfnTopicRuleDestination.CfnTopicRulePropsStruct
Properties for defining aCfnTopicRule.