Class CfnSchema.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnSchema.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSchema>
- Enclosing class:
CfnSchema
@Stability(Stable)
public static final class CfnSchema.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSchema>
A fluent builder for
CfnSchema
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
checkpointVersion
(IResolvable checkpointVersion) Specify theVersionNumber
or theIsLatest
for setting the checkpoint for the schema.checkpointVersion
(CfnSchema.SchemaVersionProperty checkpointVersion) Specify theVersionNumber
or theIsLatest
for setting the checkpoint for the schema.compatibility
(String compatibility) The compatibility mode of the schema.static CfnSchema.Builder
dataFormat
(String dataFormat) The data format of the schema definition.description
(String description) A description of the schema if specified when created.Name of the schema to be created of max length of 255, and may only contain letters, numbers, hyphen, underscore, dollar sign, or hash mark.registry
(IResolvable registry) The registry where a schema is stored.registry
(CfnSchema.RegistryProperty registry) The registry where a schema is stored.schemaDefinition
(String schemaDefinition) The schema definition using theDataFormat
setting forSchemaName
.AWS tags that contain a key value pair and may be searched by console, command line, or API.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnSchema.Builder
.
-
compatibility
The compatibility mode of the schema.- Parameters:
compatibility
- The compatibility mode of the schema. This parameter is required.- Returns:
this
-
dataFormat
The data format of the schema definition.Currently only
AVRO
is supported.- Parameters:
dataFormat
- The data format of the schema definition. This parameter is required.- Returns:
this
-
name
Name of the schema to be created of max length of 255, and may only contain letters, numbers, hyphen, underscore, dollar sign, or hash mark.No whitespace.
- Parameters:
name
- Name of the schema to be created of max length of 255, and may only contain letters, numbers, hyphen, underscore, dollar sign, or hash mark. This parameter is required.- Returns:
this
-
schemaDefinition
The schema definition using theDataFormat
setting forSchemaName
.- Parameters:
schemaDefinition
- The schema definition using theDataFormat
setting forSchemaName
. This parameter is required.- Returns:
this
-
checkpointVersion
Specify theVersionNumber
or theIsLatest
for setting the checkpoint for the schema.This is only required for updating a checkpoint.
- Parameters:
checkpointVersion
- Specify theVersionNumber
or theIsLatest
for setting the checkpoint for the schema. This parameter is required.- Returns:
this
-
checkpointVersion
@Stability(Stable) public CfnSchema.Builder checkpointVersion(CfnSchema.SchemaVersionProperty checkpointVersion) Specify theVersionNumber
or theIsLatest
for setting the checkpoint for the schema.This is only required for updating a checkpoint.
- Parameters:
checkpointVersion
- Specify theVersionNumber
or theIsLatest
for setting the checkpoint for the schema. This parameter is required.- Returns:
this
-
description
A description of the schema if specified when created.- Parameters:
description
- A description of the schema if specified when created. This parameter is required.- Returns:
this
-
registry
The registry where a schema is stored.- Parameters:
registry
- The registry where a schema is stored. This parameter is required.- Returns:
this
-
registry
The registry where a schema is stored.- Parameters:
registry
- The registry where a schema is stored. This parameter is required.- Returns:
this
-
tags
AWS tags that contain a key value pair and may be searched by console, command line, or API.- Parameters:
tags
- AWS tags that contain a key value pair and may be searched by console, command line, or API. This parameter is required.- Returns:
this
-
build
-