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

export interface DeploymentArgs extends core.ResourceArgs {
  applicationId: string | core.StringOut;

  configurationProfileId: string | core.StringOut;

  configurationVersion: string | core.StringOut;

  deploymentStrategyId: string | core.StringOut;

  description?: string | core.StringOut;

  environmentId: string | core.StringOut;

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

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

export class Deployment extends core.Resource<DeploymentArgs> {
  @core.attr(String)
  public applicationId!: string | core.StringOut;

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

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

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

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

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

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

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

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

  @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>;

  constructor(name: string, args?: DeploymentArgs) {
    super(name, "aws_appconfig_deployment", args);
  }

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