Creates a new empty pipeline. When this action succeeds, you can then use the PutPipelineDefinition action to populate the pipeline.
/// <summary> /// Initiates the asynchronous execution of the CreatePipeline operation. /// <seealso cref="Amazon.DataPipeline.IAmazonDataPipeline.CreatePipeline"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreatePipeline 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<CreatePipelineResponse> CreatePipelineAsync(CreatePipelineRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new CreatePipelineRequestMarshaller(); var unmarshaller = CreatePipelineResponseUnmarshaller.GetInstance(); return Invoke<IRequest, CreatePipelineRequest, CreatePipelineResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the CreatePipeline operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreatePipeline operation on AmazonDataPipelineClient.</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 EndCreatePipeline /// operation.</returns> public IAsyncResult BeginCreatePipeline(CreatePipelineRequest request, AsyncCallback callback, object state) { var marshaller = new CreatePipelineRequestMarshaller(); var unmarshaller = CreatePipelineResponseUnmarshaller.Instance; return BeginInvoke<CreatePipelineRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// <para>Creates a new empty pipeline. When this action succeeds, you can then use the PutPipelineDefinition action to populate the /// pipeline.</para> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreatePipeline service method on /// AmazonDataPipeline.</param> /// /// <returns>The response from the CreatePipeline service method, as returned by AmazonDataPipeline.</returns> /// /// <exception cref="T:Amazon.DataPipeline.Model.InternalServiceErrorException" /> /// <exception cref="T:Amazon.DataPipeline.Model.InvalidRequestException" /> public CreatePipelineResponse CreatePipeline(CreatePipelineRequest request) { var task = CreatePipelineAsync(request); try { return task.Result; } catch(AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return null; } }
/// <summary> /// Initiates the asynchronous execution of the CreatePipeline operation. /// <seealso cref="Amazon.DataPipeline.IAmazonDataPipeline.CreatePipeline"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreatePipeline 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 async Task<CreatePipelineResponse> CreatePipelineAsync(CreatePipelineRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new CreatePipelineRequestMarshaller(); var unmarshaller = CreatePipelineResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, CreatePipelineRequest, CreatePipelineResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Creates a new, empty pipeline. Use <a>PutPipelineDefinition</a> to populate the pipeline. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePipeline service method.</param> /// /// <returns>The response from the CreatePipeline service method, as returned by DataPipeline.</returns> /// <exception cref="Amazon.DataPipeline.Model.InternalServiceErrorException"> /// An internal service error occurred. /// </exception> /// <exception cref="Amazon.DataPipeline.Model.InvalidRequestException"> /// The request was not valid. Verify that your request was properly formatted, that the /// signature was generated with the correct credentials, and that you haven't exceeded /// any of the service limits for your account. /// </exception> public CreatePipelineResponse CreatePipeline(CreatePipelineRequest request) { var marshaller = new CreatePipelineRequestMarshaller(); var unmarshaller = CreatePipelineResponseUnmarshaller.Instance; return Invoke<CreatePipelineRequest,CreatePipelineResponse>(request, marshaller, unmarshaller); }
/// <summary> /// <para>Creates a new empty pipeline. When this action succeeds, you can then use the PutPipelineDefinition action to populate the /// pipeline.</para> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreatePipeline service method on /// AmazonDataPipeline.</param> /// /// <returns>The response from the CreatePipeline service method, as returned by AmazonDataPipeline.</returns> /// /// <exception cref="T:Amazon.DataPipeline.Model.InternalServiceErrorException" /> /// <exception cref="T:Amazon.DataPipeline.Model.InvalidRequestException" /> public CreatePipelineResponse CreatePipeline(CreatePipelineRequest request) { var task = CreatePipelineAsync(request); try { return task.Result; } catch(AggregateException e) { throw e.InnerException; } }
IAsyncResult invokeCreatePipeline(CreatePipelineRequest createPipelineRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new CreatePipelineRequestMarshaller().Marshall(createPipelineRequest); var unmarshaller = CreatePipelineResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the CreatePipeline operation. /// <seealso cref="Amazon.DataPipeline.IAmazonDataPipeline.CreatePipeline"/> /// </summary> /// /// <param name="createPipelineRequest">Container for the necessary parameters to execute the CreatePipeline operation on /// AmazonDataPipeline.</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 EndCreatePipeline /// operation.</returns> public IAsyncResult BeginCreatePipeline(CreatePipelineRequest createPipelineRequest, AsyncCallback callback, object state) { return invokeCreatePipeline(createPipelineRequest, callback, state, false); }
/// <summary> /// <para>Creates a new empty pipeline. When this action succeeds, you can then use the PutPipelineDefinition action to populate the /// pipeline.</para> /// </summary> /// /// <param name="createPipelineRequest">Container for the necessary parameters to execute the CreatePipeline service method on /// AmazonDataPipeline.</param> /// /// <returns>The response from the CreatePipeline service method, as returned by AmazonDataPipeline.</returns> /// /// <exception cref="InternalServiceErrorException"/> /// <exception cref="InvalidRequestException"/> public CreatePipelineResponse CreatePipeline(CreatePipelineRequest createPipelineRequest) { IAsyncResult asyncResult = invokeCreatePipeline(createPipelineRequest, null, null, true); return EndCreatePipeline(asyncResult); }
/// <summary> /// Initiates the asynchronous execution of the CreatePipeline operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreatePipeline 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<CreatePipelineResponse> CreatePipelineAsync(CreatePipelineRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new CreatePipelineRequestMarshaller(); var unmarshaller = CreatePipelineResponseUnmarshaller.Instance; return InvokeAsync<CreatePipelineRequest,CreatePipelineResponse>(request, marshaller, unmarshaller, cancellationToken); }