/// <summary> /// Gets details about an existing OriginEndpoint. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeOriginEndpoint service method.</param> /// /// <returns>The response from the DescribeOriginEndpoint service method, as returned by MediaPackage.</returns> /// <exception cref="Amazon.MediaPackage.Model.ForbiddenException"> /// The client is not authorized to access the requested resource. /// </exception> /// <exception cref="Amazon.MediaPackage.Model.InternalServerErrorException"> /// An unexpected error occurred. /// </exception> /// <exception cref="Amazon.MediaPackage.Model.NotFoundException"> /// The requested resource does not exist. /// </exception> /// <exception cref="Amazon.MediaPackage.Model.ServiceUnavailableException"> /// An unexpected error occurred. /// </exception> /// <exception cref="Amazon.MediaPackage.Model.TooManyRequestsException"> /// The client has exceeded their resource or throttling limits. /// </exception> /// <exception cref="Amazon.MediaPackage.Model.UnprocessableEntityException"> /// The parameters sent in the request are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/DescribeOriginEndpoint">REST API Reference for DescribeOriginEndpoint Operation</seealso> public virtual DescribeOriginEndpointResponse DescribeOriginEndpoint(DescribeOriginEndpointRequest request) { var marshaller = DescribeOriginEndpointRequestMarshaller.Instance; var unmarshaller = DescribeOriginEndpointResponseUnmarshaller.Instance; return(Invoke <DescribeOriginEndpointRequest, DescribeOriginEndpointResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Gets details about an existing OriginEndpoint. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeOriginEndpoint service method.</param> /// /// <returns>The response from the DescribeOriginEndpoint service method, as returned by MediaPackage.</returns> /// <exception cref="Amazon.MediaPackage.Model.ForbiddenException"> /// The client is not authorized to access the requested resource. /// </exception> /// <exception cref="Amazon.MediaPackage.Model.InternalServerErrorException"> /// An unexpected error occurred. /// </exception> /// <exception cref="Amazon.MediaPackage.Model.NotFoundException"> /// The requested resource does not exist. /// </exception> /// <exception cref="Amazon.MediaPackage.Model.ServiceUnavailableException"> /// An unexpected error occurred. /// </exception> /// <exception cref="Amazon.MediaPackage.Model.TooManyRequestsException"> /// The client has exceeded their resource or throttling limits. /// </exception> /// <exception cref="Amazon.MediaPackage.Model.UnprocessableEntityException"> /// The parameters sent in the request are not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/DescribeOriginEndpoint">REST API Reference for DescribeOriginEndpoint Operation</seealso> public virtual DescribeOriginEndpointResponse DescribeOriginEndpoint(DescribeOriginEndpointRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeOriginEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeOriginEndpointResponseUnmarshaller.Instance; return(Invoke <DescribeOriginEndpointResponse>(request, options)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeOriginEndpoint operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeOriginEndpoint 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> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/DescribeOriginEndpoint">REST API Reference for DescribeOriginEndpoint Operation</seealso> public virtual Task <DescribeOriginEndpointResponse> DescribeOriginEndpointAsync(DescribeOriginEndpointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = DescribeOriginEndpointRequestMarshaller.Instance; var unmarshaller = DescribeOriginEndpointResponseUnmarshaller.Instance; return(InvokeAsync <DescribeOriginEndpointRequest, DescribeOriginEndpointResponse>(request, marshaller, unmarshaller, cancellationToken)); }