For use by AWS Ground Station Agent and shouldn't be called directly.
Gets a presigned URL for uploading agent task response logs.
Parameters:
-
agent_id
(Uuid)
–
UUID of agent requesting the response URL.
-
task_id
(Uuid)
–
GUID of the agent task for which the response URL is being requested.
Raises:
Source code in docs_src/capo_groundstation/_services/ground_station.py
| def get_agent_task_response_url(
self,
agent_id: "capo_groundstation.types.uuid.Uuid",
task_id: "capo_groundstation.types.uuid.Uuid",
*,
config_overrides: Optional[GroundStationClientConfig] = None,
) -> "capo_groundstation.types.get_agent_task_response_url_response.GetAgentTaskResponseUrlResponse":
"""<note> <p> For use by AWS Ground Station Agent and shouldn't be called directly.</p> </note> <p>Gets a presigned URL for uploading agent task response logs.</p>
Args:
agent_id: <p>UUID of agent requesting the response URL.</p>
task_id: <p>GUID of the agent task for which the response URL is being requested.</p>
Raises:
capo_groundstation.errors.dependency_exception.DependencyException: <p>Dependency encountered an error.</p>
capo_groundstation.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters are not valid.</p>
capo_groundstation.errors.resource_not_found_exception.ResourceNotFoundException: <p>Resource was not found.</p>
capo_groundstation.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_groundstation.types.get_agent_task_response_url_request.GetAgentTaskResponseUrlRequest]",
) -> OperationResponse[
"capo_groundstation.types.get_agent_task_response_url_response.GetAgentTaskResponseUrlResponse"
]:
import capo_groundstation._operations.ground_station.get_agent_task_response_url
output, http_response = (
capo_groundstation._operations.ground_station.get_agent_task_response_url.get_agent_task_response_url(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetAgentTaskResponseUrl")
)
input_: capo_groundstation.types.get_agent_task_response_url_request.GetAgentTaskResponseUrlRequest = {
"agent_id": agent_id,
"task_id": task_id,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|