private Amazon.FinSpaceData.Model.CreateDataViewResponse CallAWSServiceOperation(IAmazonFinSpaceData client, Amazon.FinSpaceData.Model.CreateDataViewRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "FinSpace Public API", "CreateDataView");
     try
     {
         #if DESKTOP
         return(client.CreateDataView(request));
         #elif CORECLR
         return(client.CreateDataViewAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }
        public object Execute(ExecutorContext context)
        {
            var cmdletContext = context as CmdletContext;
            // create request
            var request = new Amazon.FinSpaceData.Model.CreateDataViewRequest();

            if (cmdletContext.AsOfTimestamp != null)
            {
                request.AsOfTimestamp = cmdletContext.AsOfTimestamp.Value;
            }
            if (cmdletContext.AutoUpdate != null)
            {
                request.AutoUpdate = cmdletContext.AutoUpdate.Value;
            }
            if (cmdletContext.ClientToken != null)
            {
                request.ClientToken = cmdletContext.ClientToken;
            }
            if (cmdletContext.DatasetId != null)
            {
                request.DatasetId = cmdletContext.DatasetId;
            }

            // populate DestinationTypeParams
            var requestDestinationTypeParamsIsNull = true;

            request.DestinationTypeParams = new Amazon.FinSpaceData.Model.DataViewDestinationTypeParams();
            System.String requestDestinationTypeParams_destinationTypeParams_DestinationType = null;
            if (cmdletContext.DestinationTypeParams_DestinationType != null)
            {
                requestDestinationTypeParams_destinationTypeParams_DestinationType = cmdletContext.DestinationTypeParams_DestinationType;
            }
            if (requestDestinationTypeParams_destinationTypeParams_DestinationType != null)
            {
                request.DestinationTypeParams.DestinationType = requestDestinationTypeParams_destinationTypeParams_DestinationType;
                requestDestinationTypeParamsIsNull            = false;
            }
            Amazon.FinSpaceData.ExportFileFormat requestDestinationTypeParams_destinationTypeParams_S3DestinationExportFileFormat = null;
            if (cmdletContext.DestinationTypeParams_S3DestinationExportFileFormat != null)
            {
                requestDestinationTypeParams_destinationTypeParams_S3DestinationExportFileFormat = cmdletContext.DestinationTypeParams_S3DestinationExportFileFormat;
            }
            if (requestDestinationTypeParams_destinationTypeParams_S3DestinationExportFileFormat != null)
            {
                request.DestinationTypeParams.S3DestinationExportFileFormat = requestDestinationTypeParams_destinationTypeParams_S3DestinationExportFileFormat;
                requestDestinationTypeParamsIsNull = false;
            }
            Dictionary <System.String, System.String> requestDestinationTypeParams_destinationTypeParams_S3DestinationExportFileFormatOption = null;

            if (cmdletContext.DestinationTypeParams_S3DestinationExportFileFormatOption != null)
            {
                requestDestinationTypeParams_destinationTypeParams_S3DestinationExportFileFormatOption = cmdletContext.DestinationTypeParams_S3DestinationExportFileFormatOption;
            }
            if (requestDestinationTypeParams_destinationTypeParams_S3DestinationExportFileFormatOption != null)
            {
                request.DestinationTypeParams.S3DestinationExportFileFormatOptions = requestDestinationTypeParams_destinationTypeParams_S3DestinationExportFileFormatOption;
                requestDestinationTypeParamsIsNull = false;
            }
            // determine if request.DestinationTypeParams should be set to null
            if (requestDestinationTypeParamsIsNull)
            {
                request.DestinationTypeParams = null;
            }
            if (cmdletContext.PartitionColumn != null)
            {
                request.PartitionColumns = cmdletContext.PartitionColumn;
            }
            if (cmdletContext.SortColumn != null)
            {
                request.SortColumns = cmdletContext.SortColumn;
            }

            CmdletOutput output;

            // issue call
            var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint);

            try
            {
                var    response       = CallAWSServiceOperation(client, request);
                object pipelineOutput = null;
                pipelineOutput = cmdletContext.Select(response, this);
                output         = new CmdletOutput
                {
                    PipelineOutput  = pipelineOutput,
                    ServiceResponse = response
                };
            }
            catch (Exception e)
            {
                output = new CmdletOutput {
                    ErrorResponse = e
                };
            }

            return(output);
        }