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

export interface DsPolicyArgs {
  arn?: string | core.StringOut;

  name?: string | core.StringOut;

  pathPrefix?: string | core.StringOut;

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

export class DsPolicy extends core.Data<DsPolicyArgs> {
  @core.attr(String, { computed: true })
  public arn?: string | core.StringOut;

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsPolicyArgs) {
    super(name, "aws_iam_policy", args);
  }

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