@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.565Z") @Stability(value=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();
| 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.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnPartition(software.constructs.Construct scope,
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 |
|---|---|
String |
getCatalogId()
The AWS account ID of the catalog in which the partion is to be created.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDatabaseName()
The name of the catalog database in which to create the partition.
|
Object |
getPartitionInput()
The structure used to create and update a partition.
|
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 Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setCatalogId(String value)
The AWS account ID of the catalog in which the partion is to be created.
|
void |
setDatabaseName(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(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, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnPartition(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnPartition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnPartition(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
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.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getCatalogId()
To specify the account ID, you can use the
Refintrinsic function with theAWS::AccountIdpseudo parameter. For example:!Ref AWS::AccountId
@Stability(value=Stable)
public void setCatalogId(@NotNull
String value)
To specify the account ID, you can use the
Refintrinsic function with theAWS::AccountIdpseudo parameter. For example:!Ref AWS::AccountId
@Stability(value=Stable) @NotNull public String getDatabaseName()
@Stability(value=Stable)
public void setDatabaseName(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getPartitionInput()
@Stability(value=Stable)
public void setPartitionInput(@NotNull
CfnPartition.PartitionInputProperty value)
@Stability(value=Stable)
public void setPartitionInput(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public String getTableName()
@Stability(value=Stable)
public void setTableName(@NotNull
String value)
Copyright © 2022. All rights reserved.