CreateRegistryCommand

Creates a registry.

Example Syntax

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

import { SchemasClient, CreateRegistryCommand } from "@aws-sdk/client-schemas"; // ES Modules import
// const { SchemasClient, CreateRegistryCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
const client = new SchemasClient(config);
const input = { // CreateRegistryRequest
  Description: "STRING_VALUE",
  RegistryName: "STRING_VALUE", // required
  Tags: { // Tags
    "<keys>": "STRING_VALUE",
  },
};
const command = new CreateRegistryCommand(input);
const response = await client.send(command);
// { // CreateRegistryResponse
//   Description: "STRING_VALUE",
//   RegistryArn: "STRING_VALUE",
//   RegistryName: "STRING_VALUE",
//   Tags: { // Tags
//     "<keys>": "STRING_VALUE",
//   },
// };

CreateRegistryCommand Input

See CreateRegistryCommandInput for more details

Parameter
Type
Description
RegistryName
Required
string | undefined

The name of the registry.

Description
string | undefined

A description of the registry to be created.

Tags
Record<string, string> | undefined

Tags to associate with the registry.

CreateRegistryCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
Description
string | undefined

The description of the registry.

RegistryArn
string | undefined

The ARN of the registry.

RegistryName
string | undefined

The name of the registry.

Tags
Record<string, string> | undefined

Tags associated with the registry.

Throws

Name
Fault
Details
BadRequestException
client
ConflictException
client
ForbiddenException
client
InternalServerErrorException
server
ServiceUnavailableException
server
UnauthorizedException
client
SchemasServiceException
Base exception class for all service exceptions from Schemas service.