# S3ConfigProperty

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* .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## 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 s3ConfigProperty: iotfleetwise.CfnCampaign.S3ConfigProperty = {
  bucketArn: 'bucketArn',

  // the properties below are optional
  dataFormat: 'dataFormat',
  prefix: 'prefix',
  storageCompressionFormat: 'storageCompressionFormat',
};
```

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

s3_config_property = iotfleetwise.CfnCampaign.S3ConfigProperty(
    bucket_arn="bucketArn",

    # the properties below are optional
    data_format="dataFormat",
    prefix="prefix",
    storage_compression_format="storageCompressionFormat"
)
```

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.*;

S3ConfigProperty s3ConfigProperty = S3ConfigProperty.builder()
        .bucketArn("bucketArn")

        // the properties below are optional
        .dataFormat("dataFormat")
        .prefix("prefix")
        .storageCompressionFormat("storageCompressionFormat")
        .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 s3ConfigProperty = new S3ConfigProperty {
    BucketArn = "bucketArn",

    // the properties below are optional
    DataFormat = "dataFormat",
    Prefix = "prefix",
    StorageCompressionFormat = "storageCompressionFormat"
};
```

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"

s3ConfigProperty := &S3ConfigProperty{
	BucketArn: jsii.String("bucketArn"),

	// the properties below are optional
	DataFormat: jsii.String("dataFormat"),
	Prefix: jsii.String("prefix"),
	StorageCompressionFormat: jsii.String("storageCompressionFormat"),
}
```

## Properties

- `bucketArn`: string (required) — The Amazon Resource Name (ARN) of the Amazon S3 bucket.

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

- `prefix`: 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/` .

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