Updates an existing collaboration change request. This operation allows approval actions for pending change requests in collaborations (APPROVE, DENY, CANCEL, COMMIT).
For change requests without automatic approval, a member in the collaboration can manually APPROVE or DENY a change request. The collaboration owner can manually CANCEL or COMMIT a change request.
Parameters:
-
collaboration_identifier
(CollaborationIdentifier)
–
The unique identifier of the collaboration that contains the change request to be updated.
-
change_request_identifier
(CollaborationChangeRequestIdentifier)
–
The unique identifier of the specific change request to be updated within the collaboration.
-
action
(ChangeRequestAction)
–
The action to perform on the change request. Valid values include APPROVE (approve the change), DENY (reject the change), CANCEL (cancel the request), and COMMIT (commit after the request is approved).
For change requests without automatic approval, a member in the collaboration can manually APPROVE or DENY a change request. The collaboration owner can manually CANCEL or COMMIT a change request.
Raises:
Source code in docs_src/capo_cleanrooms/_services/clean_rooms.py
| def update_collaboration_change_request(
self,
collaboration_identifier: "capo_cleanrooms.types.collaboration_identifier.CollaborationIdentifier",
change_request_identifier: "capo_cleanrooms.types.collaboration_change_request_identifier.CollaborationChangeRequestIdentifier",
action: "capo_cleanrooms.types.change_request_action.ChangeRequestAction",
*,
config_overrides: Optional[CleanRoomsClientConfig] = None,
) -> "capo_cleanrooms.types.update_collaboration_change_request_output.UpdateCollaborationChangeRequestOutput":
"""<p>Updates an existing collaboration change request. This operation allows approval actions for pending change requests in collaborations (APPROVE, DENY, CANCEL, COMMIT).</p> <p>For change requests without automatic approval, a member in the collaboration can manually APPROVE or DENY a change request. The collaboration owner can manually CANCEL or COMMIT a change request.</p>
Args:
collaboration_identifier: <p>The unique identifier of the collaboration that contains the change request to be updated.</p>
change_request_identifier: <p>The unique identifier of the specific change request to be updated within the collaboration.</p>
action: <p>The action to perform on the change request. Valid values include APPROVE (approve the change), DENY (reject the change), CANCEL (cancel the request), and COMMIT (commit after the request is approved).</p> <p>For change requests without automatic approval, a member in the collaboration can manually APPROVE or DENY a change request. The collaboration owner can manually CANCEL or COMMIT a change request.</p>
Raises:
capo_cleanrooms.errors.access_denied_exception.AccessDeniedException: <p>Caller does not have sufficient access to perform this action.</p>
capo_cleanrooms.errors.conflict_exception.ConflictException: <p>Updating or deleting a resource can cause an inconsistent state.</p>
capo_cleanrooms.errors.internal_server_exception.InternalServerException: <p>Unexpected error during processing of request.</p>
capo_cleanrooms.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which does not exist.</p>
capo_cleanrooms.errors.throttling_exception.ThrottlingException: <p>Request was denied due to request throttling.</p>
capo_cleanrooms.errors.validation_exception.ValidationException: <p>The input fails to satisfy the specified constraints.</p>
capo_cleanrooms.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_cleanrooms.types.update_collaboration_change_request_input.UpdateCollaborationChangeRequestInput]",
) -> OperationResponse[
"capo_cleanrooms.types.update_collaboration_change_request_output.UpdateCollaborationChangeRequestOutput"
]:
import capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.update_collaboration_change_request
output, http_response = (
capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.update_collaboration_change_request.update_collaboration_change_request(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateCollaborationChangeRequest")
)
input_: capo_cleanrooms.types.update_collaboration_change_request_input.UpdateCollaborationChangeRequestInput = {
"collaboration_identifier": collaboration_identifier,
"change_request_identifier": change_request_identifier,
"action": action,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|