Skip to main content

data_retention_bots

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

Overview​

Namedata_retention_bots
TypeResource
Idaws.wickr.data_retention_bots

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
bot_existsbooleanIndicates whether a data retention bot exists in the network.
bot_namestringThe name of the data retention bot. (pattern: <code>[\S\s]*</code>)
is_bot_activebooleanIndicates whether the data retention bot is active and operational.
is_data_retention_bot_registeredbooleanIndicates whether the data retention bot has been registered with the network.
is_data_retention_service_enabledbooleanIndicates whether the data retention service is enabled for the network.
is_pubkey_msg_ackedbooleanIndicates whether the public key message has been acknowledged by the bot.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_data_retention_botselectnetwork_id, regionRetrieves information about the data retention bot in a Wickr network, including its status and whether the data retention service is enabled.
create_data_retention_botinsertnetwork_id, regionCreates a data retention bot in a Wickr network. Data retention bots are specialized bots that handle message archiving and compliance by capturing and storing messages for regulatory or organizational requirements.
delete_data_retention_botdeletenetwork_id, regionDeletes the data retention bot from a Wickr network. This operation permanently removes the bot and all its associated data from the database.
create_data_retention_bot_challengeexecnetwork_id, regionCreates a new challenge password for the data retention bot. This password is used for authentication when the bot connects to 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 containing the data retention bot.
regionstringAWS region (default: us-east-1)

SELECT examples​

Retrieves information about the data retention bot in a Wickr network, including its status and whether the data retention service is enabled.

SELECT
bot_exists,
bot_name,
is_bot_active,
is_data_retention_bot_registered,
is_data_retention_service_enabled,
is_pubkey_msg_acked
FROM aws.wickr.data_retention_bots
WHERE network_id = '{{ network_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples​

Creates a data retention bot in a Wickr network. Data retention bots are specialized bots that handle message archiving and compliance by capturing and storing messages for regulatory or organizational requirements.

INSERT INTO aws.wickr.data_retention_bots (
network_id,
region
)
SELECT
'{{ network_id }}',
'{{ region }}'
RETURNING
message
;

DELETE examples​

Deletes the data retention bot from a Wickr network. This operation permanently removes the bot and all its associated data from the database.

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

Lifecycle Methods​

Creates a new challenge password for the data retention bot. This password is used for authentication when the bot connects to the network.

EXEC aws.wickr.data_retention_bots.create_data_retention_bot_challenge
@network_id='{{ network_id }}' --required,
@region='{{ region }}' --required
;