validate_sol_network_package_content
¶
validate_sol_network_package_content(
nsd_info_id: NsdInfoId,
file: SensitiveBlob,
*,
config_overrides: Optional[tnbClientConfig] = None,
content_type: Optional[PackageContentType] = None,
) -> ValidateSolNetworkPackageContentOutput
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.
Parameters:
-
nsd_info_id(NsdInfoId) –Network service descriptor file.
-
content_type(Optional[PackageContentType], default:None) –Network package content type.
-
file(SensitiveBlob) –Network package file.
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:
Validate the network package content of a NSD archive
>>> client.validate_sol_network_package_content(nsd_info_id='np-0d5b823eb5c2a9241', content_type='application/zip', file='UEsDBBQAAAAAAPqLiVMAAAAAAAAAAAAAA')
Source code in docs_src/capo_tnb/_services/tnb.py
2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 | |