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

export interface IdentityPolicyArgs extends core.ResourceArgs {
  identity: string | core.StringOut;

  name: string | core.StringOut;

  policy: string | core.StringOut;
}

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

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

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

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

  constructor(name: string, args?: IdentityPolicyArgs) {
    super(name, "aws_ses_identity_policy", args);
  }

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