import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UpdateSolNetworkPackageInput, UpdateSolNetworkPackageOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link UpdateSolNetworkPackageCommand}. */ export interface UpdateSolNetworkPackageCommandInput extends UpdateSolNetworkPackageInput { } /** * @public * * The output of {@link UpdateSolNetworkPackageCommand}. */ export interface UpdateSolNetworkPackageCommandOutput extends UpdateSolNetworkPackageOutput, __MetadataBearer { } declare const UpdateSolNetworkPackageCommand_base: { new (input: UpdateSolNetworkPackageCommandInput): import("@smithy/core/client").CommandImpl; new (input: UpdateSolNetworkPackageCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Updates the operational state of 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.

*

A network service descriptor is a .yaml file in a network package that uses the TOSCA standard to describe the network functions you want to deploy and the Amazon Web Services infrastructure you want to deploy the network functions on.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { TnbClient, UpdateSolNetworkPackageCommand } from "@aws-sdk/client-tnb"; // ES Modules import * // const { TnbClient, UpdateSolNetworkPackageCommand } = 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 = { // UpdateSolNetworkPackageInput * nsdInfoId: "STRING_VALUE", // required * nsdOperationalState: "ENABLED" || "DISABLED", // required * }; * const command = new UpdateSolNetworkPackageCommand(input); * const response = await client.send(command); * // { // UpdateSolNetworkPackageOutput * // nsdOperationalState: "ENABLED" || "DISABLED", // required * // }; * * ``` * * @param UpdateSolNetworkPackageCommandInput - {@link UpdateSolNetworkPackageCommandInput} * @returns {@link UpdateSolNetworkPackageCommandOutput} * @see {@link UpdateSolNetworkPackageCommandInput} for command's `input` shape. * @see {@link UpdateSolNetworkPackageCommandOutput} 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 Enable a network package's Operational State * ```javascript * // * const input = { * nsdInfoId: "np-0d5b823eb5c2a9241", * nsdOperationalState: "ENABLED" * }; * const command = new UpdateSolNetworkPackageCommand(input); * const response = await client.send(command); * /* response is * { * nsdOperationalState: "ENABLED" * } * *\/ * ``` * * @example Disable a network package's Operational State * ```javascript * // * const input = { * nsdInfoId: "np-0d5b823eb5c2a9241", * nsdOperationalState: "DISABLED" * }; * const command = new UpdateSolNetworkPackageCommand(input); * const response = await client.send(command); * /* response is * { * nsdOperationalState: "DISABLED" * } * *\/ * ``` * * @public */ export declare class UpdateSolNetworkPackageCommand extends UpdateSolNetworkPackageCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateSolNetworkPackageInput; output: UpdateSolNetworkPackageOutput; }; sdk: { input: UpdateSolNetworkPackageCommandInput; output: UpdateSolNetworkPackageCommandOutput; }; }; }