get_migrations
¶
get_migrations(
*,
config_overrides: Optional[LexModelBuildingServiceClientConfig] = 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/lex_model_building_service.py
2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 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 | |