# ImportSourceSpecificationProperty

Specifies the properties of data being imported from the S3 bucket source to the table.

- 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_dynamodb as dynamodb } from 'aws-cdk-lib';
const importSourceSpecificationProperty: dynamodb.CfnTable.ImportSourceSpecificationProperty = {
  inputFormat: 'inputFormat',
  s3BucketSource: {
    s3Bucket: 's3Bucket',

    // the properties below are optional
    s3BucketOwner: 's3BucketOwner',
    s3KeyPrefix: 's3KeyPrefix',
  },

  // the properties below are optional
  inputCompressionType: 'inputCompressionType',
  inputFormatOptions: {
    csv: {
      delimiter: 'delimiter',
      headerList: ['headerList'],
    },
  },
};
```

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_dynamodb as dynamodb

import_source_specification_property = dynamodb.CfnTable.ImportSourceSpecificationProperty(
    input_format="inputFormat",
    s3_bucket_source=dynamodb.CfnTable.S3BucketSourceProperty(
        s3_bucket="s3Bucket",

        # the properties below are optional
        s3_bucket_owner="s3BucketOwner",
        s3_key_prefix="s3KeyPrefix"
    ),

    # the properties below are optional
    input_compression_type="inputCompressionType",
    input_format_options=dynamodb.CfnTable.InputFormatOptionsProperty(
        csv=dynamodb.CfnTable.CsvProperty(
            delimiter="delimiter",
            header_list=["headerList"]
        )
    )
)
```

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

ImportSourceSpecificationProperty importSourceSpecificationProperty = ImportSourceSpecificationProperty.builder()
        .inputFormat("inputFormat")
        .s3BucketSource(S3BucketSourceProperty.builder()
                .s3Bucket("s3Bucket")

                // the properties below are optional
                .s3BucketOwner("s3BucketOwner")
                .s3KeyPrefix("s3KeyPrefix")
                .build())

        // the properties below are optional
        .inputCompressionType("inputCompressionType")
        .inputFormatOptions(InputFormatOptionsProperty.builder()
                .csv(CsvProperty.builder()
                        .delimiter("delimiter")
                        .headerList(List.of("headerList"))
                        .build())
                .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.DynamoDB;

var importSourceSpecificationProperty = new ImportSourceSpecificationProperty {
    InputFormat = "inputFormat",
    S3BucketSource = new S3BucketSourceProperty {
        S3Bucket = "s3Bucket",

        // the properties below are optional
        S3BucketOwner = "s3BucketOwner",
        S3KeyPrefix = "s3KeyPrefix"
    },

    // the properties below are optional
    InputCompressionType = "inputCompressionType",
    InputFormatOptions = new InputFormatOptionsProperty {
        Csv = new CsvProperty {
            Delimiter = "delimiter",
            HeaderList = new [] { "headerList" }
        }
    }
};
```

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"

importSourceSpecificationProperty := &ImportSourceSpecificationProperty{
	InputFormat: jsii.String("inputFormat"),
	S3BucketSource: &S3BucketSourceProperty{
		S3Bucket: jsii.String("s3Bucket"),

		// the properties below are optional
		S3BucketOwner: jsii.String("s3BucketOwner"),
		S3KeyPrefix: jsii.String("s3KeyPrefix"),
	},

	// the properties below are optional
	InputCompressionType: jsii.String("inputCompressionType"),
	InputFormatOptions: &InputFormatOptionsProperty{
		Csv: &CsvProperty{
			Delimiter: jsii.String("delimiter"),
			HeaderList: []*string{
				jsii.String("headerList"),
			},
		},
	},
}
```

## Properties

- `inputCompressionType`: string — Type of compression to be used on the input coming from the imported table.

- `inputFormat`: string (required) — The format of the source data.

  Valid values for `ImportFormat` are `CSV` , `DYNAMODB_JSON` or `ION` .

- `inputFormatOptions`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTable.InputFormatOptionsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dynamodb.CfnTable.InputFormatOptionsProperty.html) — Additional properties that specify how the input is formatted,.

- `s3BucketSource`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTable.S3BucketSourceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dynamodb.CfnTable.S3BucketSourceProperty.html) (required) — The S3 bucket that provides the source for the import.
