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

export interface EndpointConfigurationArgs extends core.SchemaArgs {
  types: core.Array<string> | core.ArrayOut<core.StringOut>;

  vpcEndpointIds: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export class EndpointConfiguration extends core.Schema<EndpointConfigurationArgs> {
  @core.attr(String, { computed: true, kind: "array" })
  public types!: core.Array<string> | core.ArrayOut<core.StringOut>;

  @core.attr(String, { computed: true, kind: "array" })
  public vpcEndpointIds!: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export interface DsRestApiArgs {
  name: string | core.StringOut;

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

export class DsRestApi extends core.Data<DsRestApiArgs> {
  @core.attr(String, { computed: true })
  public apiKeySource!: string | core.StringOut;

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

  @core.attr(String, { computed: true, kind: "array" })
  public binaryMediaTypes!: core.Array<string> | core.ArrayOut<core.StringOut>;

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

  @core.attr(EndpointConfiguration, { computed: true, kind: "array" })
  public endpointConfiguration!:
    | core.Array<EndpointConfiguration>
    | core.ArrayOut<EndpointConfiguration>;

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

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

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

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

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

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

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

  constructor(name: string, args?: DsRestApiArgs) {
    super(name, "aws_api_gateway_rest_api", args);
  }

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