create_ip_group
async
¶
create_ip_group(
group_name: IpGroupName,
*,
config_overrides: Optional[AsyncWorkSpacesClientConfig] = 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/async_work_spaces.py
2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 | |