Skip to content
v2.278.0

DataDestinationConfigProperty Struct ​

The destination where the AWS IoT FleetWise campaign sends data.

You can send data to be stored in Amazon S3 or Amazon Timestream .

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotfleetwise as iotfleetwise } from 'aws-cdk-lib';
const dataDestinationConfigProperty: iotfleetwise.CfnCampaign.DataDestinationConfigProperty = {
  mqttTopicConfig: {
    executionRoleArn: 'executionRoleArn',
    mqttTopicArn: 'mqttTopicArn',
  },
  s3Config: {
    bucketArn: 'bucketArn',

    // the properties below are optional
    dataFormat: 'dataFormat',
    prefix: 'prefix',
    storageCompressionFormat: 'storageCompressionFormat',
  },
  timestreamConfig: {
    executionRoleArn: 'executionRoleArn',
    timestreamTableArn: 'timestreamTableArn',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iotfleetwise as iotfleetwise

data_destination_config_property = iotfleetwise.CfnCampaign.DataDestinationConfigProperty(
    mqtt_topic_config=iotfleetwise.CfnCampaign.MqttTopicConfigProperty(
        execution_role_arn="executionRoleArn",
        mqtt_topic_arn="mqttTopicArn"
    ),
    s3_config=iotfleetwise.CfnCampaign.S3ConfigProperty(
        bucket_arn="bucketArn",

        # the properties below are optional
        data_format="dataFormat",
        prefix="prefix",
        storage_compression_format="storageCompressionFormat"
    ),
    timestream_config=iotfleetwise.CfnCampaign.TimestreamConfigProperty(
        execution_role_arn="executionRoleArn",
        timestream_table_arn="timestreamTableArn"
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iotfleetwise.*;

DataDestinationConfigProperty dataDestinationConfigProperty = DataDestinationConfigProperty.builder()
        .mqttTopicConfig(MqttTopicConfigProperty.builder()
                .executionRoleArn("executionRoleArn")
                .mqttTopicArn("mqttTopicArn")
                .build())
        .s3Config(S3ConfigProperty.builder()
                .bucketArn("bucketArn")

                // the properties below are optional
                .dataFormat("dataFormat")
                .prefix("prefix")
                .storageCompressionFormat("storageCompressionFormat")
                .build())
        .timestreamConfig(TimestreamConfigProperty.builder()
                .executionRoleArn("executionRoleArn")
                .timestreamTableArn("timestreamTableArn")
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoTFleetWise;

var dataDestinationConfigProperty = new DataDestinationConfigProperty {
    MqttTopicConfig = new MqttTopicConfigProperty {
        ExecutionRoleArn = "executionRoleArn",
        MqttTopicArn = "mqttTopicArn"
    },
    S3Config = new S3ConfigProperty {
        BucketArn = "bucketArn",

        // the properties below are optional
        DataFormat = "dataFormat",
        Prefix = "prefix",
        StorageCompressionFormat = "storageCompressionFormat"
    },
    TimestreamConfig = new TimestreamConfigProperty {
        ExecutionRoleArn = "executionRoleArn",
        TimestreamTableArn = "timestreamTableArn"
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

dataDestinationConfigProperty := &DataDestinationConfigProperty{
	MqttTopicConfig: &MqttTopicConfigProperty{
		ExecutionRoleArn: jsii.String("executionRoleArn"),
		MqttTopicArn: jsii.String("mqttTopicArn"),
	},
	S3Config: &S3ConfigProperty{
		BucketArn: jsii.String("bucketArn"),

		// the properties below are optional
		DataFormat: jsii.String("dataFormat"),
		Prefix: jsii.String("prefix"),
		StorageCompressionFormat: jsii.String("storageCompressionFormat"),
	},
	TimestreamConfig: &TimestreamConfigProperty{
		ExecutionRoleArn: jsii.String("executionRoleArn"),
		TimestreamTableArn: jsii.String("timestreamTableArn"),
	},
}

Properties ​

mqttTopicConfigoptionalIResolvable | CfnCampaign.MqttTopicConfigPropertymqtt_topic_configoptionaltyping.Union[IResolvable, MqttTopicConfigProperty]mqttTopicConfigoptionalIResolvableMqttTopicConfigoptionalIResolvableMqttTopicConfigoptionalinterface{} #
The MQTT topic to which the AWS IoT FleetWise campaign routes data.
notes

Access to certain AWS IoT FleetWise features is currently gated. For more information, see AWS Region and feature availability in the AWS IoT FleetWise Developer Guide .

s3ConfigoptionalIResolvable | CfnCampaign.S3ConfigPropertys3_configoptionaltyping.Union[IResolvable, S3ConfigProperty]s3ConfigoptionalIResolvableS3ConfigoptionalIResolvableS3Configoptionalinterface{} #
The Amazon S3 bucket where the AWS IoT FleetWise campaign sends data.
timestreamConfigoptionalIResolvable | CfnCampaign.TimestreamConfigPropertytimestream_configoptionaltyping.Union[IResolvable, TimestreamConfigProperty]timestreamConfigoptionalIResolvableTimestreamConfigoptionalIResolvableTimestreamConfigoptionalinterface{} #
The Amazon Timestream table where the campaign sends data.