Returns the object definitions for a set of objects associated with the pipeline. Object definitions are composed of a set of fields that define the properties of the object.
private Amazon.DataPipeline.Model.DescribeObjectsResponse CallAWSServiceOperation(IAmazonDataPipeline client, Amazon.DataPipeline.Model.DescribeObjectsRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Data Pipeline", "DescribeObjects"); try { #if DESKTOP return(client.DescribeObjects(request)); #elif CORECLR return(client.DescribeObjectsAsync(request).GetAwaiter().GetResult()); #else #error "Unknown build edition" #endif } catch (AmazonServiceException exc) { var webException = exc.InnerException as System.Net.WebException; if (webException != null) { throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException); } throw; } }
/// <summary> /// Initiates the asynchronous execution of the DescribeObjects operation. /// <seealso cref="Amazon.DataPipeline.IAmazonDataPipeline.DescribeObjects"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeObjects 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<DescribeObjectsResponse> DescribeObjectsAsync(DescribeObjectsRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeObjectsRequestMarshaller(); var unmarshaller = DescribeObjectsResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DescribeObjectsRequest, DescribeObjectsResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
public object Execute(ExecutorContext context) { var cmdletContext = context as CmdletContext; #pragma warning disable CS0618, CS0612 //A class member was marked with the Obsolete attribute var useParameterSelect = this.Select.StartsWith("^") || this.PassThru.IsPresent; #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute // create request and set iteration invariants var request = new Amazon.DataPipeline.Model.DescribeObjectsRequest(); if (cmdletContext.EvaluateExpression != null) { request.EvaluateExpressions = cmdletContext.EvaluateExpression.Value; } if (cmdletContext.ObjectId != null) { request.ObjectIds = cmdletContext.ObjectId; } if (cmdletContext.PipelineId != null) { request.PipelineId = cmdletContext.PipelineId; } // Initialize loop variant and commence piping var _nextToken = cmdletContext.Marker; var _userControllingPaging = this.NoAutoIteration.IsPresent || ParameterWasBound(nameof(this.Marker)); var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint); do { request.Marker = _nextToken; CmdletOutput output; try { var response = CallAWSServiceOperation(client, request); object pipelineOutput = null; if (!useParameterSelect) { pipelineOutput = cmdletContext.Select(response, this); } output = new CmdletOutput { PipelineOutput = pipelineOutput, ServiceResponse = response }; _nextToken = response.Marker; } catch (Exception e) { output = new CmdletOutput { ErrorResponse = e }; } ProcessOutput(output); } while (!_userControllingPaging && AutoIterationHelpers.HasValue(_nextToken)); if (useParameterSelect) { WriteObject(cmdletContext.Select(null, this)); } return(null); }
/// <summary> /// Initiates the asynchronous execution of the DescribeObjects operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeObjects 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 EndDescribeObjects /// operation.</returns> public IAsyncResult BeginDescribeObjects(DescribeObjectsRequest request, AsyncCallback callback, object state) { var marshaller = new DescribeObjectsRequestMarshaller(); var unmarshaller = DescribeObjectsResponseUnmarshaller.Instance; return BeginInvoke<DescribeObjectsRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// <para> Returns the object definitions for a set of objects associated with the pipeline. Object definitions are composed of a set of fields /// that define the properties of the object. </para> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeObjects service method on /// AmazonDataPipeline.</param> /// /// <returns>The response from the DescribeObjects service method, as returned by AmazonDataPipeline.</returns> /// /// <exception cref="T:Amazon.DataPipeline.Model.PipelineNotFoundException" /> /// <exception cref="T:Amazon.DataPipeline.Model.InternalServiceErrorException" /> /// <exception cref="T:Amazon.DataPipeline.Model.InvalidRequestException" /> /// <exception cref="T:Amazon.DataPipeline.Model.PipelineDeletedException" /> public DescribeObjectsResponse DescribeObjects(DescribeObjectsRequest request) { var task = DescribeObjectsAsync(request); try { return task.Result; } catch(AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return null; } }
/// <summary> /// Initiates the asynchronous execution of the DescribeObjects operation. /// <seealso cref="Amazon.DataPipeline.IAmazonDataPipeline.DescribeObjects"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeObjects 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<DescribeObjectsResponse> DescribeObjectsAsync(DescribeObjectsRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeObjectsRequestMarshaller(); var unmarshaller = DescribeObjectsResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DescribeObjectsRequest, DescribeObjectsResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Gets the object definitions for a set of objects associated with the pipeline. Object /// definitions are composed of a set of fields that define the properties of the object. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeObjects service method.</param> /// /// <returns>The response from the DescribeObjects 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> /// <exception cref="Amazon.DataPipeline.Model.PipelineDeletedException"> /// The specified pipeline has been deleted. /// </exception> /// <exception cref="Amazon.DataPipeline.Model.PipelineNotFoundException"> /// The specified pipeline was not found. Verify that you used the correct user and account /// identifiers. /// </exception> public DescribeObjectsResponse DescribeObjects(DescribeObjectsRequest request) { var marshaller = new DescribeObjectsRequestMarshaller(); var unmarshaller = DescribeObjectsResponseUnmarshaller.Instance; return Invoke<DescribeObjectsRequest,DescribeObjectsResponse>(request, marshaller, unmarshaller); }
internal DescribeObjectsPaginator(IAmazonDataPipeline client, DescribeObjectsRequest request) { this._client = client; this._request = request; }
/// <summary> /// <para> Returns the object definitions for a set of objects associated with the pipeline. Object definitions are composed of a set of fields /// that define the properties of the object. </para> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeObjects service method on /// AmazonDataPipeline.</param> /// /// <returns>The response from the DescribeObjects service method, as returned by AmazonDataPipeline.</returns> /// /// <exception cref="T:Amazon.DataPipeline.Model.PipelineNotFoundException" /> /// <exception cref="T:Amazon.DataPipeline.Model.InternalServiceErrorException" /> /// <exception cref="T:Amazon.DataPipeline.Model.InvalidRequestException" /> /// <exception cref="T:Amazon.DataPipeline.Model.PipelineDeletedException" /> public DescribeObjectsResponse DescribeObjects(DescribeObjectsRequest request) { var task = DescribeObjectsAsync(request); try { return task.Result; } catch(AggregateException e) { throw e.InnerException; } }
IAsyncResult invokeDescribeObjects(DescribeObjectsRequest describeObjectsRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DescribeObjectsRequestMarshaller().Marshall(describeObjectsRequest); var unmarshaller = DescribeObjectsResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the DescribeObjects operation. /// <seealso cref="Amazon.DataPipeline.IAmazonDataPipeline.DescribeObjects"/> /// </summary> /// /// <param name="describeObjectsRequest">Container for the necessary parameters to execute the DescribeObjects 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 EndDescribeObjects /// operation.</returns> public IAsyncResult BeginDescribeObjects(DescribeObjectsRequest describeObjectsRequest, AsyncCallback callback, object state) { return invokeDescribeObjects(describeObjectsRequest, callback, state, false); }
/// <summary> /// <para> Returns the object definitions for a set of objects associated with the pipeline. Object definitions are composed of a set of fields /// that define the properties of the object. </para> /// </summary> /// /// <param name="describeObjectsRequest">Container for the necessary parameters to execute the DescribeObjects service method on /// AmazonDataPipeline.</param> /// /// <returns>The response from the DescribeObjects service method, as returned by AmazonDataPipeline.</returns> /// /// <exception cref="PipelineNotFoundException"/> /// <exception cref="InternalServiceErrorException"/> /// <exception cref="InvalidRequestException"/> /// <exception cref="PipelineDeletedException"/> public DescribeObjectsResponse DescribeObjects(DescribeObjectsRequest describeObjectsRequest) { IAsyncResult asyncResult = invokeDescribeObjects(describeObjectsRequest, null, null, true); return EndDescribeObjects(asyncResult); }
/// <summary> /// Initiates the asynchronous execution of the DescribeObjects operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeObjects 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<DescribeObjectsResponse> DescribeObjectsAsync(DescribeObjectsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeObjectsRequestMarshaller(); var unmarshaller = DescribeObjectsResponseUnmarshaller.Instance; return InvokeAsync<DescribeObjectsRequest,DescribeObjectsResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Paginator for DescribeObjects operation ///</summary> public IDescribeObjectsPaginator DescribeObjects(DescribeObjectsRequest request) { return(new DescribeObjectsPaginator(this.client, request)); }