put_sol_network_package_content
¶
put_sol_network_package_content(
nsd_info_id: NsdInfoId,
file: SensitiveBlob,
*,
config_overrides: Optional[tnbClientConfig] = None,
content_type: Optional[PackageContentType] = None,
) -> PutSolNetworkPackageContentOutput
Uploads the contents 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.
Parameters:
-
nsd_info_id(NsdInfoId) –Network service descriptor info ID.
-
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:
Upload the network package content of an NSD archive
>>> client.put_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
1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 | |