import * as core from "@terrascript/core"; export interface DomainPolicyArgs extends core.ResourceArgs { /** * (Optional) IAM policy document specifying the access policies for the domain */ accessPolicies: string | core.StringOut; /** * (Required) Name of the domain. */ domainName: string | core.StringOut; } export class DomainPolicy extends core.Resource { /** * (Optional) IAM policy document specifying the access policies for the domain */ @core.attr(String) public accessPolicies!: string | core.StringOut; /** * (Required) Name of the domain. */ @core.attr(String) public domainName!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; constructor(name: string, args?: DomainPolicyArgs) { super(name, "aws_elasticsearch_domain_policy", args); } public override getNamespace(): string { return "aws_elasticsearch"; } }