Skip to main content

security_groups

Creates, updates, deletes, gets or lists a security_groups resource.

Overview

Namesecurity_groups
TypeResource
Idaws.wickr.security_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the security group. (pattern: <code>[\S\s]*</code>)
namestringThe human-readable name of the security group. (pattern: <code>[\S\s]*</code>)
active_directory_guidstringThe GUID of the Active Directory group associated with this security group, if synchronized with LDAP. (pattern: <code>[\S\s]*</code>)
active_membersintegerThe number of active user members currently in the security group.
bot_membersintegerThe number of bot members currently in the security group.
is_defaultbooleanIndicates whether this is the default security group for the network. Each network has only one default group.
modifiedintegerThe timestamp when the security group was last modified, specified in epoch seconds.
security_group_settingsobjectThe comprehensive configuration settings that define capabilities and restrictions for members of this security group.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_security_groupselectnetwork_id, group_id, regionRetrieves detailed information about a specific security group in a Wickr network, including its settings, member counts, and configuration.
list_security_groupsselectnetwork_id, regionnextToken, maxResults, sortFields, sortDirectionRetrieves a paginated list of security groups in a specified Wickr network. You can sort the results by various criteria.
create_security_groupinsertnetwork_id, region, name, securityGroupSettingsX-Client-TokenCreates a new security group in a Wickr network. Security groups allow you to organize users and control their permissions, features, and security settings.
update_security_groupupdatenetwork_id, group_id, regionUpdates the properties of an existing security group in a Wickr network, such as its name or settings.
delete_security_groupdeletenetwork_id, group_id, regionDeletes a security group from a Wickr network. This operation cannot be performed on the default security group.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
group_idstringThe unique identifier of the security group to delete.
network_idstringThe ID of the Wickr network from which the security group will be deleted.
regionstringAWS region (default: us-east-1)
X-Client-TokenstringA unique identifier for this request to ensure idempotency.
maxResultsintegerThe maximum number of security groups to return in a single page. Valid range is 1-100. Default is 10.
nextTokenstringThe token for retrieving the next page of results. This is returned from a previous request when there are more results available.
sortDirectionstringThe direction to sort results. Valid values are 'ASC' (ascending) or 'DESC' (descending). Default is 'DESC'.
sortFieldsstringThe field to sort security groups by. Accepted values include 'id' and 'name'.

SELECT examples

Retrieves detailed information about a specific security group in a Wickr network, including its settings, member counts, and configuration.

SELECT
id,
name,
active_directory_guid,
active_members,
bot_members,
is_default,
modified,
security_group_settings
FROM aws.wickr.security_groups
WHERE network_id = '{{ network_id }}' -- required
AND group_id = '{{ group_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new security group in a Wickr network. Security groups allow you to organize users and control their permissions, features, and security settings.

INSERT INTO aws.wickr.security_groups (
name,
securityGroupSettings,
network_id,
region,
`X-Client-Token`
)
SELECT
'{{ name }}' /* required */,
'{{ securityGroupSettings }}' /* required */,
'{{ network_id }}',
'{{ region }}',
'{{ X-Client-Token }}'
RETURNING
security_group
;

UPDATE examples

Updates the properties of an existing security group in a Wickr network, such as its name or settings.

UPDATE aws.wickr.security_groups
SET
name = '{{ name }}',
securityGroupSettings = '{{ securityGroupSettings }}'
WHERE
network_id = '{{ network_id }}' --required
AND group_id = '{{ group_id }}' --required
AND region = '{{ region }}' --required
RETURNING
security_group;

DELETE examples

Deletes a security group from a Wickr network. This operation cannot be performed on the default security group.

DELETE FROM aws.wickr.security_groups
WHERE network_id = '{{ network_id }}' --required
AND group_id = '{{ group_id }}' --required
AND region = '{{ region }}' --required
;