LexModelsV2 / Client / create_bot_replica

create_bot_replica#

LexModelsV2.Client.create_bot_replica(**kwargs)#

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

See also: AWS API Documentation

Request Syntax

response = client.create_bot_replica(
    botId='string',
    replicaRegion='string'
)
Parameters:
  • botId (string) –

    [REQUIRED]

    The request for the unique bot ID of the source bot to be replicated in the secondary region.

  • replicaRegion (string) –

    [REQUIRED]

    The request for the secondary region that will be used in the replication of the source bot.

Return type:

dict

Returns:

Response Syntax

{
    'botId': 'string',
    'replicaRegion': 'string',
    'sourceRegion': 'string',
    'creationDateTime': datetime(2015, 1, 1),
    'botReplicaStatus': 'Enabling'|'Enabled'|'Deleting'|'Failed'
}

Response Structure

  • (dict) –

    • botId (string) –

      The unique bot ID of the replicated bot generated.

    • replicaRegion (string) –

      The region of the replicated bot generated.

    • sourceRegion (string) –

      The source region for the source bot used for the replicated bot generated.

    • creationDateTime (datetime) –

      The creation date and time of the replicated bot generated.

    • botReplicaStatus (string) –

      The operational status of the replicated bot generated.

Exceptions

  • LexModelsV2.Client.exceptions.ThrottlingException

  • LexModelsV2.Client.exceptions.ServiceQuotaExceededException

  • LexModelsV2.Client.exceptions.ValidationException

  • LexModelsV2.Client.exceptions.PreconditionFailedException

  • LexModelsV2.Client.exceptions.ConflictException

  • LexModelsV2.Client.exceptions.InternalServerException