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
1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 | |