UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

953 lines 120 kB
import * as cdk from "../../core"; import * as constructs from "constructs"; import * as cfn_parse from "../../core/lib/helpers-internal"; /** * Creates an orchestration of data collection rules. * * The AWS IoT FleetWise Edge Agent software running in vehicles uses campaigns to decide how to collect and transfer data to the cloud. You create campaigns in the cloud. After you or your team approve campaigns, AWS IoT FleetWise automatically deploys them to vehicles. * * For more information, see [Campaigns](https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/campaigns.html) in the *AWS IoT FleetWise Developer Guide* . * * > Access to certain AWS IoT FleetWise features is currently gated. For more information, see [AWS Region and feature availability](https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleetwise-regions.html) in the *AWS IoT FleetWise Developer Guide* . * * @cloudformationResource AWS::IoTFleetWise::Campaign * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html */ export declare class CfnCampaign extends cdk.CfnResource implements cdk.IInspectable, cdk.ITaggable { /** * The CloudFormation resource type name for this resource class. */ static readonly CFN_RESOURCE_TYPE_NAME: string; /** * Build a CfnCampaign from CloudFormation properties * * A factory method that creates a new instance of this class from an object * containing the CloudFormation properties of this resource. * Used in the @aws-cdk/cloudformation-include module. * * @internal */ static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnCampaign; /** * The Amazon Resource Name (ARN) of the campaign. * * @cloudformationAttribute Arn */ readonly attrArn: string; /** * The time the campaign was created in seconds since epoch (January 1, 1970 at midnight UTC time). * * @cloudformationAttribute CreationTime */ readonly attrCreationTime: string; /** * The last time the campaign was modified. * * @cloudformationAttribute LastModificationTime */ readonly attrLastModificationTime: string; /** * The state of the campaign. The status can be one of: `CREATING` , `WAITING_FOR_APPROVAL` , `RUNNING` , and `SUSPENDED` . * * @cloudformationAttribute Status */ readonly attrStatus: string; /** * Specifies how to update a campaign. The action can be one of the following:. */ action?: string; /** * The data collection scheme associated with the campaign. */ collectionScheme: CfnCampaign.CollectionSchemeProperty | cdk.IResolvable; /** * Whether to compress signals before transmitting data to AWS IoT FleetWise . */ compression?: string; /** * The destination where the campaign sends data. */ dataDestinationConfigs?: Array<CfnCampaign.DataDestinationConfigProperty | cdk.IResolvable> | cdk.IResolvable; /** * A list of vehicle attributes to associate with a campaign. */ dataExtraDimensions?: Array<string>; /** * The data partitions associated with the signals collected from the vehicle. */ dataPartitions?: Array<CfnCampaign.DataPartitionProperty | cdk.IResolvable> | cdk.IResolvable; /** * The description of the campaign. */ description?: string; /** * Option for a vehicle to send diagnostic trouble codes to AWS IoT FleetWise . */ diagnosticsMode?: string; /** * The time the campaign expires, in seconds since epoch (January 1, 1970 at midnight UTC time). */ expiryTime?: string; /** * The name of a campaign. */ name: string; /** * How long (in milliseconds) to collect raw data after a triggering event initiates the collection. */ postTriggerCollectionDuration?: number; /** * A number indicating the priority of one campaign over another campaign for a certain vehicle or fleet. */ priority?: number; /** * The Amazon Resource Name (ARN) of the signal catalog associated with the campaign. */ signalCatalogArn: string; /** * A list of information about signals to collect. */ signalsToCollect?: Array<cdk.IResolvable | CfnCampaign.SignalInformationProperty> | cdk.IResolvable; /** * A list of information about signals to fetch. */ signalsToFetch?: Array<cdk.IResolvable | CfnCampaign.SignalFetchInformationProperty> | cdk.IResolvable; /** * Whether to store collected data after a vehicle lost a connection with the cloud. */ spoolingMode?: string; /** * The time, in milliseconds, to deliver a campaign after it was approved. If it's not specified, `0` is used. */ startTime?: string; /** * Tag Manager which manages the tags for this resource */ readonly tags: cdk.TagManager; /** * Metadata that can be used to manage the campaign. */ tagsRaw?: Array<cdk.CfnTag>; /** * The Amazon Resource Name (ARN) of a vehicle or fleet to which the campaign is deployed. */ targetArn: string; /** * @param scope Scope in which this resource is defined * @param id Construct identifier for this resource (unique in its scope) * @param props Resource properties */ constructor(scope: constructs.Construct, id: string, props: CfnCampaignProps); protected get cfnProperties(): Record<string, any>; /** * Examines the CloudFormation resource and discloses attributes * * @param inspector tree inspector to collect and process attributes */ inspect(inspector: cdk.TreeInspector): void; protected renderProperties(props: Record<string, any>): Record<string, any>; } export declare namespace CfnCampaign { /** * Information about a signal. * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalinformation.html */ interface SignalInformationProperty { /** * The ID of the data partition this signal is associated with. * * The ID must match one of the IDs provided in `dataPartitions` . This is accomplished either by specifying a particular data partition ID or by using `default` for an established default partition. You can establish a default partition in the `DataPartition` data type. * * > If you upload a signal as a condition for a campaign's data partition, the same signal must be included in `signalsToCollect` . > Access to certain AWS IoT FleetWise features is currently gated. For more information, see [AWS Region and feature availability](https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleetwise-regions.html) in the *AWS IoT FleetWise Developer Guide* . * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalinformation.html#cfn-iotfleetwise-campaign-signalinformation-datapartitionid */ readonly dataPartitionId?: string; /** * The maximum number of samples to collect. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalinformation.html#cfn-iotfleetwise-campaign-signalinformation-maxsamplecount */ readonly maxSampleCount?: number; /** * The minimum duration of time (in milliseconds) between two triggering events to collect data. * * > If a signal changes often, you might want to collect data at a slower rate. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalinformation.html#cfn-iotfleetwise-campaign-signalinformation-minimumsamplingintervalms */ readonly minimumSamplingIntervalMs?: number; /** * The name of the signal. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalinformation.html#cfn-iotfleetwise-campaign-signalinformation-name */ readonly name: string; } /** * The destination where the AWS IoT FleetWise campaign sends data. * * You can send data to be stored in Amazon S3 or Amazon Timestream . * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-datadestinationconfig.html */ interface DataDestinationConfigProperty { /** * The MQTT topic to which the AWS IoT FleetWise campaign routes data. * * > Access to certain AWS IoT FleetWise features is currently gated. For more information, see [AWS Region and feature availability](https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleetwise-regions.html) in the *AWS IoT FleetWise Developer Guide* . * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-datadestinationconfig.html#cfn-iotfleetwise-campaign-datadestinationconfig-mqtttopicconfig */ readonly mqttTopicConfig?: cdk.IResolvable | CfnCampaign.MqttTopicConfigProperty; /** * The Amazon S3 bucket where the AWS IoT FleetWise campaign sends data. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-datadestinationconfig.html#cfn-iotfleetwise-campaign-datadestinationconfig-s3config */ readonly s3Config?: cdk.IResolvable | CfnCampaign.S3ConfigProperty; /** * The Amazon Timestream table where the campaign sends data. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-datadestinationconfig.html#cfn-iotfleetwise-campaign-datadestinationconfig-timestreamconfig */ readonly timestreamConfig?: cdk.IResolvable | CfnCampaign.TimestreamConfigProperty; } /** * The Amazon S3 bucket where the AWS IoT FleetWise campaign sends data. * * Amazon S3 is an object storage service that stores data as objects within buckets. For more information, see [Creating, configuring, and working with Amazon S3 buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/creating-buckets-s3.html) in the *Amazon Simple Storage Service User Guide* . * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-s3config.html */ interface S3ConfigProperty { /** * The Amazon Resource Name (ARN) of the Amazon S3 bucket. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-s3config.html#cfn-iotfleetwise-campaign-s3config-bucketarn */ readonly bucketArn: string; /** * Specify the format that files are saved in the Amazon S3 bucket. * * You can save files in an Apache Parquet or JSON format. * * - Parquet - Store data in a columnar storage file format. Parquet is optimal for fast data retrieval and can reduce costs. This option is selected by default. * - JSON - Store data in a standard text-based JSON file format. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-s3config.html#cfn-iotfleetwise-campaign-s3config-dataformat */ readonly dataFormat?: string; /** * Enter an S3 bucket prefix. * * The prefix is the string of characters after the bucket name and before the object name. You can use the prefix to organize data stored in Amazon S3 buckets. For more information, see [Organizing objects using prefixes](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html) in the *Amazon Simple Storage Service User Guide* . * * By default, AWS IoT FleetWise sets the prefix `processed-data/year=YY/month=MM/date=DD/hour=HH/` (in UTC) to data it delivers to Amazon S3 . You can enter a prefix to append it to this default prefix. For example, if you enter the prefix `vehicles` , the prefix will be `vehicles/processed-data/year=YY/month=MM/date=DD/hour=HH/` . * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-s3config.html#cfn-iotfleetwise-campaign-s3config-prefix */ readonly prefix?: string; /** * By default, stored data is compressed as a .gzip file. Compressed files have a reduced file size, which can optimize the cost of data storage. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-s3config.html#cfn-iotfleetwise-campaign-s3config-storagecompressionformat */ readonly storageCompressionFormat?: string; } /** * The Amazon Timestream table where the AWS IoT FleetWise campaign sends data. * * Timestream stores and organizes data to optimize query processing time and to reduce storage costs. For more information, see [Data modeling](https://docs.aws.amazon.com/timestream/latest/developerguide/data-modeling.html) in the *Amazon Timestream Developer Guide* . * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-timestreamconfig.html */ interface TimestreamConfigProperty { /** * The Amazon Resource Name (ARN) of the task execution role that grants AWS IoT FleetWise permission to deliver data to the Amazon Timestream table. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-timestreamconfig.html#cfn-iotfleetwise-campaign-timestreamconfig-executionrolearn */ readonly executionRoleArn: string; /** * The Amazon Resource Name (ARN) of the Amazon Timestream table. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-timestreamconfig.html#cfn-iotfleetwise-campaign-timestreamconfig-timestreamtablearn */ readonly timestreamTableArn: string; } /** * The MQTT topic to which the AWS IoT FleetWise campaign routes data. * * For more information, see [Device communication protocols](https://docs.aws.amazon.com/iot/latest/developerguide/protocols.html) in the *AWS IoT Core Developer Guide* . * * > Access to certain AWS IoT FleetWise features is currently gated. For more information, see [AWS Region and feature availability](https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleetwise-regions.html) in the *AWS IoT FleetWise Developer Guide* . * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-mqtttopicconfig.html */ interface MqttTopicConfigProperty { /** * The ARN of the role that grants AWS IoT FleetWise permission to access and act on messages sent to the MQTT topic. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-mqtttopicconfig.html#cfn-iotfleetwise-campaign-mqtttopicconfig-executionrolearn */ readonly executionRoleArn: string; /** * The ARN of the MQTT topic. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-mqtttopicconfig.html#cfn-iotfleetwise-campaign-mqtttopicconfig-mqtttopicarn */ readonly mqttTopicArn: string; } /** * Specifies what data to collect and how often or when to collect it. * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-collectionscheme.html */ interface CollectionSchemeProperty { /** * Information about a collection scheme that uses a simple logical expression to recognize what data to collect. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-collectionscheme.html#cfn-iotfleetwise-campaign-collectionscheme-conditionbasedcollectionscheme */ readonly conditionBasedCollectionScheme?: CfnCampaign.ConditionBasedCollectionSchemeProperty | cdk.IResolvable; /** * Information about a collection scheme that uses a time period to decide how often to collect data. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-collectionscheme.html#cfn-iotfleetwise-campaign-collectionscheme-timebasedcollectionscheme */ readonly timeBasedCollectionScheme?: cdk.IResolvable | CfnCampaign.TimeBasedCollectionSchemeProperty; } /** * Information about a collection scheme that uses a time period to decide how often to collect data. * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-timebasedcollectionscheme.html */ interface TimeBasedCollectionSchemeProperty { /** * The time period (in milliseconds) to decide how often to collect data. * * For example, if the time period is `60000` , the Edge Agent software collects data once every minute. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-timebasedcollectionscheme.html#cfn-iotfleetwise-campaign-timebasedcollectionscheme-periodms */ readonly periodMs: number; } /** * Information about a collection scheme that uses a simple logical expression to recognize what data to collect. * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-conditionbasedcollectionscheme.html */ interface ConditionBasedCollectionSchemeProperty { /** * Specifies the version of the conditional expression language. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-conditionbasedcollectionscheme.html#cfn-iotfleetwise-campaign-conditionbasedcollectionscheme-conditionlanguageversion */ readonly conditionLanguageVersion?: number; /** * The logical expression used to recognize what data to collect. * * For example, `$variable.Vehicle.OutsideAirTemperature >= 105.0` . * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-conditionbasedcollectionscheme.html#cfn-iotfleetwise-campaign-conditionbasedcollectionscheme-expression */ readonly expression: string; /** * The minimum duration of time between two triggering events to collect data, in milliseconds. * * > If a signal changes often, you might want to collect data at a slower rate. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-conditionbasedcollectionscheme.html#cfn-iotfleetwise-campaign-conditionbasedcollectionscheme-minimumtriggerintervalms */ readonly minimumTriggerIntervalMs?: number; /** * Whether to collect data for all triggering events ( `ALWAYS` ). * * Specify ( `RISING_EDGE` ), or specify only when the condition first evaluates to false. For example, triggering on "AirbagDeployed"; Users aren't interested on triggering when the airbag is already exploded; they only care about the change from not deployed => deployed. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-conditionbasedcollectionscheme.html#cfn-iotfleetwise-campaign-conditionbasedcollectionscheme-triggermode */ readonly triggerMode?: string; } /** * Information about the signal to be fetched. * * > Access to certain AWS IoT FleetWise features is currently gated. For more information, see [AWS Region and feature availability](https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleetwise-regions.html) in the *AWS IoT FleetWise Developer Guide* . * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalfetchinformation.html */ interface SignalFetchInformationProperty { /** * The actions to be performed by the signal fetch. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalfetchinformation.html#cfn-iotfleetwise-campaign-signalfetchinformation-actions */ readonly actions: Array<string>; /** * The version of the condition language used. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalfetchinformation.html#cfn-iotfleetwise-campaign-signalfetchinformation-conditionlanguageversion */ readonly conditionLanguageVersion?: number; /** * The fully qualified name of the signal to be fetched. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalfetchinformation.html#cfn-iotfleetwise-campaign-signalfetchinformation-fullyqualifiedname */ readonly fullyQualifiedName: string; /** * The configuration of the signal fetch operation. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalfetchinformation.html#cfn-iotfleetwise-campaign-signalfetchinformation-signalfetchconfig */ readonly signalFetchConfig: cdk.IResolvable | CfnCampaign.SignalFetchConfigProperty; } /** * The configuration of the signal fetch operation. * * > Access to certain AWS IoT FleetWise features is currently gated. For more information, see [AWS Region and feature availability](https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleetwise-regions.html) in the *AWS IoT FleetWise Developer Guide* . * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalfetchconfig.html */ interface SignalFetchConfigProperty { /** * The configuration of a condition-based signal fetch operation. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalfetchconfig.html#cfn-iotfleetwise-campaign-signalfetchconfig-conditionbased */ readonly conditionBased?: CfnCampaign.ConditionBasedSignalFetchConfigProperty | cdk.IResolvable; /** * The configuration of a time-based signal fetch operation. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-signalfetchconfig.html#cfn-iotfleetwise-campaign-signalfetchconfig-timebased */ readonly timeBased?: cdk.IResolvable | CfnCampaign.TimeBasedSignalFetchConfigProperty; } /** * Used to configure a frequency-based vehicle signal fetch. * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-timebasedsignalfetchconfig.html */ interface TimeBasedSignalFetchConfigProperty { /** * The frequency with which the signal fetch will be executed. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-timebasedsignalfetchconfig.html#cfn-iotfleetwise-campaign-timebasedsignalfetchconfig-executionfrequencyms */ readonly executionFrequencyMs: number; } /** * Specifies the condition under which a signal fetch occurs. * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-conditionbasedsignalfetchconfig.html */ interface ConditionBasedSignalFetchConfigProperty { /** * The condition that must be satisfied to trigger a signal fetch. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-conditionbasedsignalfetchconfig.html#cfn-iotfleetwise-campaign-conditionbasedsignalfetchconfig-conditionexpression */ readonly conditionExpression: string; /** * Indicates the mode in which the signal fetch is triggered. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-conditionbasedsignalfetchconfig.html#cfn-iotfleetwise-campaign-conditionbasedsignalfetchconfig-triggermode */ readonly triggerMode: string; } /** * The configuration for signal data storage and upload options. * * You can only specify these options when the campaign's spooling mode is `TO_DISK` . * * > Access to certain AWS IoT FleetWise features is currently gated. For more information, see [AWS Region and feature availability](https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleetwise-regions.html) in the *AWS IoT FleetWise Developer Guide* . * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-datapartition.html */ interface DataPartitionProperty { /** * The ID of the data partition. * * The data partition ID must be unique within a campaign. You can establish a data partition as the default partition for a campaign by using `default` as the ID. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-datapartition.html#cfn-iotfleetwise-campaign-datapartition-id */ readonly id: string; /** * The storage options for a data partition. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-datapartition.html#cfn-iotfleetwise-campaign-datapartition-storageoptions */ readonly storageOptions: CfnCampaign.DataPartitionStorageOptionsProperty | cdk.IResolvable; /** * The upload options for the data partition. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-datapartition.html#cfn-iotfleetwise-campaign-datapartition-uploadoptions */ readonly uploadOptions?: CfnCampaign.DataPartitionUploadOptionsProperty | cdk.IResolvable; } /** * Size, time, and location options for the data partition. * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-datapartitionstorageoptions.html */ interface DataPartitionStorageOptionsProperty { /** * The maximum storage size of the data stored in the data partition. * * > Newer data overwrites older data when the partition reaches the maximum size. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-datapartitionstorageoptions.html#cfn-iotfleetwise-campaign-datapartitionstorageoptions-maximumsize */ readonly maximumSize: cdk.IResolvable | CfnCampaign.StorageMaximumSizeProperty; /** * The amount of time that data in this partition will be kept on disk. * * - After the designated amount of time passes, the data can be removed, but it's not guaranteed to be removed. * - Before the time expires, data in this partition can still be deleted if the partition reaches its configured maximum size. * - Newer data will overwrite older data when the partition reaches the maximum size. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-datapartitionstorageoptions.html#cfn-iotfleetwise-campaign-datapartitionstorageoptions-minimumtimetolive */ readonly minimumTimeToLive: cdk.IResolvable | CfnCampaign.StorageMinimumTimeToLiveProperty; /** * The folder name for the data partition under the campaign storage folder. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-datapartitionstorageoptions.html#cfn-iotfleetwise-campaign-datapartitionstorageoptions-storagelocation */ readonly storageLocation: string; } /** * The maximum storage size for the data partition. * * > Access to certain AWS IoT FleetWise features is currently gated. For more information, see [AWS Region and feature availability](https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleetwise-regions.html) in the *AWS IoT FleetWise Developer Guide* . * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-storagemaximumsize.html */ interface StorageMaximumSizeProperty { /** * The data type of the data to store. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-storagemaximumsize.html#cfn-iotfleetwise-campaign-storagemaximumsize-unit */ readonly unit: string; /** * The maximum amount of time to store data. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-storagemaximumsize.html#cfn-iotfleetwise-campaign-storagemaximumsize-value */ readonly value: number; } /** * Information about the minimum amount of time that data will be kept. * * > Access to certain AWS IoT FleetWise features is currently gated. For more information, see [AWS Region and feature availability](https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleetwise-regions.html) in the *AWS IoT FleetWise Developer Guide* . * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-storageminimumtimetolive.html */ interface StorageMinimumTimeToLiveProperty { /** * The time increment type. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-storageminimumtimetolive.html#cfn-iotfleetwise-campaign-storageminimumtimetolive-unit */ readonly unit: string; /** * The minimum amount of time to store the data. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-storageminimumtimetolive.html#cfn-iotfleetwise-campaign-storageminimumtimetolive-value */ readonly value: number; } /** * The upload options for the data partition. * * If upload options are specified, you must also specify storage options. See [DataPartitionStorageOptions](https://docs.aws.amazon.com/iot-fleetwise/latest/APIReference/API_DataPartitionStorageOptions.html) . * * > Access to certain AWS IoT FleetWise features is currently gated. For more information, see [AWS Region and feature availability](https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleetwise-regions.html) in the *AWS IoT FleetWise Developer Guide* . * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-datapartitionuploadoptions.html */ interface DataPartitionUploadOptionsProperty { /** * The version of the condition language. * * Defaults to the most recent condition language version. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-datapartitionuploadoptions.html#cfn-iotfleetwise-campaign-datapartitionuploadoptions-conditionlanguageversion */ readonly conditionLanguageVersion?: number; /** * The logical expression used to recognize what data to collect. * * For example, `$variable.`Vehicle.OutsideAirTemperature` >= 105.0` . * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-campaign-datapartitionuploadoptions.html#cfn-iotfleetwise-campaign-datapartitionuploadoptions-expression */ readonly expression: string; } } /** * Properties for defining a `CfnCampaign` * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html */ export interface CfnCampaignProps { /** * Specifies how to update a campaign. The action can be one of the following:. * * - `APPROVE` - To approve delivering a data collection scheme to vehicles. * - `SUSPEND` - To suspend collecting signal data. The campaign is deleted from vehicles and all vehicles in the suspended campaign will stop sending data. * - `RESUME` - To reactivate the `SUSPEND` campaign. The campaign is redeployed to all vehicles and the vehicles will resume sending data. * - `UPDATE` - To update a campaign. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-action */ readonly action?: string; /** * The data collection scheme associated with the campaign. * * You can specify a scheme that collects data based on time or an event. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-collectionscheme */ readonly collectionScheme: CfnCampaign.CollectionSchemeProperty | cdk.IResolvable; /** * Whether to compress signals before transmitting data to AWS IoT FleetWise . * * If you don't want to compress the signals, use `OFF` . If it's not specified, `SNAPPY` is used. * * Default: `SNAPPY` * * @default - "OFF" * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-compression */ readonly compression?: string; /** * The destination where the campaign sends data. * * You can choose to send data to be stored in Amazon S3 or Amazon Timestream . * * Amazon S3 optimizes the cost of data storage and provides additional mechanisms to use vehicle data, such as data lakes, centralized data storage, data processing pipelines, and analytics. AWS IoT FleetWise supports at-least-once file delivery to S3. Your vehicle data is stored on multiple AWS IoT FleetWise servers for redundancy and high availability. * * You can use Amazon Timestream to access and analyze time series data, and Timestream to query vehicle data so that you can identify trends and patterns. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-datadestinationconfigs */ readonly dataDestinationConfigs?: Array<CfnCampaign.DataDestinationConfigProperty | cdk.IResolvable> | cdk.IResolvable; /** * A list of vehicle attributes to associate with a campaign. * * Enrich the data with specified vehicle attributes. For example, add `make` and `model` to the campaign, and AWS IoT FleetWise will associate the data with those attributes as dimensions in Amazon Timestream . You can then query the data against `make` and `model` . * * Default: An empty array * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-dataextradimensions */ readonly dataExtraDimensions?: Array<string>; /** * The data partitions associated with the signals collected from the vehicle. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-datapartitions */ readonly dataPartitions?: Array<CfnCampaign.DataPartitionProperty | cdk.IResolvable> | cdk.IResolvable; /** * The description of the campaign. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-description */ readonly description?: string; /** * Option for a vehicle to send diagnostic trouble codes to AWS IoT FleetWise . * * If you want to send diagnostic trouble codes, use `SEND_ACTIVE_DTCS` . If it's not specified, `OFF` is used. * * Default: `OFF` * * @default - "OFF" * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-diagnosticsmode */ readonly diagnosticsMode?: string; /** * The time the campaign expires, in seconds since epoch (January 1, 1970 at midnight UTC time). * * Vehicle data isn't collected after the campaign expires. * * Default: 253402214400 (December 31, 9999, 00:00:00 UTC) * * @default - "253402214400" * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-expirytime */ readonly expiryTime?: string; /** * The name of a campaign. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-name */ readonly name: string; /** * How long (in milliseconds) to collect raw data after a triggering event initiates the collection. * * If it's not specified, `0` is used. * * Default: `0` * * @default - 0 * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-posttriggercollectionduration */ readonly postTriggerCollectionDuration?: number; /** * A number indicating the priority of one campaign over another campaign for a certain vehicle or fleet. * * A campaign with the lowest value is deployed to vehicles before any other campaigns. If it's not specified, `0` is used. * * Default: `0` * * @default - 0 * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-priority */ readonly priority?: number; /** * The Amazon Resource Name (ARN) of the signal catalog associated with the campaign. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-signalcatalogarn */ readonly signalCatalogArn: string; /** * A list of information about signals to collect. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-signalstocollect */ readonly signalsToCollect?: Array<cdk.IResolvable | CfnCampaign.SignalInformationProperty> | cdk.IResolvable; /** * A list of information about signals to fetch. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-signalstofetch */ readonly signalsToFetch?: Array<cdk.IResolvable | CfnCampaign.SignalFetchInformationProperty> | cdk.IResolvable; /** * Whether to store collected data after a vehicle lost a connection with the cloud. * * After a connection is re-established, the data is automatically forwarded to AWS IoT FleetWise . If you want to store collected data when a vehicle loses connection with the cloud, use `TO_DISK` . If it's not specified, `OFF` is used. * * Default: `OFF` * * @default - "OFF" * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-spoolingmode */ readonly spoolingMode?: string; /** * The time, in milliseconds, to deliver a campaign after it was approved. If it's not specified, `0` is used. * * Default: `0` * * @default - "0" * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-starttime */ readonly startTime?: string; /** * Metadata that can be used to manage the campaign. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-tags */ readonly tags?: Array<cdk.CfnTag>; /** * The Amazon Resource Name (ARN) of a vehicle or fleet to which the campaign is deployed. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-campaign.html#cfn-iotfleetwise-campaign-targetarn */ readonly targetArn: string; } /** * Creates the decoder manifest associated with a model manifest. To create a decoder manifest, the following must be true:. * * - Every signal decoder has a unique name. * - Each signal decoder is associated with a network interface. * - Each network interface has a unique ID. * - The signal decoders are specified in the model manifest. * * For more information, see [Decoder manifests](https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/decoder-manifests.html) in the *AWS IoT FleetWise Developer Guide* . * * > Access to certain AWS IoT FleetWise features is currently gated. For more information, see [AWS Region and feature availability](https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleetwise-regions.html) in the *AWS IoT FleetWise Developer Guide* . * * @cloudformationResource AWS::IoTFleetWise::DecoderManifest * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotfleetwise-decodermanifest.html */ export declare class CfnDecoderManifest extends cdk.CfnResource implements cdk.IInspectable, cdk.ITaggable { /** * The CloudFormation resource type name for this resource class. */ static readonly CFN_RESOURCE_TYPE_NAME: string; /** * Build a CfnDecoderManifest from CloudFormation properties * * A factory method that creates a new instance of this class from an object * containing the CloudFormation properties of this resource. * Used in the @aws-cdk/cloudformation-include module. * * @internal */ static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnDecoderManifest; /** * The Amazon Resource Name (ARN) of the decoder manifest. * * @cloudformationAttribute Arn */ readonly attrArn: string; /** * The time the decoder manifest was created in seconds since epoch (January 1, 1970 at midnight UTC time). * * @cloudformationAttribute CreationTime */ readonly attrCreationTime: string; /** * The time the decoder manifest was last updated in seconds since epoch (January 1, 1970 at midnight UTC time). * * @cloudformationAttribute LastModificationTime */ readonly attrLastModificationTime: string; /** * Use default decoders for all unmapped signals in the model. */ defaultForUnmappedSignals?: string; /** * A brief description of the decoder manifest. */ description?: string; /** * The Amazon Resource Name (ARN) of a vehicle model (model manifest) associated with the decoder manifest. */ modelManifestArn: string; /** * The name of the decoder manifest. */ name: string; /** * A list of information about available network interfaces. */ networkInterfaces?: Array<cdk.IResolvable | CfnDecoderManifest.NetworkInterfacesItemsProperty> | cdk.IResolvable; /** * A list of information about signal decoders. */ signalDecoders?: Array<cdk.IResolvable | CfnDecoderManifest.SignalDecodersItemsProperty> | cdk.IResolvable; /** * The state of the decoder manifest. */ status?: string; /** * Tag Manager which manages the tags for this resource */ readonly tags: cdk.TagManager; /** * Metadata that can be used to manage the decoder manifest. */ tagsRaw?: Array<cdk.CfnTag>; /** * @param scope Scope in which this resource is defined * @param id Construct identifier for this resource (unique in its scope) * @param props Resource properties */ constructor(scope: constructs.Construct, id: string, props: CfnDecoderManifestProps); protected get cfnProperties(): Record<string, any>; /** * Examines the CloudFormation resource and discloses attributes * * @param inspector tree inspector to collect and process attributes */ inspect(inspector: cdk.TreeInspector): void; protected renderProperties(props: Record<string, any>): Record<string, any>; } export declare namespace CfnDecoderManifest { /** * Information about signal decoder using the Controller Area Network (CAN) protocol. * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-decodermanifest-cansignaldecoder.html */ interface CanSignalDecoderProperty { /** * Information about a single controller area network (CAN) signal and the messages it receives and transmits. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-decodermanifest-cansignaldecoder.html#cfn-iotfleetwise-decodermanifest-cansignaldecoder-cansignal */ readonly canSignal: CfnDecoderManifest.CanSignalProperty | cdk.IResolvable; /** * The fully qualified name of a signal decoder as defined in a vehicle model. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-decodermanifest-cansignaldecoder.html#cfn-iotfleetwise-decodermanifest-cansignaldecoder-fullyqualifiedname */ readonly fullyQualifiedName: string; /** * The ID of a network interface that specifies what network protocol a vehicle follows. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-decodermanifest-cansignaldecoder.html#cfn-iotfleetwise-decodermanifest-cansignaldecoder-interfaceid */ readonly interfaceId: string; /** * The network protocol for the vehicle. * * For example, `CAN_SIGNAL` specifies a protocol that defines how data is communicated between electronic control units (ECUs). `OBD_SIGNAL` specifies a protocol that defines how self-diagnostic data is communicated between ECUs. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-decodermanifest-cansignaldecoder.html#cfn-iotfleetwise-decodermanifest-cansignaldecoder-type */ readonly type: string; } /** * Information about a single controller area network (CAN) signal and the messages it receives and transmits. * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-decodermanifest-cansignal.html */ interface CanSignalProperty { /** * A multiplier used to decode the CAN message. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-decodermanifest-cansignal.html#cfn-iotfleetwise-decodermanifest-cansignal-factor */ readonly factor: string; /** * Whether the byte ordering of a CAN message is big-endian. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-decodermanifest-cansignal.html#cfn-iotfleetwise-decoderman