-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnSchemaProps.go
80 lines (77 loc) · 3.47 KB
/
CfnSchemaProps.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package awsglue
import (
"github.com/aws/aws-cdk-go/awscdk/v2"
)
// Properties for defining a `CfnSchema`.
//
// Example:
// // 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"
//
// cfnSchemaProps := &CfnSchemaProps{
// Compatibility: jsii.String("compatibility"),
// DataFormat: jsii.String("dataFormat"),
// Name: jsii.String("name"),
// SchemaDefinition: jsii.String("schemaDefinition"),
//
// // the properties below are optional
// CheckpointVersion: &SchemaVersionProperty{
// IsLatest: jsii.Boolean(false),
// VersionNumber: jsii.Number(123),
// },
// Description: jsii.String("description"),
// Registry: &RegistryProperty{
// Arn: jsii.String("arn"),
// Name: jsii.String("name"),
// },
// Tags: []cfnTag{
// &cfnTag{
// Key: jsii.String("key"),
// Value: jsii.String("value"),
// },
// },
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-schema.html
//
type CfnSchemaProps struct {
// The compatibility mode of the schema.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-schema.html#cfn-glue-schema-compatibility
//
Compatibility *string `field:"required" json:"compatibility" yaml:"compatibility"`
// The data format of the schema definition.
//
// Currently only `AVRO` is supported.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-schema.html#cfn-glue-schema-dataformat
//
DataFormat *string `field:"required" json:"dataFormat" yaml:"dataFormat"`
// 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.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-schema.html#cfn-glue-schema-name
//
Name *string `field:"required" json:"name" yaml:"name"`
// The schema definition using the `DataFormat` setting for `SchemaName` .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-schema.html#cfn-glue-schema-schemadefinition
//
SchemaDefinition *string `field:"required" json:"schemaDefinition" yaml:"schemaDefinition"`
// Specify the `VersionNumber` or the `IsLatest` for setting the checkpoint for the schema.
//
// This is only required for updating a checkpoint.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-schema.html#cfn-glue-schema-checkpointversion
//
CheckpointVersion interface{} `field:"optional" json:"checkpointVersion" yaml:"checkpointVersion"`
// A description of the schema if specified when created.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-schema.html#cfn-glue-schema-description
//
Description *string `field:"optional" json:"description" yaml:"description"`
// The registry where a schema is stored.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-schema.html#cfn-glue-schema-registry
//
Registry interface{} `field:"optional" json:"registry" yaml:"registry"`
// AWS tags that contain a key value pair and may be searched by console, command line, or API.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-schema.html#cfn-glue-schema-tags
//
Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
}