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

export interface CertificateArgs extends core.SchemaArgs {
  certificateName: string | core.StringOut;

  domainNames: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export class Certificate extends core.Schema<CertificateArgs> {
  @core.attr(String)
  public certificateName!: string | core.StringOut;

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

export interface PublicDomainNamesArgs extends core.SchemaArgs {
  certificate: core.Array<Certificate> | core.ArrayOut<Certificate>;
}

export class PublicDomainNames extends core.Schema<PublicDomainNamesArgs> {
  @core.attr(Certificate, { kind: "array" })
  public certificate!: core.Array<Certificate> | core.ArrayOut<Certificate>;
}

export interface ContainerServiceArgs extends core.ResourceArgs {
  isDisabled?: boolean | core.BooleanOut;

  name: string | core.StringOut;

  power: string | core.StringOut;

  publicDomainNames?: PublicDomainNames;

  scale: number | core.NumberOut;

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

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

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

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

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

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

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

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

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

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

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

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

  @core.attr(PublicDomainNames)
  public publicDomainNames?: PublicDomainNames;

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

  @core.attr(Number)
  public scale!: number | core.NumberOut;

  @core.attr(String, { computed: true })
  public state!: 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, { computed: true })
  public url!: string | core.StringOut;

  constructor(name: string, args?: ContainerServiceArgs) {
    super(name, "aws_lightsail_container_service", args);
  }

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