/// <summary> /// Starts access logging on the specified container. When you enable access logging on /// a container, MediaStore delivers access logs for objects stored in that container /// to Amazon CloudWatch Logs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartAccessLogging 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 StartAccessLogging service method, as returned by MediaStore.</returns> /// <exception cref="Amazon.MediaStore.Model.ContainerInUseException"> /// The container that you specified in the request already exists or is being updated. /// </exception> /// <exception cref="Amazon.MediaStore.Model.ContainerNotFoundException"> /// The container that you specified in the request does not exist. /// </exception> /// <exception cref="Amazon.MediaStore.Model.InternalServerErrorException"> /// The service is temporarily unavailable. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/StartAccessLogging">REST API Reference for StartAccessLogging Operation</seealso> public virtual Task <StartAccessLoggingResponse> StartAccessLoggingAsync(StartAccessLoggingRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartAccessLoggingRequestMarshaller.Instance; options.ResponseUnmarshaller = StartAccessLoggingResponseUnmarshaller.Instance; return(InvokeAsync <StartAccessLoggingResponse>(request, options, cancellationToken)); }
internal virtual StartAccessLoggingResponse StartAccessLogging(StartAccessLoggingRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartAccessLoggingRequestMarshaller.Instance; options.ResponseUnmarshaller = StartAccessLoggingResponseUnmarshaller.Instance; return(Invoke <StartAccessLoggingResponse>(request, options)); }