Class CfnPartition

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-17T21:37:31.915Z") @Stability(Stable) public class CfnPartition extends CfnResource implements IInspectable
The AWS::Glue::Partition resource creates an AWS Glue partition, which represents a slice of table data.

For more information, see CreatePartition Action and Partition Structure in the AWS Glue Developer Guide .

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;
 CfnPartition cfnPartition = CfnPartition.Builder.create(this, "MyCfnPartition")
         .catalogId("catalogId")
         .databaseName("databaseName")
         .partitionInput(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())
         .tableName("tableName")
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnPartition

      protected CfnPartition(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnPartition

      protected CfnPartition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnPartition

      @Stability(Stable) public CfnPartition(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnPartitionProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCatalogId

      @Stability(Stable) @NotNull public String getCatalogId()
      The AWS account ID of the catalog in which the partion is to be created.
    • setCatalogId

      @Stability(Stable) public void setCatalogId(@NotNull String value)
      The AWS account ID of the catalog in which the partion is to be created.
    • getDatabaseName

      @Stability(Stable) @NotNull public String getDatabaseName()
      The name of the catalog database in which to create the partition.
    • setDatabaseName

      @Stability(Stable) public void setDatabaseName(@NotNull String value)
      The name of the catalog database in which to create the partition.
    • getPartitionInput

      @Stability(Stable) @NotNull public Object getPartitionInput()
      The structure used to create and update a partition.
    • setPartitionInput

      @Stability(Stable) public void setPartitionInput(@NotNull IResolvable value)
      The structure used to create and update a partition.
    • setPartitionInput

      @Stability(Stable) public void setPartitionInput(@NotNull CfnPartition.PartitionInputProperty value)
      The structure used to create and update a partition.
    • getTableName

      @Stability(Stable) @NotNull public String getTableName()
      The name of the metadata table in which the partition is to be created.
    • setTableName

      @Stability(Stable) public void setTableName(@NotNull String value)
      The name of the metadata table in which the partition is to be created.