Skip to content
v2.278.0

ColumnProperty Struct ​

A column in a Table .

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
const columnProperty: glue.CfnTable.ColumnProperty = {
  name: 'name',

  // the properties below are optional
  comment: 'comment',
  type: 'type',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_glue as glue

column_property = glue.CfnTable.ColumnProperty(
    name="name",

    # the properties below are optional
    comment="comment",
    type="type"
)
java
// 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.*;

ColumnProperty columnProperty = ColumnProperty.builder()
        .name("name")

        // the properties below are optional
        .comment("comment")
        .type("type")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 columnProperty = new ColumnProperty {
    Name = "name",

    // the properties below are optional
    Comment = "comment",
    Type = "type"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

columnProperty := &ColumnProperty{
	Name: jsii.String("name"),

	// the properties below are optional
	Comment: jsii.String("comment"),
	Type: jsii.String("type"),
}

Properties ​

commentoptionalstringcommentoptionalstrcommentoptionalStringCommentoptionalstringCommentoptional*string #
A free-form text comment.
namestringnamestrnameStringNamestringName*string required #
The name of the `Column` .
typeoptionalstringtypeoptionalstrtypeoptionalStringTypeoptionalstringTypeoptional*string #
The data type of the `Column` .