public object Execute(ExecutorContext context)
        {
            var cmdletContext = context as CmdletContext;
            // create request
            var request = new Amazon.DevOpsGuru.Model.UpdateServiceIntegrationRequest();


            // populate ServiceIntegration
            var requestServiceIntegrationIsNull = true;

            request.ServiceIntegration = new Amazon.DevOpsGuru.Model.UpdateServiceIntegrationConfig();
            Amazon.DevOpsGuru.Model.OpsCenterIntegrationConfig requestServiceIntegration_serviceIntegration_OpsCenter = null;
            if (cmdletContext.ServiceIntegration_OpsCenter != null)
            {
                requestServiceIntegration_serviceIntegration_OpsCenter = cmdletContext.ServiceIntegration_OpsCenter;
            }
            if (requestServiceIntegration_serviceIntegration_OpsCenter != null)
            {
                request.ServiceIntegration.OpsCenter = requestServiceIntegration_serviceIntegration_OpsCenter;
                requestServiceIntegrationIsNull      = false;
            }
            // determine if request.ServiceIntegration should be set to null
            if (requestServiceIntegrationIsNull)
            {
                request.ServiceIntegration = 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);
        }
 private Amazon.DevOpsGuru.Model.UpdateServiceIntegrationResponse CallAWSServiceOperation(IAmazonDevOpsGuru client, Amazon.DevOpsGuru.Model.UpdateServiceIntegrationRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon DevOps Guru", "UpdateServiceIntegration");
     try
     {
         #if DESKTOP
         return(client.UpdateServiceIntegration(request));
         #elif CORECLR
         return(client.UpdateServiceIntegrationAsync(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;
     }
 }