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 OrganizationConformancePackArgs extends core.ResourceArgs {
  deliveryS3Bucket?: string | core.StringOut;

  deliveryS3KeyPrefix?: string | core.StringOut;

  excludedAccounts?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

  name: string | core.StringOut;

  templateBody?: string | core.StringOut;

  templateS3Uri?: string | core.StringOut;
}

export class OrganizationConformancePack extends core.Resource<OrganizationConformancePackArgs> {
  @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, { kind: "array" })
  public excludedAccounts?: core.Array<string> | core.ArrayOut<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?: OrganizationConformancePackArgs) {
    super(name, "aws_config_organization_conformance_pack", args);
  }

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