import * as core from "@terrascript/core"; export interface SubDomainArgs extends core.SchemaArgs { branchName: string | core.StringOut; dnsRecord: string | core.StringOut; prefix: string | core.StringOut; verified: boolean | core.BooleanOut; } export class SubDomain extends core.Schema { @core.attr(String) public branchName!: string | core.StringOut; @core.attr(String, { computed: true }) public dnsRecord!: string | core.StringOut; @core.attr(String) public prefix!: string | core.StringOut; @core.attr(Boolean, { computed: true }) public verified!: boolean | core.BooleanOut; } export interface DomainAssociationArgs extends core.ResourceArgs { /** * (Required) The unique ID for an Amplify app. */ appId: string | core.StringOut; /** * (Required) The domain name for the domain association. */ domainName: string | core.StringOut; /** * (Required) The setting for the subdomain. Documented below. */ subDomain: core.Array | core.ArrayOut; /** * (Optional) If enabled, the resource will wait for the domain association status to change to `PENDIN * G_DEPLOYMENT` or `AVAILABLE`. Setting this to `false` will skip the process. Default: `true`. */ waitForVerification?: boolean | core.BooleanOut; } export class DomainAssociation extends core.Resource { /** * (Required) The unique ID for an Amplify app. */ @core.attr(String) public appId!: string | core.StringOut; /** * The Amazon Resource Name (ARN) for the domain association. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The DNS record for certificate verification. */ @core.attr(String, { computed: true }) public certificateVerificationDnsRecord!: string | core.StringOut; /** * (Required) The domain name for the domain association. */ @core.attr(String) public domainName!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The setting for the subdomain. Documented below. */ @core.attr(SubDomain, { kind: "array" }) public subDomain!: core.Array | core.ArrayOut; /** * (Optional) If enabled, the resource will wait for the domain association status to change to `PENDIN * G_DEPLOYMENT` or `AVAILABLE`. Setting this to `false` will skip the process. Default: `true`. */ @core.attr(Boolean) public waitForVerification?: boolean | core.BooleanOut; constructor(name: string, args?: DomainAssociationArgs) { super(name, "aws_amplify_domain_association", args); } public override getNamespace(): string { return "aws_amplify"; } }