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

export interface BackendEnvironmentArgs extends core.ResourceArgs {
  appId: string | core.StringOut;

  deploymentArtifacts?: string | core.StringOut;

  environmentName: string | core.StringOut;

  stackName?: string | core.StringOut;
}

export class BackendEnvironment extends core.Resource<BackendEnvironmentArgs> {
  @core.attr(String)
  public appId!: string | core.StringOut;

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

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

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

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

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

  constructor(name: string, args?: BackendEnvironmentArgs) {
    super(name, "aws_amplify_backend_environment", args);
  }

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