updateProfilingGroup method

Future<UpdateProfilingGroupResponse> updateProfilingGroup({
  1. required AgentOrchestrationConfig agentOrchestrationConfig,
  2. required String profilingGroupName,
})

Updates a profiling group.

May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter agentOrchestrationConfig : Specifies whether profiling is enabled or disabled for a profiling group.

Parameter profilingGroupName : The name of the profiling group to update.

Implementation

Future<UpdateProfilingGroupResponse> updateProfilingGroup({
  required AgentOrchestrationConfig agentOrchestrationConfig,
  required String profilingGroupName,
}) async {
  final $payload = <String, dynamic>{
    'agentOrchestrationConfig': agentOrchestrationConfig,
  };
  final response = await _protocol.sendRaw(
    payload: $payload,
    method: 'PUT',
    requestUri: '/profilingGroups/${Uri.encodeComponent(profilingGroupName)}',
    exceptionFnMap: _exceptionFns,
  );
  final $json = await _s.jsonFromResponse(response);
  return UpdateProfilingGroupResponse(
    profilingGroup: ProfilingGroupDescription.fromJson($json),
  );
}