# StorageDescriptorProperty

Describes the physical storage of table data.

- 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_glue as glue } from 'aws-cdk-lib';

declare const parameters: any;
declare const skewedColumnValueLocationMaps: any;
const storageDescriptorProperty: glue.CfnTable.StorageDescriptorProperty = {
  bucketColumns: ['bucketColumns'],
  columns: [{
    name: 'name',

    // the properties below are optional
    comment: 'comment',
    type: 'type',
  }],
  compressed: false,
  inputFormat: 'inputFormat',
  location: 'location',
  numberOfBuckets: 123,
  outputFormat: 'outputFormat',
  parameters: parameters,
  schemaReference: {
    schemaId: {
      registryName: 'registryName',
      schemaArn: 'schemaArn',
      schemaName: 'schemaName',
    },
    schemaVersionId: 'schemaVersionId',
    schemaVersionNumber: 123,
  },
  serdeInfo: {
    name: 'name',
    parameters: parameters,
    serializationLibrary: 'serializationLibrary',
  },
  skewedInfo: {
    skewedColumnNames: ['skewedColumnNames'],
    skewedColumnValueLocationMaps: skewedColumnValueLocationMaps,
    skewedColumnValues: ['skewedColumnValues'],
  },
  sortColumns: [{
    column: 'column',
    sortOrder: 123,
  }],
  storedAsSubDirectories: false,
};
```

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_glue as glue

# parameters: Any
# skewed_column_value_location_maps: Any

storage_descriptor_property = glue.CfnTable.StorageDescriptorProperty(
    bucket_columns=["bucketColumns"],
    columns=[glue.CfnTable.ColumnProperty(
        name="name",

        # the properties below are optional
        comment="comment",
        type="type"
    )],
    compressed=False,
    input_format="inputFormat",
    location="location",
    number_of_buckets=123,
    output_format="outputFormat",
    parameters=parameters,
    schema_reference=glue.CfnTable.SchemaReferenceProperty(
        schema_id=glue.CfnTable.SchemaIdProperty(
            registry_name="registryName",
            schema_arn="schemaArn",
            schema_name="schemaName"
        ),
        schema_version_id="schemaVersionId",
        schema_version_number=123
    ),
    serde_info=glue.CfnTable.SerdeInfoProperty(
        name="name",
        parameters=parameters,
        serialization_library="serializationLibrary"
    ),
    skewed_info=glue.CfnTable.SkewedInfoProperty(
        skewed_column_names=["skewedColumnNames"],
        skewed_column_value_location_maps=skewed_column_value_location_maps,
        skewed_column_values=["skewedColumnValues"]
    ),
    sort_columns=[glue.CfnTable.OrderProperty(
        column="column",
        sort_order=123
    )],
    stored_as_sub_directories=False
)
```

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

Object parameters;
Object skewedColumnValueLocationMaps;

StorageDescriptorProperty storageDescriptorProperty = StorageDescriptorProperty.builder()
        .bucketColumns(List.of("bucketColumns"))
        .columns(List.of(ColumnProperty.builder()
                .name("name")

                // the properties below are optional
                .comment("comment")
                .type("type")
                .build()))
        .compressed(false)
        .inputFormat("inputFormat")
        .location("location")
        .numberOfBuckets(123)
        .outputFormat("outputFormat")
        .parameters(parameters)
        .schemaReference(SchemaReferenceProperty.builder()
                .schemaId(SchemaIdProperty.builder()
                        .registryName("registryName")
                        .schemaArn("schemaArn")
                        .schemaName("schemaName")
                        .build())
                .schemaVersionId("schemaVersionId")
                .schemaVersionNumber(123)
                .build())
        .serdeInfo(SerdeInfoProperty.builder()
                .name("name")
                .parameters(parameters)
                .serializationLibrary("serializationLibrary")
                .build())
        .skewedInfo(SkewedInfoProperty.builder()
                .skewedColumnNames(List.of("skewedColumnNames"))
                .skewedColumnValueLocationMaps(skewedColumnValueLocationMaps)
                .skewedColumnValues(List.of("skewedColumnValues"))
                .build())
        .sortColumns(List.of(OrderProperty.builder()
                .column("column")
                .sortOrder(123)
                .build()))
        .storedAsSubDirectories(false)
        .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.Glue;

var parameters;
var skewedColumnValueLocationMaps;

