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

export interface DomainPermissionsPolicyArgs extends core.ResourceArgs {
  domain: string | core.StringOut;

  domainOwner?: string | core.StringOut;

  policyDocument: string | core.StringOut;

  policyRevision?: string | core.StringOut;
}

export class DomainPermissionsPolicy extends core.Resource<DomainPermissionsPolicyArgs> {
  @core.attr(String)
  public domain!: string | core.StringOut;

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

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

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

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

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

  constructor(name: string, args?: DomainPermissionsPolicyArgs) {
    super(name, "aws_codeartifact_domain_permissions_policy", args);
  }

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