import * as core from "@terrascript/core";

export interface MongodbSettingsArgs extends core.SchemaArgs {
  authMechanism?: string | core.StringOut;

  authSource?: string | core.StringOut;

  authType?: string | core.StringOut;

  docsToInvestigate?: string | core.StringOut;

  extractDocId?: string | core.StringOut;

  nestingLevel?: string | core.StringOut;
}

export class MongodbSettings extends core.Schema<MongodbSettingsArgs> {
  @core.attr(String)
  public authMechanism?: string | core.StringOut;

  @core.attr(String)
  public authSource?: string | core.StringOut;

  @core.attr(String)
  public authType?: string | core.StringOut;

  @core.attr(String)
  public docsToInvestigate?: string | core.StringOut;

  @core.attr(String)
  public extractDocId?: string | core.StringOut;

  @core.attr(String)
  public nestingLevel?: string | core.StringOut;
}

export interface KinesisSettingsArgs extends core.SchemaArgs {
  includeControlDetails?: boolean | core.BooleanOut;

  includeNullAndEmpty?: boolean | core.BooleanOut;

  includePartitionValue?: boolean | core.BooleanOut;

  includeTableAlterOperations?: boolean | core.BooleanOut;

  includeTransactionDetails?: boolean | core.BooleanOut;

  messageFormat?: string | core.StringOut;

  partitionIncludeSchemaTable?: boolean | core.BooleanOut;

  serviceAccessRoleArn?: string | core.StringOut;

  streamArn?: string | core.StringOut;
}

export class KinesisSettings extends core.Schema<KinesisSettingsArgs> {
  @core.attr(Boolean)
  public includeControlDetails?: boolean | core.BooleanOut;

  @core.attr(Boolean)
  public includeNullAndEmpty?: boolean | core.BooleanOut;

  @core.attr(Boolean)
  public includePartitionValue?: boolean | core.BooleanOut;

  @core.attr(Boolean)
  public includeTableAlterOperations?: boolean | core.BooleanOut;

  @core.attr(Boolean)
  public includeTransactionDetails?: boolean | core.BooleanOut;

  @core.attr(String)
  public messageFormat?: string | core.StringOut;

  @core.attr(Boolean)
  public partitionIncludeSchemaTable?: boolean | core.BooleanOut;

  @core.attr(String)
  public serviceAccessRoleArn?: string | core.StringOut;

  @core.attr(String)
  public streamArn?: string | core.StringOut;
}

export interface RedshiftSettingsArgs extends core.SchemaArgs {
  bucketFolder?: string | core.StringOut;

  bucketName?: string | core.StringOut;

  encryptionMode?: string | core.StringOut;

  serverSideEncryptionKmsKeyId?: string | core.StringOut;

  serviceAccessRoleArn?: string | core.StringOut;
}

export class RedshiftSettings extends core.Schema<RedshiftSettingsArgs> {
  @core.attr(String)
  public bucketFolder?: string | core.StringOut;

  @core.attr(String)
  public bucketName?: string | core.StringOut;

  @core.attr(String)
  public encryptionMode?: string | core.StringOut;

  @core.attr(String)
  public serverSideEncryptionKmsKeyId?: string | core.StringOut;

  @core.attr(String)
  public serviceAccessRoleArn?: string | core.StringOut;
}

export interface ElasticsearchSettingsArgs extends core.SchemaArgs {
  endpointUri: string | core.StringOut;

  errorRetryDuration?: number | core.NumberOut;

  fullLoadErrorPercentage?: number | core.NumberOut;

  serviceAccessRoleArn: string | core.StringOut;
}

export class ElasticsearchSettings extends core.Schema<ElasticsearchSettingsArgs> {
  @core.attr(String)
  public endpointUri!: string | core.StringOut;

  @core.attr(Number)
  public errorRetryDuration?: number | core.NumberOut;

  @core.attr(Number)
  public fullLoadErrorPercentage?: number | core.NumberOut;

  @core.attr(String)
  public serviceAccessRoleArn!: string | core.StringOut;
}

export interface S3SettingsArgs extends core.SchemaArgs {
  addColumnName?: boolean | core.BooleanOut;

  bucketFolder?: string | core.StringOut;

  bucketName?: string | core.StringOut;

  cannedAclForObjects?: string | core.StringOut;

  cdcInsertsAndUpdates?: boolean | core.BooleanOut;

  cdcInsertsOnly?: boolean | core.BooleanOut;

  cdcMaxBatchInterval?: number | core.NumberOut;

  cdcMinFileSize?: number | core.NumberOut;

  cdcPath?: string | core.StringOut;

  compressionType?: string | core.StringOut;

  csvDelimiter?: string | core.StringOut;

  csvNoSupValue?: string | core.StringOut;

  csvNullValue?: string | core.StringOut;

  csvRowDelimiter?: string | core.StringOut;

  dataFormat?: string | core.StringOut;

  dataPageSize?: number | core.NumberOut;

  datePartitionDelimiter?: string | core.StringOut;

  datePartitionEnabled?: boolean | core.BooleanOut;

