- 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.
PutCodeBindingCommand
Put code binding URI
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { SchemasClient, PutCodeBindingCommand } from "@aws-sdk/client-schemas"; // ES Modules import
// const { SchemasClient, PutCodeBindingCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
const client = new SchemasClient(config);
const input = { // PutCodeBindingRequest
Language: "STRING_VALUE", // required
RegistryName: "STRING_VALUE", // required
SchemaName: "STRING_VALUE", // required
SchemaVersion: "STRING_VALUE",
};
const command = new PutCodeBindingCommand(input);
const response = await client.send(command);
// { // PutCodeBindingResponse
// CreationDate: new Date("TIMESTAMP"),
// LastModified: new Date("TIMESTAMP"),
// SchemaVersion: "STRING_VALUE",
// Status: "CREATE_IN_PROGRESS" || "CREATE_COMPLETE" || "CREATE_FAILED",
// };
PutCodeBindingCommand Input
See PutCodeBindingCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
Language Required | string | undefined | The language of the code binding. |
RegistryName Required | string | undefined | The name of the registry. |
SchemaName Required | string | undefined | The name of the schema. |
SchemaVersion | string | undefined | Specifying this limits the results to only this schema version. |
PutCodeBindingCommand Output
See PutCodeBindingCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
CreationDate | Date | undefined | The time and date that the code binding was created. |
LastModified | Date | undefined | The date and time that code bindings were modified. |
SchemaVersion | string | undefined | The version number of the schema. |
Status | CodeGenerationStatus | undefined | The current status of code binding generation. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
BadRequestException | client | |
ForbiddenException | client | |
GoneException | client | |
InternalServerErrorException | server | |
NotFoundException | client | |
TooManyRequestsException | client | |
UnauthorizedException | client | |
SchemasServiceException | Base exception class for all service exceptions from Schemas service. |