# DataDestinationConfigProperty

The destination where the AWS IoT FleetWise campaign sends data.

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

- Source: Generated at build time
- Type last changed: v2.157.0 · 10 Sep 2024

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    }
};
```

Golang:

```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

- `mqttTopicConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCampaign.MqttTopicConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotfleetwise.CfnCampaign.MqttTopicConfigProperty.html) — 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* .

- `s3Config`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCampaign.S3ConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotfleetwise.CfnCampaign.S3ConfigProperty.html) — The Amazon S3 bucket where the AWS IoT FleetWise campaign sends data.

- `timestreamConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCampaign.TimestreamConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotfleetwise.CfnCampaign.TimestreamConfigProperty.html) — The Amazon Timestream table where the campaign sends data.
