import_documentation_parts
¶
import_documentation_parts(
rest_api_id: String,
body: Blob,
*,
config_overrides: Optional[APIGatewayClientConfig] = None,
mode: Optional[PutMode] = None,
fail_on_warnings: Optional[Boolean] = None,
) -> DocumentationPartIds
Imports documentation parts
Parameters:
-
rest_api_id(String) –The string identifier of the associated RestApi.
-
mode(Optional[PutMode], default:None) –A query parameter to indicate whether to overwrite (
overwrite) any existing DocumentationParts definition or to merge (merge) the new definition into the existing one. The default value ismerge. -
fail_on_warnings(Optional[Boolean], default:None) –A query parameter to specify whether to rollback the documentation importation (
true) or not (false) when a warning is encountered. The default value isfalse. -
body(Blob) –Raw byte array representing the to-be-imported documentation parts. To import from an OpenAPI file, this is a JSON object.
Raises:
-
BadRequestException–The submitted request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
-
ConflictException–The request configuration has conflicts. For details, see the accompanying error message.
-
LimitExceededException–The request exceeded the rate limit. Retry after the specified time period.
-
NotFoundException–The requested resource is not found. Make sure that the request URI is correct.
-
TooManyRequestsException–The request has reached its throttling limit. Retry after the specified time period.
-
UnauthorizedException–The request is denied because the caller has insufficient permissions.
-
UnknownServiceError–The service returned an error code this client does not model.