internal virtual GetExperimentTemplateResponse GetExperimentTemplate(GetExperimentTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetExperimentTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetExperimentTemplateResponseUnmarshaller.Instance; return(Invoke <GetExperimentTemplateResponse>(request, options)); }
/// <summary> /// Gets information about the specified experiment template. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetExperimentTemplate service method.</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 GetExperimentTemplate service method, as returned by FIS.</returns> /// <exception cref="Amazon.FIS.Model.ResourceNotFoundException"> /// The specified resource cannot be found. /// </exception> /// <exception cref="Amazon.FIS.Model.ValidationException"> /// The specified input is not valid, or fails to satisfy the constraints for the request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/fis-2020-12-01/GetExperimentTemplate">REST API Reference for GetExperimentTemplate Operation</seealso> public virtual Task <GetExperimentTemplateResponse> GetExperimentTemplateAsync(GetExperimentTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetExperimentTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetExperimentTemplateResponseUnmarshaller.Instance; return(InvokeAsync <GetExperimentTemplateResponse>(request, options, cancellationToken)); }