CfnPartitionProps

class aws_cdk.aws_glue.CfnPartitionProps(*, catalog_id, database_name, partition_input, table_name)

Bases: object

Properties for defining a AWS::Glue::Partition.

Parameters
  • catalog_id (str) – AWS::Glue::Partition.CatalogId.

  • database_name (str) – AWS::Glue::Partition.DatabaseName.

  • partition_input (Union[IResolvable, PartitionInputProperty]) – AWS::Glue::Partition.PartitionInput.

  • table_name (str) – AWS::Glue::Partition.TableName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-partition.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_glue as glue

# parameters is of type object
# skewed_column_value_location_maps is of type object

cfn_partition_props = glue.CfnPartitionProps(
    catalog_id="catalogId",
    database_name="databaseName",
    partition_input=glue.CfnPartition.PartitionInputProperty(
        values=["values"],

        # the properties below are optional
        parameters=parameters,
        storage_descriptor=glue.CfnPartition.StorageDescriptorProperty(
            bucket_columns=["bucketColumns"],
            columns=[glue.CfnPartition.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.CfnPartition.SchemaReferenceProperty(
                schema_id=glue.CfnPartition.SchemaIdProperty(
                    registry_name="registryName",
                    schema_arn="schemaArn",
                    schema_name="schemaName"
                ),
                schema_version_id="schemaVersionId",
                schema_version_number=123
            ),
            serde_info=glue.CfnPartition.SerdeInfoProperty(
                name="name",
                parameters=parameters,
                serialization_library="serializationLibrary"
            ),
            skewed_info=glue.CfnPartition.SkewedInfoProperty(
                skewed_column_names=["skewedColumnNames"],
                skewed_column_value_location_maps=skewed_column_value_location_maps,
                skewed_column_values=["skewedColumnValues"]
            ),
            sort_columns=[glue.CfnPartition.OrderProperty(
                column="column",

                # the properties below are optional
                sort_order=123
            )],
            stored_as_sub_directories=False
        )
    ),
    table_name="tableName"
)

Attributes

catalog_id

AWS::Glue::Partition.CatalogId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-partition.html#cfn-glue-partition-catalogid

Return type

str

database_name

AWS::Glue::Partition.DatabaseName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-partition.html#cfn-glue-partition-databasename

Return type

str

partition_input

AWS::Glue::Partition.PartitionInput.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-partition.html#cfn-glue-partition-partitioninput

Return type

Union[IResolvable, PartitionInputProperty]

table_name

AWS::Glue::Partition.TableName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-partition.html#cfn-glue-partition-tablename

Return type

str