internal CreateExportTaskResponse CreateExportTask(CreateExportTaskRequest request) { var marshaller = new CreateExportTaskRequestMarshaller(); var unmarshaller = CreateExportTaskResponseUnmarshaller.Instance; return(Invoke <CreateExportTaskRequest, CreateExportTaskResponse>(request, marshaller, unmarshaller)); }
public void CreateExportTaskMarshallTest() { var request = InstantiateClassGenerator.Execute <CreateExportTaskRequest>(); var marshaller = new CreateExportTaskRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <CreateExportTaskRequest>(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("CreateExportTask").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = CreateExportTaskResponseUnmarshaller.Instance.Unmarshall(context) as CreateExportTaskResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the CreateExportTask operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateExportTask 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 <CreateExportTaskResponse> CreateExportTaskAsync(CreateExportTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new CreateExportTaskRequestMarshaller(); var unmarshaller = CreateExportTaskResponseUnmarshaller.Instance; return(InvokeAsync <CreateExportTaskRequest, CreateExportTaskResponse>(request, marshaller, unmarshaller, cancellationToken)); }
public void CreateExportTaskMarshallTest() { var request = InstantiateClassGenerator.Execute<CreateExportTaskRequest>(); var marshaller = new CreateExportTaskRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson<CreateExportTaskRequest>(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("CreateExportTask").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = CreateExportTaskResponseUnmarshaller.Instance.Unmarshall(context) as CreateExportTaskResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the CreateExportTask operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateExportTask 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<CreateExportTaskResponse> CreateExportTaskAsync(CreateExportTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new CreateExportTaskRequestMarshaller(); var unmarshaller = CreateExportTaskResponseUnmarshaller.Instance; return InvokeAsync<CreateExportTaskRequest,CreateExportTaskResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Creates an <code>ExportTask</code> which allows you to efficiently export data from /// a Log Group to your Amazon S3 bucket. /// /// /// <para> /// This is an asynchronous call. If all the required information is provided, this API /// will initiate an export task and respond with the task Id. Once started, <code>DescribeExportTasks</code> /// can be used to get the status of an export task. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateExportTask service method.</param> /// /// <returns>The response from the CreateExportTask service method, as returned by CloudWatchLogs.</returns> /// <exception cref="Amazon.CloudWatchLogs.Model.InvalidParameterException"> /// Returned if a parameter of the request is incorrectly specified. /// </exception> /// <exception cref="Amazon.CloudWatchLogs.Model.LimitExceededException"> /// Returned if you have reached the maximum number of resources that can be created. /// </exception> /// <exception cref="Amazon.CloudWatchLogs.Model.OperationAbortedException"> /// Returned if multiple requests to update the same resource were in conflict. /// </exception> /// <exception cref="Amazon.CloudWatchLogs.Model.ResourceAlreadyExistsException"> /// Returned if the specified resource already exists. /// </exception> /// <exception cref="Amazon.CloudWatchLogs.Model.ResourceNotFoundException"> /// Returned if the specified resource does not exist. /// </exception> /// <exception cref="Amazon.CloudWatchLogs.Model.ServiceUnavailableException"> /// Returned if the service cannot complete the request. /// </exception> public CreateExportTaskResponse CreateExportTask(CreateExportTaskRequest request) { var marshaller = new CreateExportTaskRequestMarshaller(); var unmarshaller = CreateExportTaskResponseUnmarshaller.Instance; return Invoke<CreateExportTaskRequest,CreateExportTaskResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the CreateExportTask operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateExportTask operation on AmazonCloudWatchLogsClient.</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 EndCreateExportTask /// operation.</returns> public IAsyncResult BeginCreateExportTask(CreateExportTaskRequest request, AsyncCallback callback, object state) { var marshaller = new CreateExportTaskRequestMarshaller(); var unmarshaller = CreateExportTaskResponseUnmarshaller.Instance; return BeginInvoke<CreateExportTaskRequest>(request, marshaller, unmarshaller, callback, state); }