post_agent_profile
async
¶
post_agent_profile(
profiling_group_name: ProfilingGroupName,
agent_profile: AgentProfile,
content_type: str,
*,
config_overrides: Optional[AsyncCodeGuruProfilerClientConfig] = None,
profile_token: Optional[ClientToken] = None,
) -> PostAgentProfileResponse
Submits profiling data to an aggregated profile of a profiling group. To get an aggregated profile that is created with this profiling data, use GetProfile .
Parameters:
-
profiling_group_name(ProfilingGroupName) –The name of the profiling group with the aggregated profile that receives the submitted profiling data.
-
agent_profile(AgentProfile) –The submitted profiling data.
-
profile_token(Optional[ClientToken], default:None) –Amazon CodeGuru Profiler uses this universally unique identifier (UUID) to prevent the accidental submission of duplicate profiling data if there are failures and retries.
-
content_type(str) –The format of the submitted profiling data. The format maps to the
AcceptandContent-Typeheaders of the HTTP request. You can specify one of the following: or the default .-
application/json— standard JSON format -
application/x-amzn-ion— the Amazon Ion data format. For more information, see Amazon Ion.
-
Raises:
-
InternalServerException–The server encountered an internal error and is unable to complete the request.
-
ResourceNotFoundException–The resource specified in the request does not exist.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The parameter is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codeguruprofiler/_services/async_code_guru_profiler.py
1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 | |