import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateSolNetworkPackageInput, CreateSolNetworkPackageOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateSolNetworkPackageCommand}. */ export interface CreateSolNetworkPackageCommandInput extends CreateSolNetworkPackageInput { } /** * @public * * The output of {@link CreateSolNetworkPackageCommand}. */ export interface CreateSolNetworkPackageCommandOutput extends CreateSolNetworkPackageOutput, __MetadataBearer { } declare const CreateSolNetworkPackageCommand_base: { new (input: CreateSolNetworkPackageCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [CreateSolNetworkPackageCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a network package.

*

A network package is a .zip file in CSAR (Cloud Service Archive) format defines the function packages you want to deploy and the Amazon Web Services infrastructure you want to deploy them on. For more information, see Network instances in the * Amazon Web Services Telco Network Builder User Guide.

*

A network package consists of a network service descriptor (NSD) file (required) and any * additional files (optional), such as scripts specific to your needs. For example, if you * have multiple function packages in your network package, you can use the NSD to define * which network functions should run in certain VPCs, subnets, or EKS clusters.

*

This request creates an empty network package container with an ID. Once you create a * network package, you can upload the network package content using PutSolNetworkPackageContent.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { TnbClient, CreateSolNetworkPackageCommand } from "@aws-sdk/client-tnb"; // ES Modules import * // const { TnbClient, CreateSolNetworkPackageCommand } = 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 = { // CreateSolNetworkPackageInput * tags: { // TagMap * "": "STRING_VALUE", * }, * }; * const command = new CreateSolNetworkPackageCommand(input); * const response = await client.send(command); * // { // CreateSolNetworkPackageOutput * // id: "STRING_VALUE", // required * // arn: "STRING_VALUE", // required * // nsdOnboardingState: "CREATED" || "ONBOARDED" || "ERROR", // required * // nsdOperationalState: "ENABLED" || "DISABLED", // required * // nsdUsageState: "IN_USE" || "NOT_IN_USE", // required * // tags: { // TagMap * // "": "STRING_VALUE", * // }, * // }; * * ``` * * @param CreateSolNetworkPackageCommandInput - {@link CreateSolNetworkPackageCommandInput} * @returns {@link CreateSolNetworkPackageCommandOutput} * @see {@link CreateSolNetworkPackageCommandInput} for command's `input` shape. * @see {@link CreateSolNetworkPackageCommandOutput} 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 network package * ```javascript * // * const input = { * tags: { * Name: "Resource" * } * }; * const command = new CreateSolNetworkPackageCommand(input); * const response = await client.send(command); * /* response is * { * arn: "arn:aws:tnb:us-west-2:123456789000:network-package/np-0d5b823eb5c2a9241", * id: "np-0d5b823eb5c2a9241", * nsdOnboardingState: "CREATED", * nsdOperationalState: "DISABLED", * nsdUsageState: "NOT_IN_USE", * tags: { * Name: "Resource" * } * } * *\/ * ``` * * @public */ export declare class CreateSolNetworkPackageCommand extends CreateSolNetworkPackageCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateSolNetworkPackageInput; output: CreateSolNetworkPackageOutput; }; sdk: { input: CreateSolNetworkPackageCommandInput; output: CreateSolNetworkPackageCommandOutput; }; }; }