CfnPartitionProps

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

Bases: object

Properties for defining a CfnPartition.

Parameters:
  • catalog_id (str) – The AWS account ID of the catalog in which the partion is to be created. .. epigraph:: To specify the account ID, you can use the Ref intrinsic function with the AWS::AccountId pseudo parameter. For example: !Ref AWS::AccountId

  • database_name (str) – The name of the catalog database in which to create the partition.

  • partition_input (Union[IResolvable, PartitionInputProperty, Dict[str, Any]]) – The structure used to create and update a partition.

  • table_name (str) – The name of the metadata table in which the partition is to be created.

Link:

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

ExampleMetadata:

fixture=_generated

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: Any
# skewed_column_value_location_maps: Any

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

The AWS account ID of the catalog in which the partion is to be created.

To specify the account ID, you can use the Ref intrinsic function with the AWS::AccountId pseudo parameter. For example: !Ref AWS::AccountId

Link:

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

database_name

The name of the catalog database in which to create the partition.

Link:

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

partition_input

The structure used to create and update a partition.

Link:

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

table_name

The name of the metadata table in which the partition is to be created.

Link:

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