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

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

  restApiId: string | core.StringOut;

  stageDescription?: string | core.StringOut;

  stageName?: string | core.StringOut;

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

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

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

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

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

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

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

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

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

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

  @core.attr(String, { kind: "map" })
  public triggers?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @core.attr(String, { kind: "map" })
  public variables?: core.Map<string, string> | core.MapOut<core.StringOut>;

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

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