validate_sol_network_package_content
async
¶
validate_sol_network_package_content(
nsd_info_id: NsdInfoId,
file: SensitiveBlob,
*,
config_overrides: Optional[AsynctnbClientConfig] = 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
>>> await 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/async_tnb.py
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 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 | |