Creates a new change request to modify an existing collaboration. This enables post-creation modifications to collaborations through a structured API-driven approach.
Parameters:
-
collaboration_identifier
(CollaborationIdentifier)
–
The identifier of the collaboration that the change request is made against.
-
changes
(ChangeInputList)
–
The list of changes to apply to the collaboration. Each change specifies the type of modification and the details of what should be changed.
Raises:
Source code in docs_src/capo_cleanrooms/_services/async_clean_rooms.py
| async def create_collaboration_change_request(
self,
collaboration_identifier: "capo_cleanrooms.types.collaboration_identifier.CollaborationIdentifier",
changes: "capo_cleanrooms.types.change_input_list.ChangeInputList",
*,
config_overrides: Optional[AsyncCleanRoomsClientConfig] = None,
) -> "capo_cleanrooms.types.create_collaboration_change_request_output.CreateCollaborationChangeRequestOutput":
"""<p>Creates a new change request to modify an existing collaboration. This enables post-creation modifications to collaborations through a structured API-driven approach.</p>
Args:
collaboration_identifier: <p>The identifier of the collaboration that the change request is made against.</p>
changes: <p>The list of changes to apply to the collaboration. Each change specifies the type of modification and the details of what should be changed.</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.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>Request denied because service quota has been exceeded.</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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_cleanrooms.types.create_collaboration_change_request_input.CreateCollaborationChangeRequestInput]",
) -> AsyncOperationResponse[
"capo_cleanrooms.types.create_collaboration_change_request_output.CreateCollaborationChangeRequestOutput"
]:
import capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.create_collaboration_change_request
(
output,
http_response,
) = await capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.create_collaboration_change_request.async_create_collaboration_change_request(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("CreateCollaborationChangeRequest")
)
input_: capo_cleanrooms.types.create_collaboration_change_request_input.CreateCollaborationChangeRequestInput = {
"collaboration_identifier": collaboration_identifier,
"changes": changes,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|