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

export interface EnvironmentEc2Args extends core.ResourceArgs {
  automaticStopTimeMinutes?: number | core.NumberOut;

  connectionType?: string | core.StringOut;

  description?: string | core.StringOut;

  imageId?: string | core.StringOut;

  instanceType: string | core.StringOut;

  name: string | core.StringOut;

  ownerArn?: string | core.StringOut;

  subnetId?: string | core.StringOut;

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

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

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

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

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

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

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

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

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

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

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

  @core.attr(String)
  public subnetId?: 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 type!: string | core.StringOut;

  constructor(name: string, args?: EnvironmentEc2Args) {
    super(name, "aws_cloud9_environment_ec2", args);
  }

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