/// <summary> /// Initiates the asynchronous execution of the StartDataCollection operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartDataCollection operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task<StartDataCollectionResponse> StartDataCollectionAsync(StartDataCollectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new StartDataCollectionRequestMarshaller(); var unmarshaller = StartDataCollectionResponseUnmarshaller.Instance; return InvokeAsync<StartDataCollectionRequest,StartDataCollectionResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Starts data collection for the assessment specified by the assessment ARN. For this /// API to function properly, you must not exceed the limit of running up to 500 concurrent /// agents per AWS account. /// </summary> /// <param name="assessmentArn">The ARN of the assessment for which you want to start the data collection process.</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 StartDataCollection service method, as returned by Inspector.</returns> /// <exception cref="Amazon.Inspector.Model.AccessDeniedException"> /// /// </exception> /// <exception cref="Amazon.Inspector.Model.InternalException"> /// /// </exception> /// <exception cref="Amazon.Inspector.Model.InvalidCrossAccountRoleException"> /// /// </exception> /// <exception cref="Amazon.Inspector.Model.InvalidInputException"> /// /// </exception> /// <exception cref="Amazon.Inspector.Model.NoSuchEntityException"> /// /// </exception> public Task<StartDataCollectionResponse> StartDataCollectionAsync(string assessmentArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new StartDataCollectionRequest(); request.AssessmentArn = assessmentArn; return StartDataCollectionAsync(request, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the StartDataCollection operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartDataCollection operation on AmazonInspectorClient.</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 EndStartDataCollection /// operation.</returns> public IAsyncResult BeginStartDataCollection(StartDataCollectionRequest request, AsyncCallback callback, object state) { var marshaller = new StartDataCollectionRequestMarshaller(); var unmarshaller = StartDataCollectionResponseUnmarshaller.Instance; return BeginInvoke<StartDataCollectionRequest>(request, marshaller, unmarshaller, callback, state); }
internal StartDataCollectionResponse StartDataCollection(StartDataCollectionRequest request) { var marshaller = new StartDataCollectionRequestMarshaller(); var unmarshaller = StartDataCollectionResponseUnmarshaller.Instance; return Invoke<StartDataCollectionRequest,StartDataCollectionResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Starts data collection for the assessment specified by the assessment ARN. For this /// API to function properly, you must not exceed the limit of running up to 500 concurrent /// agents per AWS account. /// </summary> /// <param name="assessmentArn">The ARN of the assessment for which you want to start the data collection process.</param> /// /// <returns>The response from the StartDataCollection service method, as returned by Inspector.</returns> /// <exception cref="Amazon.Inspector.Model.AccessDeniedException"> /// /// </exception> /// <exception cref="Amazon.Inspector.Model.InternalException"> /// /// </exception> /// <exception cref="Amazon.Inspector.Model.InvalidCrossAccountRoleException"> /// /// </exception> /// <exception cref="Amazon.Inspector.Model.InvalidInputException"> /// /// </exception> /// <exception cref="Amazon.Inspector.Model.NoSuchEntityException"> /// /// </exception> public StartDataCollectionResponse StartDataCollection(string assessmentArn) { var request = new StartDataCollectionRequest(); request.AssessmentArn = assessmentArn; return StartDataCollection(request); }