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

export interface InputParameterArgs extends core.SchemaArgs {
  parameterName: string | core.StringOut;

  parameterValue: string | core.StringOut;
}

export class InputParameter extends core.Schema<InputParameterArgs> {
  @core.attr(String)
  public parameterName!: string | core.StringOut;

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

export interface ConformancePackArgs extends core.ResourceArgs {
  deliveryS3Bucket?: string | core.StringOut;

  deliveryS3KeyPrefix?: string | core.StringOut;

  inputParameter?: core.Array<InputParameter> | core.ArrayOut<InputParameter>;

  name: string | core.StringOut;

  templateBody?: string | core.StringOut;

  templateS3Uri?: string | core.StringOut;
}

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

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

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

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

  @core.attr(InputParameter, { kind: "array" })
  public inputParameter?:
    | core.Array<InputParameter>
    | core.ArrayOut<InputParameter>;

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

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

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

  constructor(name: string, args?: ConformancePackArgs) {
    super(name, "aws_config_conformance_pack", args);
  }

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