# SchemaReferenceProperty

An object that references a schema stored in the AWS Glue Schema Registry.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## 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 schemaReferenceProperty: glue.CfnTable.SchemaReferenceProperty = {
  schemaId: {
    registryName: 'registryName',
    schemaArn: 'schemaArn',
    schemaName: 'schemaName',
  },
  schemaVersionId: 'schemaVersionId',
  schemaVersionNumber: 123,
};
```

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

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:

```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();
```

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 schemaReferenceProperty = new SchemaReferenceProperty {
    SchemaId = new SchemaIdProperty {
        RegistryName = "registryName",
        SchemaArn = "schemaArn",
        SchemaName = "schemaName"
    },
    SchemaVersionId = "schemaVersionId",
    SchemaVersionNumber = 123
};
```

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"

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

- `schemaId`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTable.SchemaIdProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.CfnTable.SchemaIdProperty.html) — A structure that contains schema identity fields.

  Either this or the `SchemaVersionId` has to be
  provided.

- `schemaVersionId`: string — The unique ID assigned to a version of the schema.

  Either this or the `SchemaId` has to be provided.

- `schemaVersionNumber`: number — The version number of the schema.
