Protected
Create a new core.
Use a bare-bones client and the command you need to make an API call.
import { CoresClient, CreateCoreCommand } from "@stedi/sdk-client-cores"; // ES Modules import// const { CoresClient, CreateCoreCommand } = require("@stedi/sdk-client-cores"); // CommonJS importconst client = new CoresClient(config);const input = { // CreateCoreInput idempotencyKey: "STRING_VALUE", coreName: "STRING_VALUE", // required};const command = new CreateCoreCommand(input);const response = await client.send(command);// { // CreateCoreOutput// coreName: "STRING_VALUE", // required// resourceDetail: { // CreateResourceDetail// idempotencyKey: "STRING_VALUE", // required// },// };
CreateCoreCommandInput
CreateCoreCommandOutput
input
response
config
ResourceNotFoundException (client fault)
ResourceUnderChangeException (client fault)
ServiceException (server fault)
CoresServiceException
Base exception class for all service exceptions from Cores service.
Readonly
Static
Create a new core.
Example
Use a bare-bones client and the command you need to make an API call.
Param
CreateCoreCommandInput
Returns
CreateCoreCommandOutput
See
input
shape.response
shape.config
shape.Throws
ResourceNotFoundException (client fault)
Throws
ResourceUnderChangeException (client fault)
Throws
ServiceException (server fault)
Throws
CoresServiceException
Base exception class for all service exceptions from Cores service.