WorkSpaces.Client.
create_ip_group
(**kwargs)¶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.
See also: AWS API Documentation
Request Syntax
response = client.create_ip_group(
GroupName='string',
GroupDesc='string',
UserRules=[
{
'ipRule': 'string',
'ruleDesc': 'string'
},
],
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The name of the group.
The rules to add to the group.
Describes a rule for an IP access control group.
The IP address range, in CIDR notation.
The description.
The tags. Each WorkSpaces resource can have a maximum of 50 tags.
Describes a tag.
The key of the tag.
The value of the tag.
dict
Response Syntax
{
'GroupId': 'string'
}
Response Structure
(dict) --
GroupId (string) --
The identifier of the group.
Exceptions
WorkSpaces.Client.exceptions.InvalidParameterValuesException
WorkSpaces.Client.exceptions.ResourceLimitExceededException
WorkSpaces.Client.exceptions.ResourceAlreadyExistsException
WorkSpaces.Client.exceptions.ResourceCreationFailedException
WorkSpaces.Client.exceptions.AccessDeniedException