import type { BlobPayloadInputTypes, MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ValidateSolNetworkPackageContentInput, ValidateSolNetworkPackageContentOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public */ export type ValidateSolNetworkPackageContentCommandInputType = Omit & { file: BlobPayloadInputTypes; }; /** * @public * * The input for {@link ValidateSolNetworkPackageContentCommand}. */ export interface ValidateSolNetworkPackageContentCommandInput extends ValidateSolNetworkPackageContentCommandInputType { } /** * @public * * The output of {@link ValidateSolNetworkPackageContentCommand}. */ export interface ValidateSolNetworkPackageContentCommandOutput extends ValidateSolNetworkPackageContentOutput, __MetadataBearer { } declare const ValidateSolNetworkPackageContentCommand_base: { new (input: ValidateSolNetworkPackageContentCommandInput): import("@smithy/core/client").CommandImpl; new (input: ValidateSolNetworkPackageContentCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Validates network package content. This can be used as a dry run before uploading * network package content with PutSolNetworkPackageContent.

*

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.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { TnbClient, ValidateSolNetworkPackageContentCommand } from "@aws-sdk/client-tnb"; // ES Modules import * // const { TnbClient, ValidateSolNetworkPackageContentCommand } = 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 = { // ValidateSolNetworkPackageContentInput * nsdInfoId: "STRING_VALUE", // required * contentType: "application/zip", * file: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required * }; * const command = new ValidateSolNetworkPackageContentCommand(input); * const response = await client.send(command); * // { // ValidateSolNetworkPackageContentOutput * // id: "STRING_VALUE", // required * // arn: "STRING_VALUE", // required * // nsdId: "STRING_VALUE", // required * // nsdName: "STRING_VALUE", // required * // nsdVersion: "STRING_VALUE", // required * // vnfPkgIds: [ // VnfPkgIdList // required * // "STRING_VALUE", * // ], * // metadata: { // ValidateSolNetworkPackageContentMetadata * // nsd: { // NetworkArtifactMeta * // overrides: [ // OverrideList * // { // ToscaOverride * // name: "STRING_VALUE", * // defaultValue: "STRING_VALUE", * // }, * // ], * // }, * // }, * // }; * * ``` * * @param ValidateSolNetworkPackageContentCommandInput - {@link ValidateSolNetworkPackageContentCommandInput} * @returns {@link ValidateSolNetworkPackageContentCommandOutput} * @see {@link ValidateSolNetworkPackageContentCommandInput} for command's `input` shape. * @see {@link ValidateSolNetworkPackageContentCommandOutput} 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 ResourceNotFoundException} (client fault) *

Request references a resource that doesn't exist.

* * @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 Validate the network package content of a NSD archive * ```javascript * // * const input = { * contentType: "application/zip", * file: "UEsDBBQAAAAAAPqLiVMAAAAAAAAAAAAAA", * nsdInfoId: "np-0d5b823eb5c2a9241" * }; * const command = new ValidateSolNetworkPackageContentCommand(input); * const response = await client.send(command); * /* response is * { * arn: "arn:aws:tnb:us-west-2:123456789000:network-package/np-0d5b823eb5c2a9241", * id: "np-0d5b823eb5c2a9241", * metadata: { * nsd: { * overrides: [ * { * defaultValue: "10.0.0.0/24", * name: "cidr_block" * }, * { * name: "some_vnf.vnf_prop" * } * ] * } * }, * nsdId: "0d72acd9-e45d-4644-9bcd-1fe67cd0e2c8", * nsdName: "Sample Single Cluster", * nsdVersion: "1.0.0", * vnfPkgIds: [ * "fp-1234567890abcdabc", * "fp-0b627c4a170a97f79" * ] * } * *\/ * ``` * * @public */ export declare class ValidateSolNetworkPackageContentCommand extends ValidateSolNetworkPackageContentCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ValidateSolNetworkPackageContentInput; output: ValidateSolNetworkPackageContentOutput; }; sdk: { input: ValidateSolNetworkPackageContentCommandInput; output: ValidateSolNetworkPackageContentCommandOutput; }; }; }