update_automated_reasoning_policy
¶
update_automated_reasoning_policy(
policy_arn: AutomatedReasoningPolicyArn,
policy_definition: AutomatedReasoningPolicyDefinition,
*,
config_overrides: Optional[BedrockClientConfig] = None,
name: Optional[AutomatedReasoningPolicyName] = None,
description: Optional[AutomatedReasoningPolicyDescription] = None,
) -> UpdateAutomatedReasoningPolicyResponse
Updates an existing Automated Reasoning policy with new rules, variables, or configuration. This creates a new version of the policy while preserving the previous version.
Parameters:
-
policy_arn(AutomatedReasoningPolicyArn) –The Amazon Resource Name (ARN) of the Automated Reasoning policy to update. This must be the ARN of a draft policy.
-
policy_definition(AutomatedReasoningPolicyDefinition) –The updated policy definition containing the formal logic rules, variables, and types.
-
name(Optional[AutomatedReasoningPolicyName], default:None) –The updated name for the Automated Reasoning policy.
-
description(Optional[AutomatedReasoningPolicyDescription], default:None) –The updated description for the Automated Reasoning policy.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions.
-
ConflictException–Error occurred because of a conflict while performing an operation.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ResourceNotFoundException–The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
-
ThrottlingException–The number of requests exceeds the limit. Resubmit your request later.
-
TooManyTagsException–The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
-
ValidationException–Input validation failed. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock/_services/bedrock.py
1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 | |