# ViewDefinitionProperty

A structure that defines the view.

- Source: Generated at build time
- Type last changed: v2.253.0 · 6 May 2026

## Example

TypeScript:

```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 viewDefinitionProperty: glue.CfnTable.ViewDefinitionProperty = {
  definer: 'definer',
  isProtected: false,
  representations: [{
    dialect: 'dialect',
    dialectVersion: 'dialectVersion',
    validationConnection: 'validationConnection',
    viewExpandedText: 'viewExpandedText',
    viewOriginalText: 'viewOriginalText',
  }],
  subObjects: ['subObjects'],
};
```

Python:

```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

view_definition_property = glue.CfnTable.ViewDefinitionProperty(
    definer="definer",
    is_protected=False,
    representations=[glue.CfnTable.ViewRepresentationProperty(
        dialect="dialect",
        dialect_version="dialectVersion",
        validation_connection="validationConnection",
        view_expanded_text="viewExpandedText",
        view_original_text="viewOriginalText"
    )],
    sub_objects=["subObjects"]
)
```

Java:

```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.*;

ViewDefinitionProperty viewDefinitionProperty = ViewDefinitionProperty.builder()
        .definer("definer")
        .isProtected(false)
        .representations(List.of(ViewRepresentationProperty.builder()
                .dialect("dialect")
                .dialectVersion("dialectVersion")
                .validationConnection("validationConnection")
                .viewExpandedText("viewExpandedText")
                .viewOriginalText("viewOriginalText")
                .build()))
        .subObjects(List.of("subObjects"))
        .build();
```

C# / .NET:

```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 viewDefinitionProperty = new ViewDefinitionProperty {
    Definer = "definer",
    IsProtected = false,
    Representations = new [] { new ViewRepresentationProperty {
        Dialect = "dialect",
        DialectVersion = "dialectVersion",
        ValidationConnection = "validationConnection",
        ViewExpandedText = "viewExpandedText",
        ViewOriginalText = "viewOriginalText"
    } },
    SubObjects = new [] { "subObjects" }
};
```

Golang:

```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"

viewDefinitionProperty := &ViewDefinitionProperty{
	Definer: jsii.String("definer"),
	IsProtected: jsii.Boolean(false),
	Representations: []interface{}{
		&ViewRepresentationProperty{
			Dialect: jsii.String("dialect"),
			DialectVersion: jsii.String("dialectVersion"),
			ValidationConnection: jsii.String("validationConnection"),
			ViewExpandedText: jsii.String("viewExpandedText"),
			ViewOriginalText: jsii.String("viewOriginalText"),
		},
	},
	SubObjects: []*string{
		jsii.String("subObjects"),
	},
}
```

## Properties

- `definer`: string — The definer of the view.

- `isProtected`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether the view is protected.

- `representations`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTable.ViewRepresentationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_glue.CfnTable.ViewRepresentationProperty.html)[] — The representations of the view.

- `subObjects`: string[] — The sub-objects of the view.
