Skip to main content

guest_users

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

Overview

Nameguest_users
TypeResource
Idaws.wickr.guest_users

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
billing_periodstringThe billing period when this guest user accessed the network (e.g., '2024-01'). (pattern: <code>[\S\s]*</code>)
usernamestringThe username of the guest user. (pattern: <code>[\S\s]*</code>)
username_hashstringThe unique username hash identifier for the guest user. (pattern: <code>[\S\s]*</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_guest_usersselectnetwork_id, regionmaxResults, sortDirection, sortFields, username, billingPeriod, nextTokenRetrieves a paginated list of guest users who have communicated with your Wickr network. Guest users are external users from federated networks who can communicate with network members.
update_guest_userupdatenetwork_id, username_hash, region, blockUpdates the block status of a guest user in a Wickr network. This operation allows you to block or unblock a guest user from accessing the network.

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 the guest user's status will be updated.
regionstringAWS region (default: us-east-1)
username_hashstringThe username hash (unique identifier) of the guest user to update.
billingPeriodstringFilter results to only include guest users from this billing period (e.g., '2024-01').
maxResultsintegerThe maximum number of guest users 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 guest users by. Accepted values include 'username' and 'billingPeriod'.
usernamestringFilter results to only include guest users with usernames matching this value.

SELECT examples

Retrieves a paginated list of guest users who have communicated with your Wickr network. Guest users are external users from federated networks who can communicate with network members.

SELECT
billing_period,
username,
username_hash
FROM aws.wickr.guest_users
WHERE network_id = '{{ network_id }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND sortDirection = '{{ sortDirection }}'
AND sortFields = '{{ sortFields }}'
AND username = '{{ username }}'
AND billingPeriod = '{{ billingPeriod }}'
AND nextToken = '{{ nextToken }}'
;

UPDATE examples

Updates the block status of a guest user in a Wickr network. This operation allows you to block or unblock a guest user from accessing the network.

UPDATE aws.wickr.guest_users
SET
block = {{ block }}
WHERE
network_id = '{{ network_id }}' --required
AND username_hash = '{{ username_hash }}' --required
AND region = '{{ region }}' --required
AND block = {{ block }} --required
RETURNING
message;