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/async_ground_station.py
| async def get_agent_task_response_url(
self,
agent_id: "capo_groundstation.types.uuid.Uuid",
task_id: "capo_groundstation.types.uuid.Uuid",
*,
config_overrides: Optional[AsyncGroundStationClientConfig] = 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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_groundstation.types.get_agent_task_response_url_request.GetAgentTaskResponseUrlRequest]",
) -> AsyncOperationResponse[
"capo_groundstation.types.get_agent_task_response_url_response.GetAgentTaskResponseUrlResponse"
]:
import capo_groundstation._operations.ground_station.get_agent_task_response_url
(
output,
http_response,
) = await capo_groundstation._operations.ground_station.get_agent_task_response_url.async_get_agent_task_response_url(
req.options, req.input
)
return AsyncOperationResponse(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 = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|