update_sol_network_instance
¶
update_sol_network_instance(
ns_instance_id: NsInstanceId,
update_type: UpdateSolNetworkType,
*,
config_overrides: Optional[tnbClientConfig] = None,
modify_vnf_info_data: Optional[UpdateSolNetworkModify] = None,
update_ns: Optional[UpdateSolNetworkServiceData] = None,
tags: Optional[TagMap] = None,
) -> UpdateSolNetworkInstanceOutput
Update a network instance.
A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed.
Choose the updateType parameter to target the necessary update of the network instance.
Parameters:
-
ns_instance_id(NsInstanceId) –ID of the network instance.
-
update_type(UpdateSolNetworkType) –The type of update.
-
Use the
MODIFY_VNF_INFORMATIONupdate type, to update a specific network function configuration, in the network instance. -
Use the
UPDATE_NSupdate type, to update the network instance to a new network service descriptor.
-
-
modify_vnf_info_data(Optional[UpdateSolNetworkModify], default:None) –Identifies the network function information parameters and/or the configurable properties of the network function to be modified.
Include this property only if the update type is
MODIFY_VNF_INFORMATION. -
update_ns(Optional[UpdateSolNetworkServiceData], default:None) –Identifies the network service descriptor and the configurable properties of the descriptor, to be used for the update.
Include this property only if the update type is
UPDATE_NS. -
tags(Optional[TagMap], default:None) –A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. When you use this API, the tags are only applied to the network operation that is created. These tags are not applied to the network instance. Use tags to search and filter your resources or track your Amazon Web Services costs.
Raises:
-
AccessDeniedException–Insufficient permissions to make request.
-
InternalServerException–Unexpected error occurred. Problem on the server.
-
ResourceNotFoundException–Request references a resource that doesn't exist.
-
ServiceQuotaExceededException–Service quotas have been exceeded.
-
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:
Update a Sol Network Instance
>>> client.update_sol_network_instance(ns_instance_id='ni-0d5b823eb5c2a9241', update_type='MODIFY_VNF_INFORMATION', modify_vnf_info_data={'vnfInstanceId': 'fi-0d5b823eb5c2a9241', 'vnfConfigurableProperties': {'pcf.port': '8080', 'pcf.pods': '10'}}, tags={'Name': 'Resource'})
Update a Sol Network Instance
>>> client.update_sol_network_instance(ns_instance_id='ni-0d5b823eb5c2a9241', update_type='UPDATE_NS', update_ns={'nsdInfoId': 'np-0d5b823eb5c2a9241', 'additionalParamsForNs': {'cidr_block': '10.0.0.0/16', 'availability_zone': 'us-west-2a'}}, tags={'Name': 'Resource'})
Source code in docs_src/capo_tnb/_services/tnb.py
2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 | |