LexModelBuildingService / Paginator / GetBotChannelAssociations
GetBotChannelAssociations#
- class LexModelBuildingService.Paginator.GetBotChannelAssociations#
paginator = client.get_paginator('get_bot_channel_associations')
- paginate(**kwargs)#
Creates an iterator that will paginate through responses from
LexModelBuildingService.Client.get_bot_channel_associations()
.See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( botName='string', botAlias='string', nameContains='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
botName (string) –
[REQUIRED]
The name of the Amazon Lex bot in the association.
botAlias (string) –
[REQUIRED]
An alias pointing to the specific version of the Amazon Lex bot to which this association is being made.
nameContains (string) – Substring to match in channel association names. An association will be returned if any part of its name matches the substring. For example, “xyz” matches both “xyzabc” and “abcxyz.” To return all bot channel associations, use a hyphen (“-”) as the
nameContains
parameter.PaginationConfig (dict) –
A dictionary that provides parameters to control pagination.
MaxItems (integer) –
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
NextToken
will be provided in the output that you can use to resume pagination.PageSize (integer) –
The size of each page.
StartingToken (string) –
A token to specify where to start paginating. This is the
NextToken
from a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'botChannelAssociations': [ { 'name': 'string', 'description': 'string', 'botAlias': 'string', 'botName': 'string', 'createdDate': datetime(2015, 1, 1), 'type': 'Facebook'|'Slack'|'Twilio-Sms'|'Kik', 'botConfiguration': { 'string': 'string' }, 'status': 'IN_PROGRESS'|'CREATED'|'FAILED', 'failureReason': 'string' }, ], 'NextToken': 'string' }
Response Structure
(dict) –
botChannelAssociations (list) –
An array of objects, one for each association, that provides information about the Amazon Lex bot and its association with the channel.
(dict) –
Represents an association between an Amazon Lex bot and an external messaging platform.
name (string) –
The name of the association between the bot and the channel.
description (string) –
A text description of the association you are creating.
botAlias (string) –
An alias pointing to the specific version of the Amazon Lex bot to which this association is being made.
botName (string) –
The name of the Amazon Lex bot to which this association is being made.
Note
Currently, Amazon Lex supports associations with Facebook and Slack, and Twilio.
createdDate (datetime) –
The date that the association between the Amazon Lex bot and the channel was created.
type (string) –
Specifies the type of association by indicating the type of channel being established between the Amazon Lex bot and the external messaging platform.
botConfiguration (dict) –
Provides information necessary to communicate with the messaging platform.
(string) –
(string) –
status (string) –
The status of the bot channel.
CREATED
- The channel has been created and is ready for use.IN_PROGRESS
- Channel creation is in progress.FAILED
- There was an error creating the channel. For information about the reason for the failure, see thefailureReason
field.
failureReason (string) –
If
status
isFAILED
, Amazon Lex provides the reason that it failed to create the association.
NextToken (string) –
A token to resume pagination.