get_migrations
async
¶
get_migrations(
*,
config_overrides: Optional[AsyncLexModelBuildingServiceClientConfig] = None,
sort_by_attribute: Optional[MigrationSortAttribute] = None,
sort_by_order: Optional[SortOrder] = None,
v1_bot_name_contains: Optional[BotName] = None,
migration_status_equals: Optional[MigrationStatus] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> GetMigrationsResponse
Gets a list of migrations between Amazon Lex V1 and Amazon Lex V2.
Parameters:
-
sort_by_attribute(Optional[MigrationSortAttribute], default:None) –The field to sort the list of migrations by. You can sort by the Amazon Lex V1 bot name or the date and time that the migration was started.
-
sort_by_order(Optional[SortOrder], default:None) –The order so sort the list.
-
v1_bot_name_contains(Optional[BotName], default:None) –Filters the list to contain only bots whose name contains the specified string. The string is matched anywhere in bot name.
-
migration_status_equals(Optional[MigrationStatus], default:None) –Filters the list to contain only migrations in the specified state.
-
max_results(Optional[MaxResults], default:None) –The maximum number of migrations to return in the response. The default is 10.
-
next_token(Optional[NextToken], default:None) –A pagination token that fetches the next page of migrations. If the response to this operation is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of migrations, specify the pagination token in the request.
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
2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 | |