Class CfnPartition
A CloudFormation AWS::Glue::Partition
.
Inherited Members
Namespace: Amazon.CDK.AWS.Glue
Assembly: Amazon.CDK.AWS.Glue.dll
Syntax (csharp)
public class CfnPartition : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnPartition
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
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 .
CloudformationResource: AWS::Glue::Partition
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-partition.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Glue;
var parameters;
var skewedColumnValueLocationMaps;
var cfnPartition = new CfnPartition(this, "MyCfnPartition", new CfnPartitionProps {
CatalogId = "catalogId",
DatabaseName = "databaseName",
PartitionInput = new PartitionInputProperty {
Values = new [] { "values" },
// the properties below are optional
Parameters = parameters,
StorageDescriptor = new StorageDescriptorProperty {
BucketColumns = new [] { "bucketColumns" },
Columns = new [] { new ColumnProperty {
Name = "name",
// the properties below are optional
Comment = "comment",
Type = "type"
} },
Compressed = false,
InputFormat = "inputFormat",
Location = "location",
NumberOfBuckets = 123,
OutputFormat = "outputFormat",
Parameters = parameters,
SchemaReference = new SchemaReferenceProperty {
SchemaId = new SchemaIdProperty {
RegistryName = "registryName",
SchemaArn = "schemaArn",
SchemaName = "schemaName"
},
SchemaVersionId = "schemaVersionId",
SchemaVersionNumber = 123
},
SerdeInfo = new SerdeInfoProperty {
Name = "name",
Parameters = parameters,
SerializationLibrary = "serializationLibrary"
},
SkewedInfo = new SkewedInfoProperty {
SkewedColumnNames = new [] { "skewedColumnNames" },
SkewedColumnValueLocationMaps = skewedColumnValueLocationMaps,
SkewedColumnValues = new [] { "skewedColumnValues" }
},
SortColumns = new [] { new OrderProperty {
Column = "column",
// the properties below are optional
SortOrder = 123
} },
StoredAsSubDirectories = false
}
},
TableName = "tableName"
});
Synopsis
Constructors
CfnPartition(Construct, String, ICfnPartitionProps) | Create a new |
CfnPartition(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnPartition(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
CatalogId | The AWS account ID of the catalog in which the partion is to be created. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
DatabaseName | The name of the catalog database in which to create the partition. |
PartitionInput | The structure used to create and update a partition. |
TableName | The name of the metadata table in which the partition is to be created. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnPartition(Construct, String, ICfnPartitionProps)
Create a new AWS::Glue::Partition
.
public CfnPartition(Construct scope, string id, ICfnPartitionProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnPartitionProps
- resource properties.
CfnPartition(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnPartition(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnPartition(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnPartition(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
CatalogId
The AWS account ID of the catalog in which the partion is to be created.
public virtual string CatalogId { get; set; }
Property Value
System.String
Remarks
To specify the account ID, you can use the Ref
intrinsic function with the AWS::AccountId
pseudo parameter. For example: !Ref AWS::AccountId
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
DatabaseName
The name of the catalog database in which to create the partition.
public virtual string DatabaseName { get; set; }
Property Value
System.String
Remarks
PartitionInput
The structure used to create and update a partition.
public virtual object PartitionInput { get; set; }
Property Value
System.Object
Remarks
TableName
The name of the metadata table in which the partition is to be created.
public virtual string TableName { get; set; }
Property Value
System.String
Remarks
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>