Jump to Content

Class CreateDomainCommandProtected

Creates a domain, which is a container for all customer data, such as customer profile attributes, object types, profile keys, and encryption keys. You can create multiple domains, and each domain can have multiple third-party integrations.

Each Amazon Connect instance can be associated with only one domain. Multiple Amazon Connect instances can be associated with one domain.

Use this API or UpdateDomain to enable identity resolution: set Matching to true.

To prevent cross-service impersonation when you call this API, see Cross-service confused deputy prevention for sample policies that you should apply.

Example

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

import { CustomerProfilesClient, CreateDomainCommand } from "@aws-sdk/client-customer-profiles"; // ES Modules import
// const { CustomerProfilesClient, CreateDomainCommand } = require("@aws-sdk/client-customer-profiles"); // CommonJS import
const client = new CustomerProfilesClient(config);
const command = new CreateDomainCommand(input);
const response = await client.send(command);

See

Throws

AccessDeniedException (client fault)

You do not have sufficient access to perform this action.

Throws

BadRequestException (client fault)

The input you provided is invalid.

Throws

InternalServerException (server fault)

An internal service error occurred.

Throws

ResourceNotFoundException (client fault)

The requested resource does not exist, or access was denied.

Throws

ThrottlingException (client fault)

You exceeded the maximum number of requests.

Hierarchy

Constructors

Properties

middlewareStack: MiddlewareStack<CreateDomainCommandInput, CreateDomainCommandOutput>

Methods