  datePartitionSequence?: string | core.StringOut;

  dictPageSizeLimit?: number | core.NumberOut;

  enableStatistics?: boolean | core.BooleanOut;

  encodingType?: string | core.StringOut;

  encryptionMode?: string | core.StringOut;

  externalTableDefinition?: string | core.StringOut;

  ignoreHeadersRow?: number | core.NumberOut;

  includeOpForFullLoad?: boolean | core.BooleanOut;

  maxFileSize?: number | core.NumberOut;

  parquetTimestampInMillisecond?: boolean | core.BooleanOut;

  parquetVersion?: string | core.StringOut;

  preserveTransactions?: boolean | core.BooleanOut;

  rfc4180?: boolean | core.BooleanOut;

  rowGroupLength?: number | core.NumberOut;

  serverSideEncryptionKmsKeyId?: string | core.StringOut;

  serviceAccessRoleArn?: string | core.StringOut;

  timestampColumnName?: string | core.StringOut;

  useCsvNoSupValue?: boolean | core.BooleanOut;
}

export class S3Settings extends core.Schema<S3SettingsArgs> {
  @core.attr(Boolean)
  public addColumnName?: boolean | core.BooleanOut;

  @core.attr(String)
  public bucketFolder?: string | core.StringOut;

  @core.attr(String)
  public bucketName?: string | core.StringOut;

  @core.attr(String)
  public cannedAclForObjects?: string | core.StringOut;

  @core.attr(Boolean)
  public cdcInsertsAndUpdates?: boolean | core.BooleanOut;

  @core.attr(Boolean)
  public cdcInsertsOnly?: boolean | core.BooleanOut;

  @core.attr(Number)
  public cdcMaxBatchInterval?: number | core.NumberOut;

  @core.attr(Number)
  public cdcMinFileSize?: number | core.NumberOut;

  @core.attr(String)
  public cdcPath?: string | core.StringOut;

  @core.attr(String)
  public compressionType?: string | core.StringOut;

  @core.attr(String)
  public csvDelimiter?: string | core.StringOut;

  @core.attr(String)
  public csvNoSupValue?: string | core.StringOut;

  @core.attr(String)
  public csvNullValue?: string | core.StringOut;

  @core.attr(String)
  public csvRowDelimiter?: string | core.StringOut;

  @core.attr(String)
  public dataFormat?: string | core.StringOut;

  @core.attr(Number)
  public dataPageSize?: number | core.NumberOut;

  @core.attr(String)
  public datePartitionDelimiter?: string | core.StringOut;

  @core.attr(Boolean)
  public datePartitionEnabled?: boolean | core.BooleanOut;

  @core.attr(String)
  public datePartitionSequence?: string | core.StringOut;

  @core.attr(Number)
  public dictPageSizeLimit?: number | core.NumberOut;

  @core.attr(Boolean)
  public enableStatistics?: boolean | core.BooleanOut;

  @core.attr(String)
  public encodingType?: string | core.StringOut;

  @core.attr(String)
  public encryptionMode?: string | core.StringOut;

  @core.attr(String)
  public externalTableDefinition?: string | core.StringOut;

  @core.attr(Number)
  public ignoreHeadersRow?: number | core.NumberOut;

  @core.attr(Boolean)
  public includeOpForFullLoad?: boolean | core.BooleanOut;

  @core.attr(Number)
  public maxFileSize?: number | core.NumberOut;

  @core.attr(Boolean)
  public parquetTimestampInMillisecond?: boolean | core.BooleanOut;

  @core.attr(String)
  public parquetVersion?: string | core.StringOut;

  @core.attr(Boolean)
  public preserveTransactions?: boolean | core.BooleanOut;

  @core.attr(Boolean)
  public rfc4180?: boolean | core.BooleanOut;

  @core.attr(Number)
  public rowGroupLength?: number | core.NumberOut;

  @core.attr(String)
  public serverSideEncryptionKmsKeyId?: string | core.StringOut;

  @core.attr(String)
  public serviceAccessRoleArn?: string | core.StringOut;

  @core.attr(String)
  public timestampColumnName?: string | core.StringOut;

  @core.attr(Boolean)
  public useCsvNoSupValue?: boolean | core.BooleanOut;
}

export interface KafkaSettingsArgs extends core.SchemaArgs {
  broker: string | core.StringOut;

  includeControlDetails?: boolean | core.BooleanOut;

  includeNullAndEmpty?: boolean | core.BooleanOut;

  includePartitionValue?: boolean | core.BooleanOut;

  includeTableAlterOperations?: boolean | core.BooleanOut;

  includeTransactionDetails?: boolean | core.BooleanOut;

  messageFormat?: string | core.StringOut;

  messageMaxBytes?: number | core.NumberOut;

  noHexPrefix?: boolean | core.BooleanOut;

  partitionIncludeSchemaTable?: boolean | core.BooleanOut;

  saslPassword?: string | core.StringOut;

  saslUsername?: string | core.StringOut;

  securityProtocol?: string | core.StringOut;

