update_sol_network_package
async
¶
update_sol_network_package(
nsd_info_id: NsdInfoId,
nsd_operational_state: NsdOperationalState,
*,
config_overrides: Optional[AsynctnbClientConfig] = None,
) -> UpdateSolNetworkPackageOutput
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.
Parameters:
-
nsd_info_id(NsdInfoId) –ID of the network service descriptor in the network package.
-
nsd_operational_state(NsdOperationalState) –Operational state of the network service descriptor in the network package.
Raises:
-
AccessDeniedException–Insufficient permissions to make request.
-
InternalServerException–Unexpected error occurred. Problem on the server.
-
ResourceNotFoundException–Request references a resource that doesn't exist.
-
ThrottlingException–Exception caused by throttling.
-
ValidationException–Unable to process the request because the client provided input failed to satisfy request constraints.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Enable a network package's Operational State
>>> await client.update_sol_network_package(nsd_info_id='np-0d5b823eb5c2a9241', nsd_operational_state='ENABLED')
Disable a network package's Operational State
>>> await client.update_sol_network_package(nsd_info_id='np-0d5b823eb5c2a9241', nsd_operational_state='DISABLED')
Source code in docs_src/capo_tnb/_services/async_tnb.py
2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 | |