update_model
¶
update_model(
api_id: __string,
model_id: __string,
*,
config_overrides: Optional[ApiGatewayV2ClientConfig] = None,
content_type: Optional[StringWithLengthBetween1And256] = None,
description: Optional[StringWithLengthBetween0And1024] = None,
name: Optional[StringWithLengthBetween1And128] = None,
schema: Optional[StringWithLengthBetween0And32K] = None,
) -> UpdateModelResponse
Updates a Model.
Parameters:
-
api_id(__string) –The API identifier.
-
content_type(Optional[StringWithLengthBetween1And256], default:None) –The content-type for the model, for example, "application/json".
-
description(Optional[StringWithLengthBetween0And1024], default:None) –The description of the model.
-
model_id(__string) –The model ID.
-
name(Optional[StringWithLengthBetween1And128], default:None) –The name of the model.
-
schema(Optional[StringWithLengthBetween0And32K], default:None) –The schema for the model. For application/json models, this should be JSON schema draft 4 model.
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
6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 | |