instantiate_sol_network_instance
¶
instantiate_sol_network_instance(
ns_instance_id: NsInstanceId,
*,
config_overrides: Optional[tnbClientConfig] = None,
dry_run: Optional[bool] = None,
additional_params_for_ns: Optional[object] = None,
tags: Optional[TagMap] = None,
) -> InstantiateSolNetworkInstanceOutput
Instantiates 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.
Before you can instantiate a network instance, you have to create a network instance. For more information, see CreateSolNetworkInstance.
Parameters:
-
ns_instance_id(NsInstanceId) –ID of the network instance.
-
dry_run(Optional[bool], default:None) –A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
additional_params_for_ns(Optional[object], default:None) –Provides values for the configurable properties.
-
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:
Instantiate a Sol Network Instance
>>> client.instantiate_sol_network_instance(ns_instance_id='ni-0d5b823eb5c2a9241', tags={'Name': 'Resource'})
Instantiate a Sol Network Instance with Overrides
>>> client.instantiate_sol_network_instance(ns_instance_id='ni-0d5b823eb5c2a9241', additional_params_for_ns={'cidr_block': '10.0.0.0/16', 'availability_zone': 'us-west-2a'})
Source code in docs_src/capo_tnb/_services/tnb.py
1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 | |