Interface CfnPartition.PartitionInputProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnPartition.PartitionInputProperty.Jsii$Proxy
Enclosing class:
CfnPartition

@Stability(Stable) public static interface CfnPartition.PartitionInputProperty extends software.amazon.jsii.JsiiSerializable
The structure used to create and update a partition.

Example:

 // 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;
 PartitionInputProperty partitionInputProperty = PartitionInputProperty.builder()
         .values(List.of("values"))
         // the properties below are optional
         .parameters(parameters)
         .storageDescriptor(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")
                         // the properties below are optional
                         .sortOrder(123)
                         .build()))
                 .storedAsSubDirectories(false)
                 .build())
         .build();
 
  • Method Details

    • getValues

      @Stability(Stable) @NotNull List<String> getValues()
      The values of the partition.

      Although this parameter is not required by the SDK, you must specify this parameter for a valid input.

      The values for the keys for the new partition must be passed as an array of String objects that must be ordered in the same order as the partition keys appearing in the Amazon S3 prefix. Otherwise AWS Glue will add the values to the wrong keys.

    • getParameters

      @Stability(Stable) @Nullable default Object getParameters()
      These key-value pairs define partition parameters.
    • getStorageDescriptor

      @Stability(Stable) @Nullable default Object getStorageDescriptor()
      Provides information about the physical location where the partition is stored.
    • builder

      @Stability(Stable) static CfnPartition.PartitionInputProperty.Builder builder()
      Returns:
      a CfnPartition.PartitionInputProperty.Builder of CfnPartition.PartitionInputProperty