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

export interface LoggingConfigArgs extends core.SchemaArgs {
  logGroupName: string | core.StringOut;

  logRoleArn: string | core.StringOut;
}

export class LoggingConfig extends core.Schema<LoggingConfigArgs> {
  @core.attr(String, { computed: true })
  public logGroupName!: string | core.StringOut;

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

export interface DsTypeArgs {
  arn?: string | core.StringOut;

  type?: string | core.StringOut;

  typeName?: string | core.StringOut;

  versionId?: string | core.StringOut;
}

export class DsType extends core.Data<DsTypeArgs> {
  @core.attr(String, { computed: true })
  public arn?: string | core.StringOut;

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

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

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

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

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

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

  @core.attr(Boolean, { computed: true })
  public isDefaultVersion!: boolean | core.BooleanOut;

  @core.attr(LoggingConfig, { computed: true, kind: "array" })
  public loggingConfig!:
    | core.Array<LoggingConfig>
    | core.ArrayOut<LoggingConfig>;

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsTypeArgs) {
    super(name, "aws_cloudformation_type", args);
  }

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