public void CreateParameterGroupMarshallTest() { var request = InstantiateClassGenerator.Execute <CreateParameterGroupRequest>(); var marshaller = new CreateParameterGroupRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <CreateParameterGroupRequest>(request, jsonRequest); var webResponse = new WebResponseData { Headers = { { "x-amzn-RequestId", Guid.NewGuid().ToString() }, { "x-amz-crc32", "0" } } }; var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("CreateParameterGroup").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = CreateParameterGroupResponseUnmarshaller.Instance.Unmarshall(context) as CreateParameterGroupResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
internal CreateParameterGroupResponse CreateParameterGroup(CreateParameterGroupRequest request) { var marshaller = new CreateParameterGroupRequestMarshaller(); var unmarshaller = CreateParameterGroupResponseUnmarshaller.Instance; return(Invoke <CreateParameterGroupRequest, CreateParameterGroupResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the CreateParameterGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateParameterGroup 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/dax-2017-04-19/CreateParameterGroup">REST API Reference for CreateParameterGroup Operation</seealso> public Task <CreateParameterGroupResponse> CreateParameterGroupAsync(CreateParameterGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new CreateParameterGroupRequestMarshaller(); var unmarshaller = CreateParameterGroupResponseUnmarshaller.Instance; return(InvokeAsync <CreateParameterGroupRequest, CreateParameterGroupResponse>(request, marshaller, unmarshaller, cancellationToken)); }