reject_curation_proposal
¶
reject_curation_proposal(
curation_proposal_id: CurationProposalId,
agent_context_id: AgentContextIdentifier,
revision_id: CurationProposalRevision,
*,
config_overrides: Optional[ContextClientConfig] = None,
client_token: Optional[ClientToken] = None,
) -> RejectCurationProposalResponse
Rejects a curation proposal. Its change is not applied to the agent context.
Parameters:
-
curation_proposal_id(CurationProposalId) –The ID of the proposal to reject.
-
agent_context_id(AgentContextIdentifier) –The agent context that the proposal belongs to, by its ID or ARN. If the proposal belongs to another agent context, the request fails with
ResourceNotFoundException. -
revision_id(CurationProposalRevision) –The revisionId the curator observed. A mismatch means a stale view.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to make the request idempotent. For 8 hours, a retry with the same token returns the rejected proposal, and the same token used with another proposal returns a
ValidationException.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
-
InternalServerException–The request failed because of an internal error. Retry the request.
-
ThrottlingException–The request was denied because it exceeded a request rate quota. Wait, then retry the request.
-
ValidationException–The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
-
ConflictException–The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
-
ResourceNotFoundException–The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Reject a curation proposal The following example rejects a curation proposal that is waiting for review, so AWS Context doesn't apply its change set to the agent context.
>>> client.reject_curation_proposal(agent_context_id='ac-4f2a9c1e7b3d4a6f8e0c2b5d7a9f1e3c', curation_proposal_id='cp-1331654b3cbad6b265e09a4588a4e32f', revision_id='c4e6a8b0-2d1f-4a3c-9e5b-7d9f1b3a5c7e', client_token='8a1c3e5b-7d9f-4b2d-a6c8-0e2f4a6b8d1c')
Source code in docs_src/capo_context/_services/context.py
3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 | |