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

export interface ClusterIamRolesArgs extends core.ResourceArgs {
  clusterIdentifier: string | core.StringOut;

  defaultIamRoleArn?: string | core.StringOut;

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

export class ClusterIamRoles extends core.Resource<ClusterIamRolesArgs> {
  @core.attr(String)
  public clusterIdentifier!: string | core.StringOut;

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

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

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

  constructor(name: string, args?: ClusterIamRolesArgs) {
    super(name, "aws_redshift_cluster_iam_roles", args);
  }

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