Show / Hide Table of Contents

Class EnumPartitionProjectionConfigurationProps

Properties for ENUM partition projection configuration.

Inheritance
object
EnumPartitionProjectionConfigurationProps
Implements
IEnumPartitionProjectionConfigurationProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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" };

Implements

IEnumPartitionProjectionConfigurationProps
Back to top Generated by DocFX