reject_curation_proposal
async
¶
reject_curation_proposal(
curation_proposal_id: CurationProposalId,
agent_context_id: AgentContextIdentifier,
revision_id: CurationProposalRevision,
*,
config_overrides: Optional[AsyncContextClientConfig] = 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.
>>> await 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/async_context.py
3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 | |