Skip to main content

bot_replicas

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

Overview

Namebot_replicas
TypeResource
Idaws.lexv2_models.bot_replicas

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
bot_idstringThe unique bot ID of the replicated bot being monitored. (pattern: <code>^[0-9a-zA-Z]+$</code>)
bot_replica_statusstringThe operational status of the replicated bot being monitored. (Enabling, Enabled, Deleting, Failed)
creation_date_timestring (date-time)The creation date and time of the replicated bot being monitored.
failure_reasonsarrayThe failure reasons the bot being monitored failed to replicate.
replica_regionstringThe region that contains the replicated bots. Minimum value = 2, maximum value = 25.
source_regionstringThe region that contains the replicated bots. Minimum value = 2, maximum value = 25.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_bot_replicaselectbot_id, replica_region, regionMonitors the bot replication status through the UI console.
list_bot_replicasselectbot_id, regionThe action to list the replicated bots.
create_bot_replicainsertbot_id, region, replicaRegionAction to create a replication of the source bot in the secondary region.
delete_bot_replicadeletebot_id, replica_region, regionThe action to delete the replicated bot in the secondary region.

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
bot_idstringThe unique ID of the replicated bot to be deleted from the secondary region
regionstringAWS region (default: us-east-1)
replica_regionstringThe secondary region of the replicated bot that will be deleted.

SELECT examples

Monitors the bot replication status through the UI console.

SELECT
bot_id,
bot_replica_status,
creation_date_time,
failure_reasons,
replica_region,
source_region
FROM aws.lexv2_models.bot_replicas
WHERE bot_id = '{{ bot_id }}' -- required
AND replica_region = '{{ replica_region }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Action to create a replication of the source bot in the secondary region.

INSERT INTO aws.lexv2_models.bot_replicas (
replicaRegion,
bot_id,
region
)
SELECT
'{{ replicaRegion }}' /* required */,
'{{ bot_id }}',
'{{ region }}'
RETURNING
bot_id,
bot_replica_status,
creation_date_time,
replica_region,
source_region
;

DELETE examples

The action to delete the replicated bot in the secondary region.

DELETE FROM aws.lexv2_models.bot_replicas
WHERE bot_id = '{{ bot_id }}' --required
AND replica_region = '{{ replica_region }}' --required
AND region = '{{ region }}' --required
;