create_profiling_group
async
¶
create_profiling_group(
profiling_group_name: ProfilingGroupName,
client_token: ClientToken,
*,
config_overrides: Optional[AsyncCodeGuruProfilerClientConfig] = None,
compute_platform: Optional[ComputePlatform] = None,
agent_orchestration_config: Optional[AgentOrchestrationConfig] = None,
tags: Optional[TagsMap] = None,
) -> CreateProfilingGroupResponse
Creates a profiling group.
Parameters:
-
profiling_group_name(ProfilingGroupName) –The name of the profiling group to create.
-
compute_platform(Optional[ComputePlatform], default:None) –The compute platform of the profiling group. Use
AWSLambdaif your application runs on AWS Lambda. UseDefaultif your application runs on a compute platform that is not AWS Lambda, such an Amazon EC2 instance, an on-premises server, or a different platform. If not specified,Defaultis used. -
client_token(ClientToken) –Amazon CodeGuru Profiler uses this universally unique identifier (UUID) to prevent the accidental creation of duplicate profiling groups if there are failures and retries.
-
agent_orchestration_config(Optional[AgentOrchestrationConfig], default:None) –Specifies whether profiling is enabled or disabled for the created profiling group.
-
tags(Optional[TagsMap], default:None) –A list of tags to add to the created profiling group.
Raises:
-
ConflictException–The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
-
InternalServerException–The server encountered an internal error and is unable to complete the request.
-
ServiceQuotaExceededException–You have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase.
-
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.