/// <summary> /// Creates a profiling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateProfilingGroup service method.</param> /// /// <returns>The response from the CreateProfilingGroup service method, as returned by CodeGuruProfiler.</returns> /// <exception cref="Amazon.CodeGuruProfiler.Model.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. /// </exception> /// <exception cref="Amazon.CodeGuruProfiler.Model.InternalServerException"> /// The server encountered an internal error and is unable to complete the request. /// </exception> /// <exception cref="Amazon.CodeGuruProfiler.Model.ServiceQuotaExceededException"> /// You have exceeded your service quota. To perform the requested action, remove some /// of the relevant resources, or use <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html">Service /// Quotas</a> to request a service quota increase. /// </exception> /// <exception cref="Amazon.CodeGuruProfiler.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CodeGuruProfiler.Model.ValidationException"> /// The parameter is not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/CreateProfilingGroup">REST API Reference for CreateProfilingGroup Operation</seealso> public virtual CreateProfilingGroupResponse CreateProfilingGroup(CreateProfilingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateProfilingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateProfilingGroupResponseUnmarshaller.Instance; return(Invoke <CreateProfilingGroupResponse>(request, options)); }
/// <summary> /// Creates a profiling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateProfilingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateProfilingGroup service method, as returned by CodeGuruProfiler.</returns> /// <exception cref="Amazon.CodeGuruProfiler.Model.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. /// </exception> /// <exception cref="Amazon.CodeGuruProfiler.Model.InternalServerException"> /// The server encountered an internal error and is unable to complete the request. /// </exception> /// <exception cref="Amazon.CodeGuruProfiler.Model.ServiceQuotaExceededException"> /// You have exceeded your service quota. To perform the requested action, remove some /// of the relevant resources, or use <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html">Service /// Quotas</a> to request a service quota increase. /// </exception> /// <exception cref="Amazon.CodeGuruProfiler.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.CodeGuruProfiler.Model.ValidationException"> /// The parameter is not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/CreateProfilingGroup">REST API Reference for CreateProfilingGroup Operation</seealso> public virtual Task <CreateProfilingGroupResponse> CreateProfilingGroupAsync(CreateProfilingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateProfilingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateProfilingGroupResponseUnmarshaller.Instance; return(InvokeAsync <CreateProfilingGroupResponse>(request, options, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the CreateProfilingGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateProfilingGroup operation on AmazonCodeGuruProfilerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateProfilingGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/CreateProfilingGroup">REST API Reference for CreateProfilingGroup Operation</seealso> public virtual IAsyncResult BeginCreateProfilingGroup(CreateProfilingGroupRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateProfilingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateProfilingGroupResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }