get_bot_channel_associations
async
¶
get_bot_channel_associations(
bot_name: BotName,
bot_alias: AliasNameOrListAll,
*,
config_overrides: Optional[AsyncLexModelBuildingServiceClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
name_contains: Optional[BotChannelName] = None,
) -> GetBotChannelAssociationsResponse
Returns a list of all of the channels associated with the specified bot.
The GetBotChannelAssociations operation requires permissions for the lex:GetBotChannelAssociations action.
Parameters:
-
bot_name(BotName) –The name of the Amazon Lex bot in the association.
-
bot_alias(AliasNameOrListAll) –An alias pointing to the specific version of the Amazon Lex bot to which this association is being made.
-
next_token(Optional[NextToken], default:None) –A pagination token for fetching the next page of associations. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of associations, specify the pagination token in the next request.
-
max_results(Optional[MaxResults], default:None) –The maximum number of associations to return in the response. The default is 50.
-
name_contains(Optional[BotChannelName], default:None) –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
nameContainsparameter.
Raises:
-
BadRequestException–The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and try again.
-
InternalFailureException–An internal Amazon Lex error occurred. Try your request again.
-
LimitExceededException–The request exceeded a limit. Try your request again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lex_model_building_service/_services/async_lex_model_building_service.py
1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 | |