var storageDescriptorProperty = new StorageDescriptorProperty {
    BucketColumns = new [] { "bucketColumns" },
    Columns = new [] { new ColumnProperty {
        Name = "name",

        // the properties below are optional
        Comment = "comment",
        Type = "type"
    } },
    Compressed = false,
    InputFormat = "inputFormat",
    Location = "location",
    NumberOfBuckets = 123,
    OutputFormat = "outputFormat",
    Parameters = parameters,
    SchemaReference = new SchemaReferenceProperty {
        SchemaId = new SchemaIdProperty {
            RegistryName = "registryName",
            SchemaArn = "schemaArn",
            SchemaName = "schemaName"
        },
        SchemaVersionId = "schemaVersionId",
        SchemaVersionNumber = 123
    },
    SerdeInfo = new SerdeInfoProperty {
        Name = "name",
        Parameters = parameters,
        SerializationLibrary = "serializationLibrary"
    },
    SkewedInfo = new SkewedInfoProperty {
        SkewedColumnNames = new [] { "skewedColumnNames" },
        SkewedColumnValueLocationMaps = skewedColumnValueLocationMaps,
        SkewedColumnValues = new [] { "skewedColumnValues" }
    },
    SortColumns = new [] { new OrderProperty {
        Column = "column",
        SortOrder = 123
    } },
    StoredAsSubDirectories = false
};
```

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"

var parameters interface{}
var skewedColumnValueLocationMaps interface{}

storageDescriptorProperty := &StorageDescriptorProperty{
	BucketColumns: []*string{
		jsii.String("bucketColumns"),
	},
	Columns: []interface{}{
		&ColumnProperty{
			Name: jsii.String("name"),

			// the properties below are optional
			Comment: jsii.String("comment"),
			Type: jsii.String("type"),
		},
	},
	Compressed: jsii.Boolean(false),
	InputFormat: jsii.String("inputFormat"),
	Location: jsii.String("location"),
	NumberOfBuckets: jsii.Number(123),
	OutputFormat: jsii.String("outputFormat"),
	Parameters: parameters,
	SchemaReference: &SchemaReferenceProperty{
		SchemaId: &SchemaIdProperty{
			RegistryName: jsii.String("registryName"),
			SchemaArn: jsii.String("schemaArn"),
			SchemaName: jsii.String("schemaName"),
		},
		SchemaVersionId: jsii.String("schemaVersionId"),
		SchemaVersionNumber: jsii.Number(123),
	},
	SerdeInfo: &SerdeInfoProperty{
		Name: jsii.String("name"),
		Parameters: parameters,
		SerializationLibrary: jsii.String("serializationLibrary"),
	},
	SkewedInfo: &SkewedInfoProperty{
		SkewedColumnNames: []*string{
			jsii.String("skewedColumnNames"),
		},
		SkewedColumnValueLocationMaps: skewedColumnValueLocationMaps,
		SkewedColumnValues: []*string{
			jsii.String("skewedColumnValues"),
		},
	},
	SortColumns: []interface{}{
		&OrderProperty{
			Column: jsii.String("column"),
			SortOrder: jsii.Number(123),
		},
	},
	StoredAsSubDirectories: jsii.Boolean(false),
}
```

## Properties

- `bucketColumns`: string[] — A list of reducer grouping columns, clustering columns, and bucketing columns in the table.

- `columns`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTable.ColumnProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.CfnTable.ColumnProperty.html)[] — A list of the `Columns` in the table.

- `compressed`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — `True` if the data in the table is compressed, or `False` if not.

- `inputFormat`: string — The input format: `SequenceFileInputFormat` (binary), or `TextInputFormat` , or a custom format.

- `location`: string — The physical location of the table.

  By default, this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name.

- `numberOfBuckets`: number — Must be specified if the table contains any dimension columns.

- `outputFormat`: string — The output format: `SequenceFileOutputFormat` (binary), or `IgnoreKeyTextOutputFormat` , or a custom format.

- `parameters`: any — The user-supplied properties in key-value form.

- `schemaReference`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTable.SchemaReferenceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.CfnTable.SchemaReferenceProperty.html) — An object that references a schema stored in the AWS Glue Schema Registry.

- `serdeInfo`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTable.SerdeInfoProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.CfnTable.SerdeInfoProperty.html) — The serialization/deserialization (SerDe) information.

- `skewedInfo`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTable.SkewedInfoProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.CfnTable.SkewedInfoProperty.html) — The information about values that appear frequently in a column (skewed values).

- `sortColumns`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTable.OrderProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.CfnTable.OrderProperty.html)[] — A list specifying the sort order of each bucket in the table.

- `storedAsSubDirectories`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — `True` if the table data is stored in subdirectories, or `False` if not.
