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

export interface CloudwatchEncryptionArgs extends core.SchemaArgs {
  cloudwatchEncryptionMode?: string | core.StringOut;

  kmsKeyArn?: string | core.StringOut;
}

export class CloudwatchEncryption extends core.Schema<CloudwatchEncryptionArgs> {
  @core.attr(String)
  public cloudwatchEncryptionMode?: string | core.StringOut;

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

export interface JobBookmarksEncryptionArgs extends core.SchemaArgs {
  jobBookmarksEncryptionMode?: string | core.StringOut;

  kmsKeyArn?: string | core.StringOut;
}

export class JobBookmarksEncryption extends core.Schema<JobBookmarksEncryptionArgs> {
  @core.attr(String)
  public jobBookmarksEncryptionMode?: string | core.StringOut;

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

export interface S3EncryptionArgs extends core.SchemaArgs {
  kmsKeyArn?: string | core.StringOut;

  s3EncryptionMode?: string | core.StringOut;
}

export class S3Encryption extends core.Schema<S3EncryptionArgs> {
  @core.attr(String)
  public kmsKeyArn?: string | core.StringOut;

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

export interface EncryptionConfigurationArgs extends core.SchemaArgs {
  cloudwatchEncryption: CloudwatchEncryption;

  jobBookmarksEncryption: JobBookmarksEncryption;

  s3Encryption: S3Encryption;
}

export class EncryptionConfiguration extends core.Schema<EncryptionConfigurationArgs> {
  @core.attr(CloudwatchEncryption)
  public cloudwatchEncryption!: CloudwatchEncryption;

  @core.attr(JobBookmarksEncryption)
  public jobBookmarksEncryption!: JobBookmarksEncryption;

  @core.attr(S3Encryption)
  public s3Encryption!: S3Encryption;
}

export interface SecurityConfigurationArgs extends core.ResourceArgs {
  encryptionConfiguration: EncryptionConfiguration;

  name: string | core.StringOut;
}

export class SecurityConfiguration extends core.Resource<SecurityConfigurationArgs> {
  @core.attr(EncryptionConfiguration)
  public encryptionConfiguration!: EncryptionConfiguration;

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

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

  constructor(name: string, args?: SecurityConfigurationArgs) {
    super(name, "aws_glue_security_configuration", args);
  }

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