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

export interface OpenidConnectProviderArgs extends core.ResourceArgs {
  clientIdList: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

  thumbprintList: core.Array<string> | core.ArrayOut<core.StringOut>;

  url: string | core.StringOut;
}

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

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

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

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

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

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

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

  constructor(name: string, args?: OpenidConnectProviderArgs) {
    super(name, "aws_iam_openid_connect_provider", args);
  }

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