create_ip_group
¶
create_ip_group(
group_name: IpGroupName,
*,
config_overrides: Optional[WorkSpacesClientConfig] = None,
group_desc: Optional[IpGroupDesc] = None,
user_rules: Optional[IpRuleList] = None,
tags: Optional[TagList] = None,
) -> CreateIpGroupResult
Creates an IP access control group.
An IP access control group provides you with the ability to control the IP addresses from which users are allowed to access their WorkSpaces. To specify the CIDR address ranges, add rules to your IP access control group and then associate the group with your directory. You can add rules when you create the group or at any time using AuthorizeIpRules.
There is a default IP access control group associated with your directory. If you don't associate an IP access control group with your directory, the default group is used. The default group includes a default rule that allows users to access their WorkSpaces from anywhere. You cannot modify the default IP access control group for your directory.
Parameters:
-
group_name(IpGroupName) –The name of the group.
-
group_desc(Optional[IpGroupDesc], default:None) –The description of the group.
-
user_rules(Optional[IpRuleList], default:None) –The rules to add to the group.
-
tags(Optional[TagList], default:None) –The tags. Each WorkSpaces resource can have a maximum of 50 tags.
Raises:
-
AccessDeniedException–The user is not authorized to access a resource.
-
InvalidParameterValuesException–One or more parameter values are not valid.
-
ResourceAlreadyExistsException–The specified resource already exists.
-
ResourceCreationFailedException–The resource could not be created.
-
ResourceLimitExceededException–Your resource limits have been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workspaces/_services/work_spaces.py
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 | |