create_network_settings
¶
create_network_settings(
vpc_id: VpcId,
subnet_ids: SubnetIdList,
security_group_ids: SecurityGroupIdList,
*,
config_overrides: Optional[WorkSpacesWebClientConfig] = None,
tags: Optional[TagList] = None,
client_token: Optional[ClientToken] = None,
) -> CreateNetworkSettingsResponse
Creates a network settings resource that can be associated with a web portal. Once associated with a web portal, network settings define how streaming instances will connect with your specified VPC.
Parameters:
-
vpc_id(VpcId) –The VPC that streaming instances will connect to.
-
subnet_ids(SubnetIdList) –The subnets in which network interfaces are created to connect streaming instances to your VPC. At least two of these subnets must be in different availability zones.
-
security_group_ids(SecurityGroupIdList) –One or more security groups used to control access from streaming instances to your VPC.
-
tags(Optional[TagList], default:None) –The tags to add to the network settings resource. A tag is a key-value pair.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, subsequent retries with the same client token returns the result from the original successful request.
If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK.
Raises:
-
AccessDeniedException–Access is denied.
-
ConflictException–There is a conflict.
-
InternalServerException–There is an internal server error.
-
ServiceQuotaExceededException–The service quota has been exceeded.
-
ThrottlingException–There is a throttling error.
-
ValidationException–There is a validation error.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workspaces_web/_services/work_spaces_web.py
2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 | |