Class EnumPartitionProjectionConfigurationProps
Properties for ENUM partition projection configuration.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Glue
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class EnumPartitionProjectionConfigurationProps : IEnumPartitionProjectionConfigurationProps
Syntax (vb)
Public Class EnumPartitionProjectionConfigurationProps Implements IEnumPartitionProjectionConfigurationProps
Remarks
ExampleMetadata: infused
Examples
Database myDatabase;
new S3Table(this, "MyTable", new S3TableProps {
Database = myDatabase,
Columns = new [] { new Column {
Name = "data",
Type = Schema.STRING
} },
PartitionKeys = new [] { new Column {
Name = "region",
Type = Schema.STRING
} },
DataFormat = DataFormat.JSON,
PartitionProjection = new Dictionary<string, PartitionProjectionConfiguration> {
{ "region", PartitionProjectionConfiguration.Enum(new EnumPartitionProjectionConfigurationProps {
Values = new [] { "us-east-1", "us-west-2", "eu-west-1" }
}) }
}
});
Synopsis
Constructors
| EnumPartitionProjectionConfigurationProps() | Properties for ENUM partition projection configuration. |
Properties
| Values | Explicit list of partition values. |
Constructors
EnumPartitionProjectionConfigurationProps()
Properties for ENUM partition projection configuration.
public EnumPartitionProjectionConfigurationProps()
Remarks
ExampleMetadata: infused
Examples
Database myDatabase;
new S3Table(this, "MyTable", new S3TableProps {
Database = myDatabase,
Columns = new [] { new Column {
Name = "data",
Type = Schema.STRING
} },
PartitionKeys = new [] { new Column {
Name = "region",
Type = Schema.STRING
} },
DataFormat = DataFormat.JSON,
PartitionProjection = new Dictionary<string, PartitionProjectionConfiguration> {
{ "region", PartitionProjectionConfiguration.Enum(new EnumPartitionProjectionConfigurationProps {
Values = new [] { "us-east-1", "us-west-2", "eu-west-1" }
}) }
}
});
Properties
Values
Explicit list of partition values.
public string[] Values { get; set; }
Property Value
string[]
Remarks
ExampleMetadata: infused
Examples
new [] { "us-east-1", "us-west-2", "eu-west-1" };