SchemaReferenceProperty Struct
An object that references a schema stored in the AWS Glue Schema Registry.
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 schemaReferenceProperty: glue.CfnTable.SchemaReferenceProperty = {
schemaId: {
registryName: 'registryName',
schemaArn: 'schemaArn',
schemaName: 'schemaName',
},
schemaVersionId: 'schemaVersionId',
schemaVersionNumber: 123,
};
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
schema_reference_property = glue.CfnTable.SchemaReferenceProperty(
schema_id=glue.CfnTable.SchemaIdProperty(
registry_name="registryName",
schema_arn="schemaArn",
schema_name="schemaName"
),
schema_version_id="schemaVersionId",
schema_version_number=123
)
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.*;
SchemaReferenceProperty schemaReferenceProperty = SchemaReferenceProperty.builder()
.schemaId(SchemaIdProperty.builder()
.registryName("registryName")
.schemaArn("schemaArn")
.schemaName("schemaName")
.build())
.schemaVersionId("schemaVersionId")
.schemaVersionNumber(123)
.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 schemaReferenceProperty = new SchemaReferenceProperty {
SchemaId = new SchemaIdProperty {
RegistryName = "registryName",
SchemaArn = "schemaArn",
SchemaName = "schemaName"
},
SchemaVersionId = "schemaVersionId",
SchemaVersionNumber = 123
};
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"
schemaReferenceProperty := &SchemaReferenceProperty{
SchemaId: &SchemaIdProperty{
RegistryName: jsii.String("registryName"),
SchemaArn: jsii.String("schemaArn"),
SchemaName: jsii.String("schemaName"),
},
SchemaVersionId: jsii.String("schemaVersionId"),
SchemaVersionNumber: jsii.Number(123),
}
Properties
schemaIdoptionalIResolvable | CfnTable.SchemaIdPropertyschema_idoptionaltyping.Union[IResolvable, SchemaIdProperty]schemaIdoptionalIResolvableSchemaIdoptionalIResolvableSchemaIdoptionalinterface{}#A structure that contains schema identity fields.
Either this or the SchemaVersionId has to be provided.
schemaVersionIdoptionalstringschema_version_idoptionalstrschemaVersionIdoptionalStringSchemaVersionIdoptionalstringSchemaVersionIdoptional*string#The unique ID assigned to a version of the schema.
Either this or the SchemaId has to be provided.
schemaVersionNumberoptionalnumberschema_version_numberoptionalint | floatschemaVersionNumberoptionalNumberSchemaVersionNumberoptionaldoubleSchemaVersionNumberoptional*float64#The version number of the schema.