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

export interface DsLayerVersionArgs {
  compatibleArchitecture?: string | core.StringOut;

  compatibleRuntime?: string | core.StringOut;

  layerName: string | core.StringOut;

  version?: number | core.NumberOut;
}

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

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

  @core.attr(String, { computed: true, kind: "array" })
  public compatibleArchitectures!:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

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

  @core.attr(String, { computed: true, kind: "array" })
  public compatibleRuntimes!:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

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

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

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

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

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

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

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

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

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

  @core.attr(Number, { computed: true })
  public sourceCodeSize!: number | core.NumberOut;

  @core.attr(Number, { computed: true })
  public version?: number | core.NumberOut;

  constructor(name: string, args?: DsLayerVersionArgs) {
    super(name, "aws_lambda_layer_version", args);
  }

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