Skip to content
v2.278.0

FieldDefinitionProperty Struct ​

Defines a field in an entity schema.

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 fieldDefinitionProperty: glue.CfnConnectionType.FieldDefinitionProperty = {
  fieldDataType: 'fieldDataType',
  name: 'name',

  // the properties below are optional
  filterOverrides: {
    betweenConfiguration: {
      highBoundKey: 'highBoundKey',
      lowBoundKey: 'lowBoundKey',
      template: 'template',
    },
    dateTimeFormat: 'dateTimeFormat',
    fieldName: 'fieldName',
    operatorMappings: {
      operatorMappingsKey: 'operatorMappings',
    },
  },
  isNullable: false,
  isOrderable: false,
  isPartitionable: false,
  isQueryable: false,
  responseDateFormat: 'responseDateFormat',
};
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

field_definition_property = glue.CfnConnectionType.FieldDefinitionProperty(
    field_data_type="fieldDataType",
    name="name",

    # the properties below are optional
    filter_overrides=glue.CfnConnectionType.FilterOverridesProperty(
        between_configuration=glue.CfnConnectionType.BetweenConfigurationProperty(
            high_bound_key="highBoundKey",
            low_bound_key="lowBoundKey",
            template="template"
        ),
        date_time_format="dateTimeFormat",
        field_name="fieldName",
        operator_mappings={
            "operator_mappings_key": "operatorMappings"
        }
    ),
    is_nullable=False,
    is_orderable=False,
    is_partitionable=False,
    is_queryable=False,
    response_date_format="responseDateFormat"
)
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.*;

FieldDefinitionProperty fieldDefinitionProperty = FieldDefinitionProperty.builder()
        .fieldDataType("fieldDataType")
        .name("name")

        // the properties below are optional
        .filterOverrides(FilterOverridesProperty.builder()
                .betweenConfiguration(BetweenConfigurationProperty.builder()
                        .highBoundKey("highBoundKey")
                        .lowBoundKey("lowBoundKey")
                        .template("template")
                        .build())
                .dateTimeFormat("dateTimeFormat")
                .fieldName("fieldName")
                .operatorMappings(Map.of(
                        "operatorMappingsKey", "operatorMappings"))
                .build())
        .isNullable(false)
        .isOrderable(false)
        .isPartitionable(false)
        .isQueryable(false)
        .responseDateFormat("responseDateFormat")
        .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 fieldDefinitionProperty = new FieldDefinitionProperty {
    FieldDataType = "fieldDataType",
    Name = "name",

    // the properties below are optional
    FilterOverrides = new FilterOverridesProperty {
        BetweenConfiguration = new BetweenConfigurationProperty {
            HighBoundKey = "highBoundKey",
            LowBoundKey = "lowBoundKey",
            Template = "template"
        },
        DateTimeFormat = "dateTimeFormat",
        FieldName = "fieldName",
        OperatorMappings = new Dictionary<string, string> {
            { "operatorMappingsKey", "operatorMappings" }
        }
    },
    IsNullable = false,
    IsOrderable = false,
    IsPartitionable = false,
    IsQueryable = false,
    ResponseDateFormat = "responseDateFormat"
};
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"

fieldDefinitionProperty := &FieldDefinitionProperty{
	FieldDataType: jsii.String("fieldDataType"),
	Name: jsii.String("name"),

	// the properties below are optional
	FilterOverrides: &FilterOverridesProperty{
		BetweenConfiguration: &BetweenConfigurationProperty{
			HighBoundKey: jsii.String("highBoundKey"),
			LowBoundKey: jsii.String("lowBoundKey"),
			Template: jsii.String("template"),
		},
		DateTimeFormat: jsii.String("dateTimeFormat"),
		FieldName: jsii.String("fieldName"),
		OperatorMappings: map[string]*string{
			"operatorMappingsKey": jsii.String("operatorMappings"),
		},
	},
	IsNullable: jsii.Boolean(false),
	IsOrderable: jsii.Boolean(false),
	IsPartitionable: jsii.Boolean(false),
	IsQueryable: jsii.Boolean(false),
	ResponseDateFormat: jsii.String("responseDateFormat"),
}

Properties ​

fieldDataTypestringfield_data_typestrfieldDataTypeStringFieldDataTypestringFieldDataType*string required #
The data type of the field.
filterOverridesoptionalIResolvable | CfnConnectionType.FilterOverridesPropertyfilter_overridesoptionaltyping.Union[IResolvable, FilterOverridesProperty]filterOverridesoptionalIResolvableFilterOverridesoptionalIResolvableFilterOverridesoptionalinterface{} #
Configuration that defines per-field overrides for filter behavior, allowing individual fields to customize how filter operations are applied.
isNullableoptionalboolean | IResolvableis_nullableoptionaltyping.Union[bool, IResolvable]isNullableoptionalBooleanIsNullableoptionalboolIsNullableoptionalinterface{} #
Indicates whether this field can contain null values.
isOrderableoptionalboolean | IResolvableis_orderableoptionaltyping.Union[bool, IResolvable]isOrderableoptionalBooleanIsOrderableoptionalboolIsOrderableoptionalinterface{} #
Indicates whether this field can be used for ordering results.
isPartitionableoptionalboolean | IResolvableis_partitionableoptionaltyping.Union[bool, IResolvable]isPartitionableoptionalBooleanIsPartitionableoptionalboolIsPartitionableoptionalinterface{} #
Indicates whether this field can be used for partitioning queries to the data source.
isQueryableoptionalboolean | IResolvableis_queryableoptionaltyping.Union[bool, IResolvable]isQueryableoptionalBooleanIsQueryableoptionalboolIsQueryableoptionalinterface{} #
Indicates whether this field can be used in filter predicates when querying data.
namestringnamestrnameStringNamestringName*string required #
The name of the field.
responseDateFormatoptionalstringresponse_date_formatoptionalstrresponseDateFormatoptionalStringResponseDateFormatoptionalstringResponseDateFormatoptional*string #
The format pattern for parsing date values from API responses.

Accepts Java DateTimeFormatter patterns, EPOCH_SECONDS, or EPOCH_MILLIS.