import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AppRunnerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppRunnerClient"; import type { AssociateCustomDomainRequest, AssociateCustomDomainResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link AssociateCustomDomainCommand}. */ export interface AssociateCustomDomainCommandInput extends AssociateCustomDomainRequest { } /** * @public * * The output of {@link AssociateCustomDomainCommand}. */ export interface AssociateCustomDomainCommandOutput extends AssociateCustomDomainResponse, __MetadataBearer { } declare const AssociateCustomDomainCommand_base: { new (input: AssociateCustomDomainCommandInput): import("@smithy/core/client").CommandImpl; new (input: AssociateCustomDomainCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Associate your own domain name with the App Runner subdomain URL of your App Runner service.

*

After you call AssociateCustomDomain and receive a successful response, use the information in the CustomDomain record * that's returned to add CNAME records to your Domain Name System (DNS). For each mapped domain name, add a mapping to the target App Runner subdomain and one or * more certificate validation records. App Runner then performs DNS validation to verify that you own or control the domain name that you associated. App Runner tracks * domain validity in a certificate stored in AWS Certificate Manager (ACM).

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AppRunnerClient, AssociateCustomDomainCommand } from "@aws-sdk/client-apprunner"; // ES Modules import * // const { AppRunnerClient, AssociateCustomDomainCommand } = require("@aws-sdk/client-apprunner"); // CommonJS import * // import type { AppRunnerClientConfig } from "@aws-sdk/client-apprunner"; * const config = {}; // type is AppRunnerClientConfig * const client = new AppRunnerClient(config); * const input = { // AssociateCustomDomainRequest * ServiceArn: "STRING_VALUE", // required * DomainName: "STRING_VALUE", // required * EnableWWWSubdomain: true || false, * }; * const command = new AssociateCustomDomainCommand(input); * const response = await client.send(command); * // { // AssociateCustomDomainResponse * // DNSTarget: "STRING_VALUE", // required * // ServiceArn: "STRING_VALUE", // required * // CustomDomain: { // CustomDomain * // DomainName: "STRING_VALUE", // required * // EnableWWWSubdomain: true || false, // required * // CertificateValidationRecords: [ // CertificateValidationRecordList * // { // CertificateValidationRecord * // Name: "STRING_VALUE", * // Type: "STRING_VALUE", * // Value: "STRING_VALUE", * // Status: "PENDING_VALIDATION" || "SUCCESS" || "FAILED", * // }, * // ], * // Status: "CREATING" || "CREATE_FAILED" || "ACTIVE" || "DELETING" || "DELETE_FAILED" || "PENDING_CERTIFICATE_DNS_VALIDATION" || "BINDING_CERTIFICATE", // required * // }, * // VpcDNSTargets: [ // VpcDNSTargetList // required * // { // VpcDNSTarget * // VpcIngressConnectionArn: "STRING_VALUE", * // VpcId: "STRING_VALUE", * // DomainName: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param AssociateCustomDomainCommandInput - {@link AssociateCustomDomainCommandInput} * @returns {@link AssociateCustomDomainCommandOutput} * @see {@link AssociateCustomDomainCommandInput} for command's `input` shape. * @see {@link AssociateCustomDomainCommandOutput} for command's `response` shape. * @see {@link AppRunnerClientResolvedConfig | config} for AppRunnerClient's `config` shape. * * @throws {@link InternalServiceErrorException} (server fault) *

An unexpected service exception occurred.

* * @throws {@link InvalidRequestException} (client fault) *

One or more input parameters aren't valid. Refer to the API action's document page, correct the input parameters, and try the action again.

* * @throws {@link InvalidStateException} (client fault) *

You can't perform this action when the resource is in its current state.

* * @throws {@link AppRunnerServiceException} *

Base exception class for all service exceptions from AppRunner service.

* * * @public */ export declare class AssociateCustomDomainCommand extends AssociateCustomDomainCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AssociateCustomDomainRequest; output: AssociateCustomDomainResponse; }; sdk: { input: AssociateCustomDomainCommandInput; output: AssociateCustomDomainCommandOutput; }; }; }