@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:45.562Z") 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();
Modifier and Type | Class and Description |
---|---|
static class |
CfnPartition.Builder
A fluent builder for
CfnPartition . |
static interface |
CfnPartition.ColumnProperty
A column in a `Table` .
|
static interface |
CfnPartition.OrderProperty
Specifies the sort order of a sorted column.
|
static interface |
CfnPartition.PartitionInputProperty
The structure used to create and update a partition.
|
static interface |
CfnPartition.SchemaIdProperty
A structure that contains schema identity fields.
|
static interface |
CfnPartition.SchemaReferenceProperty
An object that references a schema stored in the AWS Glue Schema Registry.
|
static interface |
CfnPartition.SerdeInfoProperty
Information about a serialization/deserialization program (SerDe) that serves as an extractor and loader.
|
static interface |
CfnPartition.SkewedInfoProperty
Specifies skewed values in a table.
|
static interface |
CfnPartition.StorageDescriptorProperty
Describes the physical storage of table data.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnPartition(Construct scope,
java.lang.String id,
CfnPartitionProps props)
Create a new `AWS::Glue::Partition`.
|
protected |
CfnPartition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnPartition(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCatalogId()
The AWS account ID of the catalog in which the partion is to be created.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDatabaseName()
The name of the catalog database in which to create the partition.
|
java.lang.Object |
getPartitionInput()
The structure used to create and update a partition.
|
java.lang.String |
getTableName()
The name of the metadata table in which the partition is to be created.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setCatalogId(java.lang.String value)
The AWS account ID of the catalog in which the partion is to be created.
|
void |
setDatabaseName(java.lang.String value)
The name of the catalog database in which to create the partition.
|
void |
setPartitionInput(CfnPartition.PartitionInputProperty value)
The structure used to create and update a partition.
|
void |
setPartitionInput(IResolvable value)
The structure used to create and update a partition.
|
void |
setTableName(java.lang.String value)
The name of the metadata table in which the partition is to be created.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnPartition(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnPartition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnPartition(Construct scope, java.lang.String id, CfnPartitionProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getCatalogId()
To specify the account ID, you can use the
Ref
intrinsic function with theAWS::AccountId
pseudo parameter. For example:!Ref AWS::AccountId
public void setCatalogId(java.lang.String value)
To specify the account ID, you can use the
Ref
intrinsic function with theAWS::AccountId
pseudo parameter. For example:!Ref AWS::AccountId
public java.lang.String getDatabaseName()
public void setDatabaseName(java.lang.String value)
public java.lang.Object getPartitionInput()
public void setPartitionInput(IResolvable value)
public void setPartitionInput(CfnPartition.PartitionInputProperty value)
public java.lang.String getTableName()
public void setTableName(java.lang.String value)