private Amazon.SageMaker.Model.UpdateProjectResponse CallAWSServiceOperation(IAmazonSageMaker client, Amazon.SageMaker.Model.UpdateProjectRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon SageMaker Service", "UpdateProject");
     try
     {
         #if DESKTOP
         return(client.UpdateProject(request));
         #elif CORECLR
         return(client.UpdateProjectAsync(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.SageMaker.Model.UpdateProjectRequest();

            if (cmdletContext.ProjectDescription != null)
            {
                request.ProjectDescription = cmdletContext.ProjectDescription;
            }
            if (cmdletContext.ProjectName != null)
            {
                request.ProjectName = cmdletContext.ProjectName;
            }

            // populate ServiceCatalogProvisioningUpdateDetails
            var requestServiceCatalogProvisioningUpdateDetailsIsNull = true;

            request.ServiceCatalogProvisioningUpdateDetails = new Amazon.SageMaker.Model.ServiceCatalogProvisioningUpdateDetails();
            System.String requestServiceCatalogProvisioningUpdateDetails_serviceCatalogProvisioningUpdateDetails_ProvisioningArtifactId = null;
            if (cmdletContext.ServiceCatalogProvisioningUpdateDetails_ProvisioningArtifactId != null)
            {
                requestServiceCatalogProvisioningUpdateDetails_serviceCatalogProvisioningUpdateDetails_ProvisioningArtifactId = cmdletContext.ServiceCatalogProvisioningUpdateDetails_ProvisioningArtifactId;
            }
            if (requestServiceCatalogProvisioningUpdateDetails_serviceCatalogProvisioningUpdateDetails_ProvisioningArtifactId != null)
            {
                request.ServiceCatalogProvisioningUpdateDetails.ProvisioningArtifactId = requestServiceCatalogProvisioningUpdateDetails_serviceCatalogProvisioningUpdateDetails_ProvisioningArtifactId;
                requestServiceCatalogProvisioningUpdateDetailsIsNull = false;
            }
            List <Amazon.SageMaker.Model.ProvisioningParameter> requestServiceCatalogProvisioningUpdateDetails_serviceCatalogProvisioningUpdateDetails_ProvisioningParameter = null;

            if (cmdletContext.ServiceCatalogProvisioningUpdateDetails_ProvisioningParameter != null)
            {
                requestServiceCatalogProvisioningUpdateDetails_serviceCatalogProvisioningUpdateDetails_ProvisioningParameter = cmdletContext.ServiceCatalogProvisioningUpdateDetails_ProvisioningParameter;
            }
            if (requestServiceCatalogProvisioningUpdateDetails_serviceCatalogProvisioningUpdateDetails_ProvisioningParameter != null)
            {
                request.ServiceCatalogProvisioningUpdateDetails.ProvisioningParameters = requestServiceCatalogProvisioningUpdateDetails_serviceCatalogProvisioningUpdateDetails_ProvisioningParameter;
                requestServiceCatalogProvisioningUpdateDetailsIsNull = false;
            }
            // determine if request.ServiceCatalogProvisioningUpdateDetails should be set to null
            if (requestServiceCatalogProvisioningUpdateDetailsIsNull)
            {
                request.ServiceCatalogProvisioningUpdateDetails = null;
            }
            if (cmdletContext.Tag != null)
            {
                request.Tags = cmdletContext.Tag;
            }

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