private Amazon.LakeFormation.Model.CreateDataCellsFilterResponse CallAWSServiceOperation(IAmazonLakeFormation client, Amazon.LakeFormation.Model.CreateDataCellsFilterRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Lake Formation", "CreateDataCellsFilter");
     try
     {
         #if DESKTOP
         return(client.CreateDataCellsFilter(request));
         #elif CORECLR
         return(client.CreateDataCellsFilterAsync(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.LakeFormation.Model.CreateDataCellsFilterRequest();


            // populate TableData
            var requestTableDataIsNull = true;

            request.TableData = new Amazon.LakeFormation.Model.DataCellsFilter();
            List <System.String> requestTableData_tableData_ColumnName = null;

            if (cmdletContext.TableData_ColumnName != null)
            {
                requestTableData_tableData_ColumnName = cmdletContext.TableData_ColumnName;
            }
            if (requestTableData_tableData_ColumnName != null)
            {
                request.TableData.ColumnNames = requestTableData_tableData_ColumnName;
                requestTableDataIsNull        = false;
            }
            System.String requestTableData_tableData_DatabaseName = null;
            if (cmdletContext.TableData_DatabaseName != null)
            {
                requestTableData_tableData_DatabaseName = cmdletContext.TableData_DatabaseName;
            }
            if (requestTableData_tableData_DatabaseName != null)
            {
                request.TableData.DatabaseName = requestTableData_tableData_DatabaseName;
                requestTableDataIsNull         = false;
            }
            System.String requestTableData_tableData_Name = null;
            if (cmdletContext.TableData_Name != null)
            {
                requestTableData_tableData_Name = cmdletContext.TableData_Name;
            }
            if (requestTableData_tableData_Name != null)
            {
                request.TableData.Name = requestTableData_tableData_Name;
                requestTableDataIsNull = false;
            }
            System.String requestTableData_tableData_TableCatalogId = null;
            if (cmdletContext.TableData_TableCatalogId != null)
            {
                requestTableData_tableData_TableCatalogId = cmdletContext.TableData_TableCatalogId;
            }
            if (requestTableData_tableData_TableCatalogId != null)
            {
                request.TableData.TableCatalogId = requestTableData_tableData_TableCatalogId;
                requestTableDataIsNull           = false;
            }
            System.String requestTableData_tableData_TableName = null;
            if (cmdletContext.TableData_TableName != null)
            {
                requestTableData_tableData_TableName = cmdletContext.TableData_TableName;
            }
            if (requestTableData_tableData_TableName != null)
            {
                request.TableData.TableName = requestTableData_tableData_TableName;
                requestTableDataIsNull      = false;
            }
            Amazon.LakeFormation.Model.ColumnWildcard requestTableData_tableData_ColumnWildcard = null;

            // populate ColumnWildcard
            var requestTableData_tableData_ColumnWildcardIsNull = true;

            requestTableData_tableData_ColumnWildcard = new Amazon.LakeFormation.Model.ColumnWildcard();
            List <System.String> requestTableData_tableData_ColumnWildcard_columnWildcard_ExcludedColumnName = null;

            if (cmdletContext.ColumnWildcard_ExcludedColumnName != null)
            {
                requestTableData_tableData_ColumnWildcard_columnWildcard_ExcludedColumnName = cmdletContext.ColumnWildcard_ExcludedColumnName;
            }
            if (requestTableData_tableData_ColumnWildcard_columnWildcard_ExcludedColumnName != null)
            {
                requestTableData_tableData_ColumnWildcard.ExcludedColumnNames = requestTableData_tableData_ColumnWildcard_columnWildcard_ExcludedColumnName;
                requestTableData_tableData_ColumnWildcardIsNull = false;
            }
            // determine if requestTableData_tableData_ColumnWildcard should be set to null
            if (requestTableData_tableData_ColumnWildcardIsNull)
            {
                requestTableData_tableData_ColumnWildcard = null;
            }
            if (requestTableData_tableData_ColumnWildcard != null)
            {
                request.TableData.ColumnWildcard = requestTableData_tableData_ColumnWildcard;
                requestTableDataIsNull           = false;
            }
            Amazon.LakeFormation.Model.RowFilter requestTableData_tableData_RowFilter = null;

            // populate RowFilter
            var requestTableData_tableData_RowFilterIsNull = true;

            requestTableData_tableData_RowFilter = new Amazon.LakeFormation.Model.RowFilter();
            Amazon.LakeFormation.Model.AllRowsWildcard requestTableData_tableData_RowFilter_rowFilter_AllRowsWildcard = null;
            if (cmdletContext.RowFilter_AllRowsWildcard != null)
            {
                requestTableData_tableData_RowFilter_rowFilter_AllRowsWildcard = cmdletContext.RowFilter_AllRowsWildcard;
            }
            if (requestTableData_tableData_RowFilter_rowFilter_AllRowsWildcard != null)
            {
                requestTableData_tableData_RowFilter.AllRowsWildcard = requestTableData_tableData_RowFilter_rowFilter_AllRowsWildcard;
                requestTableData_tableData_RowFilterIsNull           = false;
            }
            System.String requestTableData_tableData_RowFilter_rowFilter_FilterExpression = null;
            if (cmdletContext.RowFilter_FilterExpression != null)
            {
                requestTableData_tableData_RowFilter_rowFilter_FilterExpression = cmdletContext.RowFilter_FilterExpression;
            }
            if (requestTableData_tableData_RowFilter_rowFilter_FilterExpression != null)
            {
                requestTableData_tableData_RowFilter.FilterExpression = requestTableData_tableData_RowFilter_rowFilter_FilterExpression;
                requestTableData_tableData_RowFilterIsNull            = false;
            }
            // determine if requestTableData_tableData_RowFilter should be set to null
            if (requestTableData_tableData_RowFilterIsNull)
            {
                requestTableData_tableData_RowFilter = null;
            }
            if (requestTableData_tableData_RowFilter != null)
            {
                request.TableData.RowFilter = requestTableData_tableData_RowFilter;
                requestTableDataIsNull      = false;
            }
            // determine if request.TableData should be set to null
            if (requestTableDataIsNull)
            {
                request.TableData = null;
            }

            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);
        }