reimport_api
¶
reimport_api(
api_id: __string,
*,
config_overrides: Optional[ApiGatewayV2ClientConfig] = None,
basepath: Optional[__string] = None,
body: Optional[__string] = None,
fail_on_warnings: Optional[__boolean] = None,
) -> ReimportApiResponse
Puts an Api resource.
Parameters:
-
api_id(__string) –The API identifier.
-
basepath(Optional[__string], default:None) –Specifies how to interpret the base path of the API during import. Valid values are ignore, prepend, and split. The default value is ignore. To learn more, see Set the OpenAPI basePath Property. Supported only for HTTP APIs.
-
body(Optional[__string], default:None) –The OpenAPI definition. Supported only for HTTP APIs.
-
fail_on_warnings(Optional[__boolean], default:None) –Specifies whether to rollback the API creation when a warning is encountered. By default, API creation continues if a warning is encountered.
Raises:
-
BadRequestException–The request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
-
ConflictException–The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.
-
NotFoundException–The resource specified in the request was not found. See the message field for more information.
-
TooManyRequestsException–A limit has been exceeded. See the accompanying error message for details.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_apigatewayv2/_services/api_gateway_v2.py
5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 | |