Skip to main content

networks

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

Overview

Namenetworks
TypeResource
Idaws.wickr.networks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
access_levelstringThe access level of the network (STANDARD or PREMIUM), which determines available features and capabilities. (STANDARD, PREMIUM)
aws_account_idstringThe Amazon Web Services account ID that owns the network. (pattern: <code>[\S\s]*</code>)
encryption_key_arnstringThe ARN of the Amazon Web Services KMS customer managed key used for encrypting sensitive data in the network. (pattern: <code>[\S\s]*</code>)
free_trial_expirationstringThe expiration date and time for the network's free trial period, if applicable. (pattern: <code>[\S\s]*</code>)
migration_stateintegerThe SSO redirect URI migration state, managed by the SSO redirect migration wizard. Values: 0 (not started), 1 (in progress), or 2 (completed).
network_arnstringThe Amazon Resource Name (ARN) of the network. (pattern: <code>[\S\s]*</code>)
network_idstringThe unique identifier of the network. (pattern: <code>[0-9]{8}</code>)
network_namestringThe name of the network. (pattern: <code>[\S\s]*</code>)
standingintegerThe current standing or status of the network.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_networkselectnetwork_id, regionRetrieves detailed information about a specific Wickr network, including its configuration, access level, and status.
list_networksselectregionmaxResults, sortFields, sortDirection, nextTokenRetrieves a paginated list of all Wickr networks associated with your Amazon Web Services account. You can sort the results by network ID or name.
register_oidc_configinsertnetwork_id, region, companyId, issuer, scopesRegisters and saves an OpenID Connect (OIDC) configuration for a Wickr network, enabling Single Sign-On (SSO) authentication through an identity provider.
register_oidc_config_testinsertnetwork_id, region, issuer, scopesTests an OpenID Connect (OIDC) configuration for a Wickr network by validating the connection to the identity provider and retrieving its supported capabilities.
create_networkinsertregion, networkName, accessLevelCreates a new Wickr network with specified access level and configuration. This operation provisions a new communication network for your organization.
update_data_retentionupdatenetwork_id, region, actionTypeUpdates the data retention bot settings, allowing you to enable or disable the data retention service, or acknowledge the public key message.
update_networkupdatenetwork_id, region, networkNameX-Client-TokenUpdates the properties of an existing Wickr network, such as its name or encryption key configuration.
delete_networkdeletenetwork_id, regionX-Client-TokenDeletes a Wickr network and all its associated resources, including users, bots, security groups, and settings. This operation is permanent and cannot be undone.
batch_create_userexecnetwork_id, region, usersX-Client-TokenCreates multiple users in a specified Wickr network. This operation allows you to provision multiple user accounts simultaneously, optionally specifying security groups, and validation requirements for each user. codeValidation, inviteCode, and inviteCodeTtl are restricted to networks under preview only.
batch_delete_userexecnetwork_id, region, userIdsX-Client-TokenDeletes multiple users from a specified Wickr network. This operation permanently removes user accounts and their associated data from the network.
batch_lookup_user_unameexecnetwork_id, region, unamesX-Client-TokenLooks up multiple user usernames from their unique username hashes (unames). This operation allows you to retrieve the email addresses associated with a list of username hashes.
batch_reinvite_userexecnetwork_id, region, userIdsX-Client-TokenResends invitation codes to multiple users who have pending invitations in a Wickr network. This operation is useful when users haven't accepted their initial invitations or when invitations have expired.
batch_reset_devices_for_userexecnetwork_id, user_id, region, appIdsX-Client-TokenResets multiple devices for a specific user in a Wickr network. This operation forces the selected devices to log out and requires users to re-authenticate, which is useful for security purposes or when devices need to be revoked.
batch_toggle_user_suspend_statusexecnetwork_id, suspend, region, userIdsX-Client-TokenSuspends or unsuspends multiple users in a Wickr network. Suspended users cannot access the network until they are unsuspended. This operation is useful for temporarily restricting access without deleting user accounts.

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
network_idstringThe ID of the Wickr network where users will be suspended or unsuspended.
regionstringAWS region (default: us-east-1)
suspendbooleanA boolean value indicating whether to suspend (true) or unsuspend (false) the specified users.
user_idstringThe ID of the user whose devices will be reset.
X-Client-TokenstringA unique identifier for this request to ensure idempotency.
maxResultsintegerThe maximum number of networks 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 networks by. Accepted values are 'networkId' and 'networkName'. Default is 'networkId'.

SELECT examples

Retrieves detailed information about a specific Wickr network, including its configuration, access level, and status.

SELECT
access_level,
aws_account_id,
encryption_key_arn,
free_trial_expiration,
migration_state,
network_arn,
network_id,
network_name,
standing
FROM aws.wickr.networks
WHERE network_id = '{{ network_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Registers and saves an OpenID Connect (OIDC) configuration for a Wickr network, enabling Single Sign-On (SSO) authentication through an identity provider.

INSERT INTO aws.wickr.networks (
companyId,
customUsername,
extraAuthParams,
issuer,
scopes,
secret,
ssoTokenBufferMinutes,
userId,
network_id,
region
)
SELECT
'{{ companyId }}' /* required */,
'{{ customUsername }}',
'{{ extraAuthParams }}',
'{{ issuer }}' /* required */,
'{{ scopes }}' /* required */,
'{{ secret }}',
{{ ssoTokenBufferMinutes }},
'{{ userId }}',
'{{ network_id }}',
'{{ region }}'
RETURNING
application_id,
application_name,
ca_certificate,
client_id,
client_secret,
company_id,
custom_username,
extra_auth_params,
issuer,
redirect_url,
scopes,
secret,
sso_token_buffer_minutes,
user_id
;

UPDATE examples

Updates the data retention bot settings, allowing you to enable or disable the data retention service, or acknowledge the public key message.

UPDATE aws.wickr.networks
SET
actionType = '{{ actionType }}'
WHERE
network_id = '{{ network_id }}' --required
AND region = '{{ region }}' --required
AND actionType = '{{ actionType }}' --required
RETURNING
message;

DELETE examples

Deletes a Wickr network and all its associated resources, including users, bots, security groups, and settings. This operation is permanent and cannot be undone.

DELETE FROM aws.wickr.networks
WHERE network_id = '{{ network_id }}' --required
AND region = '{{ region }}' --required
AND `X-Client-Token` = '{{ X-Client-Token }}'
;

Lifecycle Methods

Creates multiple users in a specified Wickr network. This operation allows you to provision multiple user accounts simultaneously, optionally specifying security groups, and validation requirements for each user. codeValidation, inviteCode, and inviteCodeTtl are restricted to networks under preview only.

EXEC aws.wickr.networks.batch_create_user
@network_id='{{ network_id }}' --required,
@region='{{ region }}' --required,
@X-Client-Token='{{ X-Client-Token }}'
@@json=
'{
"users": "{{ users }}"
}'
;