// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Glue */ export interface GlueSchemaConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_schema.html#compatibility GlueSchema#compatibility} */ readonly compatibility: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_schema.html#data_format GlueSchema#data_format} */ readonly dataFormat: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_schema.html#description GlueSchema#description} */ readonly description?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_schema.html#registry_arn GlueSchema#registry_arn} */ readonly registryArn?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_schema.html#schema_definition GlueSchema#schema_definition} */ readonly schemaDefinition: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_schema.html#schema_name GlueSchema#schema_name} */ readonly schemaName: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_schema.html#tags GlueSchema#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_schema.html#tags_all GlueSchema#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/glue_schema.html aws_glue_schema} */ export class GlueSchema extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_glue_schema"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/glue_schema.html aws_glue_schema} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options GlueSchemaConfig */ public constructor(scope: Construct, id: string, config: GlueSchemaConfig) { super(scope, id, { terraformResourceType: 'aws_glue_schema', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._compatibility = config.compatibility; this._dataFormat = config.dataFormat; this._description = config.description; this._registryArn = config.registryArn; this._schemaDefinition = config.schemaDefinition; this._schemaName = config.schemaName; this._tags = config.tags; this._tagsAll = config.tagsAll; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // compatibility - computed: false, optional: false, required: true private _compatibility?: string; public get compatibility() { return this.getStringAttribute('compatibility'); } public set compatibility(value: string) { this._compatibility = value; } // Temporarily expose input value. Use with caution. public get compatibilityInput() { return this._compatibility; } // data_format - computed: false, optional: false, required: true private _dataFormat?: string; public get dataFormat() { return this.getStringAttribute('data_format'); } public set dataFormat(value: string) { this._dataFormat = value; } // Temporarily expose input value. Use with caution. public get dataFormatInput() { return this._dataFormat; } // description - computed: false, optional: true, required: false private _description?: string; public get description() { return this.getStringAttribute('description'); } public set description(value: string) { this._description = value; } public resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. public get descriptionInput() { return this._description; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // latest_schema_version - computed: true, optional: false, required: false public get latestSchemaVersion() { return this.getNumberAttribute('latest_schema_version'); } // next_schema_version - computed: true, optional: false, required: false public get nextSchemaVersion() { return this.getNumberAttribute('next_schema_version'); } // registry_arn - computed: true, optional: true, required: false private _registryArn?: string; public get registryArn() { return this.getStringAttribute('registry_arn'); } public set registryArn(value: string) { this._registryArn = value; } public resetRegistryArn() { this._registryArn = undefined; } // Temporarily expose input value. Use with caution. public get registryArnInput() { return this._registryArn; } // registry_name - computed: true, optional: false, required: false public get registryName() { return this.getStringAttribute('registry_name'); } // schema_checkpoint - computed: true, optional: false, required: false public get schemaCheckpoint() { return this.getNumberAttribute('schema_checkpoint'); } // schema_definition - computed: false, optional: false, required: true private _schemaDefinition?: string; public get schemaDefinition() { return this.getStringAttribute('schema_definition'); } public set schemaDefinition(value: string) { this._schemaDefinition = value; } // Temporarily expose input value. Use with caution. public get schemaDefinitionInput() { return this._schemaDefinition; } // schema_name - computed: false, optional: false, required: true private _schemaName?: string; public get schemaName() { return this.getStringAttribute('schema_name'); } public set schemaName(value: string) { this._schemaName = value; } // Temporarily expose input value. Use with caution. public get schemaNameInput() { return this._schemaName; } // tags - computed: false, optional: true, required: false private _tags?: { [key: string]: string } | cdktf.IResolvable; public get tags() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags') as any; } public set tags(value: { [key: string]: string } | cdktf.IResolvable) { this._tags = value; } public resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. public get tagsInput() { return this._tags; } // tags_all - computed: true, optional: true, required: false private _tagsAll?: { [key: string]: string } | cdktf.IResolvable; public get tagsAll() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags_all') as any; } public set tagsAll(value: { [key: string]: string } | cdktf.IResolvable) { this._tagsAll = value; } public resetTagsAll() { this._tagsAll = undefined; } // Temporarily expose input value. Use with caution. public get tagsAllInput() { return this._tagsAll; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { compatibility: cdktf.stringToTerraform(this._compatibility), data_format: cdktf.stringToTerraform(this._dataFormat), description: cdktf.stringToTerraform(this._description), registry_arn: cdktf.stringToTerraform(this._registryArn), schema_definition: cdktf.stringToTerraform(this._schemaDefinition), schema_name: cdktf.stringToTerraform(this._schemaName), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), }; } }