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

export interface ProvisionedConcurrencyConfigArgs extends core.ResourceArgs {
  functionName: string | core.StringOut;

  provisionedConcurrentExecutions: number | core.NumberOut;

  qualifier: string | core.StringOut;
}

export class ProvisionedConcurrencyConfig extends core.Resource<ProvisionedConcurrencyConfigArgs> {
  @core.attr(String)
  public functionName!: string | core.StringOut;

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

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

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

  constructor(name: string, args?: ProvisionedConcurrencyConfigArgs) {
    super(name, "aws_lambda_provisioned_concurrency_config", args);
  }

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