  sslCaCertificateArn?: string | core.StringOut;

  sslClientCertificateArn?: string | core.StringOut;

  sslClientKeyArn?: string | core.StringOut;

  sslClientKeyPassword?: string | core.StringOut;

  topic?: string | core.StringOut;
}

export class KafkaSettings extends core.Schema<KafkaSettingsArgs> {
  @core.attr(String)
  public broker!: string | core.StringOut;

  @core.attr(Boolean)
  public includeControlDetails?: boolean | core.BooleanOut;

  @core.attr(Boolean)
  public includeNullAndEmpty?: boolean | core.BooleanOut;

  @core.attr(Boolean)
  public includePartitionValue?: boolean | core.BooleanOut;

  @core.attr(Boolean)
  public includeTableAlterOperations?: boolean | core.BooleanOut;

  @core.attr(Boolean)
  public includeTransactionDetails?: boolean | core.BooleanOut;

  @core.attr(String)
  public messageFormat?: string | core.StringOut;

  @core.attr(Number)
  public messageMaxBytes?: number | core.NumberOut;

  @core.attr(Boolean)
  public noHexPrefix?: boolean | core.BooleanOut;

  @core.attr(Boolean)
  public partitionIncludeSchemaTable?: boolean | core.BooleanOut;

  @core.attr(String)
  public saslPassword?: string | core.StringOut;

  @core.attr(String)
  public saslUsername?: string | core.StringOut;

  @core.attr(String)
  public securityProtocol?: string | core.StringOut;

  @core.attr(String)
  public sslCaCertificateArn?: string | core.StringOut;

  @core.attr(String)
  public sslClientCertificateArn?: string | core.StringOut;

  @core.attr(String)
  public sslClientKeyArn?: string | core.StringOut;

  @core.attr(String)
  public sslClientKeyPassword?: string | core.StringOut;

  @core.attr(String)
  public topic?: string | core.StringOut;
}

export interface EndpointArgs extends core.ResourceArgs {
  certificateArn?: string | core.StringOut;

  databaseName?: string | core.StringOut;

  elasticsearchSettings?: ElasticsearchSettings;

  endpointId: string | core.StringOut;

  endpointType: string | core.StringOut;

  engineName: string | core.StringOut;

  extraConnectionAttributes?: string | core.StringOut;

  kafkaSettings?: KafkaSettings;

  kinesisSettings?: KinesisSettings;

  kmsKeyArn?: string | core.StringOut;

  mongodbSettings?: MongodbSettings;

  password?: string | core.StringOut;

  port?: number | core.NumberOut;

  redshiftSettings?: RedshiftSettings;

  s3Settings?: S3Settings;

  secretsManagerAccessRoleArn?: string | core.StringOut;

  secretsManagerArn?: string | core.StringOut;

  serverName?: string | core.StringOut;

  serviceAccessRole?: string | core.StringOut;

  sslMode?: string | core.StringOut;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

  username?: string | core.StringOut;
}

export class Endpoint extends core.Resource<EndpointArgs> {
  @core.attr(String, { computed: true })
  public certificateArn?: string | core.StringOut;

  @core.attr(String)
  public databaseName?: string | core.StringOut;

  @core.attr(ElasticsearchSettings)
  public elasticsearchSettings?: ElasticsearchSettings;

  @core.attr(String, { computed: true })
  public endpointArn!: string | core.StringOut;

  @core.attr(String)
  public endpointId!: string | core.StringOut;

  @core.attr(String)
  public endpointType!: string | core.StringOut;

  @core.attr(String)
  public engineName!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public extraConnectionAttributes?: string | core.StringOut;

  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(KafkaSettings)
  public kafkaSettings?: KafkaSettings;

  @core.attr(KinesisSettings)
  public kinesisSettings?: KinesisSettings;

  @core.attr(String, { computed: true })
  public kmsKeyArn?: string | core.StringOut;

  @core.attr(MongodbSettings)
  public mongodbSettings?: MongodbSettings;

  @core.attr(String)
  public password?: string | core.StringOut;

  @core.attr(Number)
  public port?: number | core.NumberOut;

  @core.attr(RedshiftSettings, { computed: true })
  public redshiftSettings?: RedshiftSettings;

  @core.attr(S3Settings)
  public s3Settings?: S3Settings;

  @core.attr(String)
  public secretsManagerAccessRoleArn?: string | core.StringOut;

  @core.attr(String)
  public secretsManagerArn?: string | core.StringOut;

  @core.attr(String)
  public serverName?: string | core.StringOut;

  @core.attr(String)
  public serviceAccessRole?: string | core.StringOut;

  @core.attr(String, { computed: true })
  public sslMode?: string | core.StringOut;

  @core.attr(String, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @core.attr(String, { computed: true, kind: "map" })
  public tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @core.attr(String)
  public username?: string | core.StringOut;

  constructor(name: string, args?: EndpointArgs) {
    super(name, "aws_dms_endpoint", args);
  }

  public override getNamespace(): string {
    return "aws_dms";
  }
}
