예제 #1
0
        /// <summary>
        /// Initiates the asynchronous execution of the StopDataCollection operation.
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the StopDataCollection 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<StopDataCollectionResponse> StopDataCollectionAsync(StopDataCollectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new StopDataCollectionRequestMarshaller();
            var unmarshaller = StopDataCollectionResponseUnmarshaller.Instance;

            return InvokeAsync<StopDataCollectionRequest,StopDataCollectionResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
예제 #2
0
 /// <summary>
 /// Stop data collection for the assessment specified by the assessment ARN.
 /// </summary>
 /// <param name="assessmentArn">The ARN of the assessment for which you want to stop 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 StopDataCollection 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.InvalidInputException">
 /// 
 /// </exception>
 /// <exception cref="Amazon.Inspector.Model.NoSuchEntityException">
 /// 
 /// </exception>
 public Task<StopDataCollectionResponse> StopDataCollectionAsync(string assessmentArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
 {
     var request = new StopDataCollectionRequest();
     request.AssessmentArn = assessmentArn;
     return StopDataCollectionAsync(request, cancellationToken);
 }
        /// <summary>
        /// Initiates the asynchronous execution of the StopDataCollection operation.
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the StopDataCollection 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 EndStopDataCollection
        ///         operation.</returns>
        public IAsyncResult BeginStopDataCollection(StopDataCollectionRequest request, AsyncCallback callback, object state)
        {
            var marshaller = new StopDataCollectionRequestMarshaller();
            var unmarshaller = StopDataCollectionResponseUnmarshaller.Instance;

            return BeginInvoke<StopDataCollectionRequest>(request, marshaller, unmarshaller,
                callback, state);
        }
예제 #4
0
        internal StopDataCollectionResponse StopDataCollection(StopDataCollectionRequest request)
        {
            var marshaller = new StopDataCollectionRequestMarshaller();
            var unmarshaller = StopDataCollectionResponseUnmarshaller.Instance;

            return Invoke<StopDataCollectionRequest,StopDataCollectionResponse>(request, marshaller, unmarshaller);
        }
 /// <summary>
 /// Stop data collection for the assessment specified by the assessment ARN.
 /// </summary>
 /// <param name="assessmentArn">The ARN of the assessment for which you want to stop the data collection process.</param>
 /// 
 /// <returns>The response from the StopDataCollection 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.InvalidInputException">
 /// 
 /// </exception>
 /// <exception cref="Amazon.Inspector.Model.NoSuchEntityException">
 /// 
 /// </exception>
 public StopDataCollectionResponse StopDataCollection(string assessmentArn)
 {
     var request = new StopDataCollectionRequest();
     request.AssessmentArn = assessmentArn;
     return StopDataCollection(request);
 }