- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
DeleteDomainAssociationCommand
Deletes a domain association for an Amplify app.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { AmplifyClient, DeleteDomainAssociationCommand } from "@aws-sdk/client-amplify"; // ES Modules import
// const { AmplifyClient, DeleteDomainAssociationCommand } = require("@aws-sdk/client-amplify"); // CommonJS import
const client = new AmplifyClient(config);
const input = { // DeleteDomainAssociationRequest
appId: "STRING_VALUE", // required
domainName: "STRING_VALUE", // required
};
const command = new DeleteDomainAssociationCommand(input);
const response = await client.send(command);
// { // DeleteDomainAssociationResult
// domainAssociation: { // DomainAssociation
// domainAssociationArn: "STRING_VALUE", // required
// domainName: "STRING_VALUE", // required
// enableAutoSubDomain: true || false, // required
// autoSubDomainCreationPatterns: [ // AutoSubDomainCreationPatterns
// "STRING_VALUE",
// ],
// autoSubDomainIAMRole: "STRING_VALUE",
// domainStatus: "PENDING_VERIFICATION" || "IN_PROGRESS" || "AVAILABLE" || "IMPORTING_CUSTOM_CERTIFICATE" || "PENDING_DEPLOYMENT" || "AWAITING_APP_CNAME" || "FAILED" || "CREATING" || "REQUESTING_CERTIFICATE" || "UPDATING", // required
// updateStatus: "REQUESTING_CERTIFICATE" || "PENDING_VERIFICATION" || "IMPORTING_CUSTOM_CERTIFICATE" || "PENDING_DEPLOYMENT" || "AWAITING_APP_CNAME" || "UPDATE_COMPLETE" || "UPDATE_FAILED",
// statusReason: "STRING_VALUE", // required
// certificateVerificationDNSRecord: "STRING_VALUE",
// subDomains: [ // SubDomains // required
// { // SubDomain
// subDomainSetting: { // SubDomainSetting
// prefix: "STRING_VALUE", // required
// branchName: "STRING_VALUE", // required
// },
// verified: true || false, // required
// dnsRecord: "STRING_VALUE", // required
// },
// ],
// certificate: { // Certificate
// type: "AMPLIFY_MANAGED" || "CUSTOM", // required
// customCertificateArn: "STRING_VALUE",
// certificateVerificationDNSRecord: "STRING_VALUE",
// },
// },
// };
DeleteDomainAssociationCommand Input
See DeleteDomainAssociationCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
appId Required | string | undefined | The unique id for an Amplify app. |
domainName Required | string | undefined | The name of the domain. |
DeleteDomainAssociationCommand Output
See DeleteDomainAssociationCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
domainAssociation Required | DomainAssociation | undefined | Describes the association between a custom domain and an Amplify app. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
BadRequestException | client | A request contains unexpected data. |
DependentServiceFailureException | server | An operation failed because a dependent service threw an exception. |
InternalFailureException | server | The service failed to perform an operation due to an internal issue. |
NotFoundException | client | An entity was not found during an operation. |
UnauthorizedException | client | An operation failed due to a lack of access. |
AmplifyServiceException | Base exception class for all service exceptions from Amplify service. |