Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class ListDomainNamesCommandProtected

Lists multiple custom domain names.

Example

Use a bare-bones client and the command you need to make an API call.

import { AppSyncClient, ListDomainNamesCommand } from "@aws-sdk/client-appsync"; // ES Modules import
// const { AppSyncClient, ListDomainNamesCommand } = require("@aws-sdk/client-appsync"); // CommonJS import
const client = new AppSyncClient(config);
const input = { // ListDomainNamesRequest
nextToken: "STRING_VALUE",
maxResults: Number("int"),
};
const command = new ListDomainNamesCommand(input);
const response = await client.send(command);
// { // ListDomainNamesResponse
// domainNameConfigs: [ // DomainNameConfigs
// { // DomainNameConfig
// domainName: "STRING_VALUE",
// description: "STRING_VALUE",
// certificateArn: "STRING_VALUE",
// appsyncDomainName: "STRING_VALUE",
// hostedZoneId: "STRING_VALUE",
// },
// ],
// nextToken: "STRING_VALUE",
// };

Param

ListDomainNamesCommandInput

Returns

ListDomainNamesCommandOutput

See

Throws

AccessDeniedException (client fault)

You don't have access to perform this operation on this resource.

Throws

BadRequestException (client fault)

The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.

Throws

InternalFailureException (server fault)

An internal AppSync error occurred. Try your request again.

Throws

AppSyncServiceException

Base exception class for all service exceptions from AppSync service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods