import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateSolFunctionPackageInput, CreateSolFunctionPackageOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateSolFunctionPackageCommand}. */ export interface CreateSolFunctionPackageCommandInput extends CreateSolFunctionPackageInput { } /** * @public * * The output of {@link CreateSolFunctionPackageCommand}. */ export interface CreateSolFunctionPackageCommandOutput extends CreateSolFunctionPackageOutput, __MetadataBearer { } declare const CreateSolFunctionPackageCommand_base: { new (input: CreateSolFunctionPackageCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [CreateSolFunctionPackageCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a function package.

*

A function package is a .zip file in CSAR (Cloud Service Archive) format that contains a network function (an ETSI standard telecommunication application) and function package descriptor that uses the TOSCA standard to describe how the network functions should run on your network. For more information, see Function packages in the * Amazon Web Services Telco Network Builder User Guide.

*

Creating a function package is the first step for creating a network in AWS TNB. This * request creates an empty container with an ID. The next step is to upload the actual CSAR * zip file into that empty container. To upload function package content, see PutSolFunctionPackageContent.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { TnbClient, CreateSolFunctionPackageCommand } from "@aws-sdk/client-tnb"; // ES Modules import * // const { TnbClient, CreateSolFunctionPackageCommand } = require("@aws-sdk/client-tnb"); // CommonJS import * // import type { TnbClientConfig } from "@aws-sdk/client-tnb"; * const config = {}; // type is TnbClientConfig * const client = new TnbClient(config); * const input = { // CreateSolFunctionPackageInput * tags: { // TagMap * "": "STRING_VALUE", * }, * }; * const command = new CreateSolFunctionPackageCommand(input); * const response = await client.send(command); * // { // CreateSolFunctionPackageOutput * // id: "STRING_VALUE", // required * // arn: "STRING_VALUE", // required * // onboardingState: "CREATED" || "ONBOARDED" || "ERROR", // required * // operationalState: "ENABLED" || "DISABLED", // required * // usageState: "IN_USE" || "NOT_IN_USE", // required * // tags: { // TagMap * // "": "STRING_VALUE", * // }, * // }; * * ``` * * @param CreateSolFunctionPackageCommandInput - {@link CreateSolFunctionPackageCommandInput} * @returns {@link CreateSolFunctionPackageCommandOutput} * @see {@link CreateSolFunctionPackageCommandInput} for command's `input` shape. * @see {@link CreateSolFunctionPackageCommandOutput} for command's `response` shape. * @see {@link TnbClientResolvedConfig | config} for TnbClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

Insufficient permissions to make request.

* * @throws {@link InternalServerException} (server fault) *

Unexpected error occurred. Problem on the server.

* * @throws {@link ServiceQuotaExceededException} (client fault) *

Service quotas have been exceeded.

* * @throws {@link ThrottlingException} (client fault) *

Exception caused by throttling.

* * @throws {@link ValidationException} (client fault) *

Unable to process the request because the client provided input failed to satisfy * request constraints.

* * @throws {@link TnbServiceException} *

Base exception class for all service exceptions from Tnb service.

* * * @example Create a Sol function package * ```javascript * // * const input = { * tags: { * Name: "Resource" * } * }; * const command = new CreateSolFunctionPackageCommand(input); * const response = await client.send(command); * /* response is * { * arn: "arn:aws:tnb:us-west-2:123456789000:function-package/fp-07aa863e53460a2a6", * id: "fp-07aa863e53460a2a6", * onboardingState: "CREATED", * operationalState: "DISABLED", * tags: { * Name: "Resource" * }, * usageState: "NOT_IN_USE" * } * *\/ * ``` * * @public */ export declare class CreateSolFunctionPackageCommand extends CreateSolFunctionPackageCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateSolFunctionPackageInput; output: CreateSolFunctionPackageOutput; }; sdk: { input: CreateSolFunctionPackageCommandInput; output: CreateSolFunctionPackageCommandOutput; }; }; }