Skip to content
v2.277.0

ViewDefinitionProperty Struct ​

A structure that defines the view.

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

defineroptionalstringdefineroptionalstrdefineroptionalStringDefineroptionalstringDefineroptional*string #
The definer of the view.
isProtectedoptionalboolean | IResolvableis_protectedoptionaltyping.Union[bool, IResolvable]isProtectedoptionalBooleanIsProtectedoptionalboolIsProtectedoptionalinterface{} #
Indicates whether the view is protected.
representationsoptionalIResolvable | IResolvable | CfnTable.ViewRepresentationProperty[]representationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ViewRepresentationProperty]]]representationsoptionalIResolvableRepresentationsoptionalIResolvableRepresentationsoptionalinterface{} #
The representations of the view.
subObjectsoptionalstring[]sub_objectsoptionaltyping.List[str]subObjectsoptionalList<String>SubObjectsoptionalstring[]SubObjectsoptional*[]*string #
The sub-objects of the view.