Class CfnPartition
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.glue.CfnPartition
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:42.441Z")
@Stability(Stable)
public class CfnPartition
extends CfnResource
implements IInspectable
A CloudFormation
AWS::Glue::Partition
.
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();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnPartition
.static interface
A column in aTable
.static interface
Specifies the sort order of a sorted column.static interface
The structure used to create and update a partition.static interface
A structure that contains schema identity fields.static interface
An object that references a schema stored in the AWS Glue Schema Registry.static interface
Information about a serialization/deserialization program (SerDe) that serves as an extractor and loader.static interface
Specifies skewed values in a table.static interface
Describes the physical storage of table data.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnPartition
(Construct scope, String id, CfnPartitionProps props) Create a newAWS::Glue::Partition
.protected
CfnPartition
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnPartition
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe AWS account ID of the catalog in which the partion is to be created.The name of the catalog database in which to create the partition.The structure used to create and update a partition.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.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
(IResolvable value) The structure used to create and update a partition.void
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.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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 Construct scope, @NotNull String id, @NotNull CfnPartitionProps props) Create a newAWS::Glue::Partition
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getCatalogId
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 theAWS::AccountId
pseudo parameter. For example:!Ref AWS::AccountId
-
setCatalogId
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 theAWS::AccountId
pseudo parameter. For example:!Ref AWS::AccountId
-
getDatabaseName
The name of the catalog database in which to create the partition. -
setDatabaseName
The name of the catalog database in which to create the partition. -
getPartitionInput
The structure used to create and update a partition. -
setPartitionInput
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
The name of the metadata table in which the partition is to be created. -
setTableName
The name of the metadata table in which the partition is to be created.
-