import * as core from "@terrascript/core"; export interface CertificateValidationRecordsArgs extends core.SchemaArgs { name: string | core.StringOut; status: string | core.StringOut; type: string | core.StringOut; value: string | core.StringOut; } export class CertificateValidationRecords extends core.Schema { @core.attr(String, { computed: true }) public name!: string | core.StringOut; @core.attr(String, { computed: true }) public status!: string | core.StringOut; @core.attr(String, { computed: true }) public type!: string | core.StringOut; @core.attr(String, { computed: true }) public value!: string | core.StringOut; } export interface CustomDomainAssociationArgs extends core.ResourceArgs { /** * (Required) The custom domain endpoint to association. Specify a base domain e.g., `example.com` or a * subdomain e.g., `subdomain.example.com`. */ domainName: string | core.StringOut; enableWwwSubdomain?: boolean | core.BooleanOut; /** * (Required) The ARN of the App Runner service. */ serviceArn: string | core.StringOut; } export class CustomDomainAssociation extends core.Resource { /** * A set of certificate CNAME records used for this domain name. See [Certificate Validation Records](# * certificate-validation-records) below for more details. */ @core.attr(CertificateValidationRecords, { computed: true, kind: "array" }) public certificateValidationRecords!: | core.Array | core.ArrayOut; /** * The App Runner subdomain of the App Runner service. The custom domain name is mapped to this target * name. Attribute only available if resource created (not imported) with Terraform. */ @core.attr(String, { computed: true }) public dnsTarget!: string | core.StringOut; /** * (Required) The custom domain endpoint to association. Specify a base domain e.g., `example.com` or a * subdomain e.g., `subdomain.example.com`. */ @core.attr(String) public domainName!: string | core.StringOut; @core.attr(Boolean) public enableWwwSubdomain?: boolean | core.BooleanOut; /** * The `domain_name` and `service_arn` separated by a comma (`,`). */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The ARN of the App Runner service. */ @core.attr(String) public serviceArn!: string | core.StringOut; /** * The current state of the certificate CNAME record validation. It should change to `SUCCESS` after Ap * p Runner completes validation with your DNS. */ @core.attr(String, { computed: true }) public status!: string | core.StringOut; constructor(name: string, args?: CustomDomainAssociationArgs) { super(name, "aws_apprunner_custom_domain_association", args); } public override getNamespace(): string { return "aws_apprunner"; } }