private Amazon.ManagedBlockchain.Model.UpdateMemberResponse CallAWSServiceOperation(IAmazonManagedBlockchain client, Amazon.ManagedBlockchain.Model.UpdateMemberRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Managed Blockchain", "UpdateMember");
     try
     {
         #if DESKTOP
         return(client.UpdateMember(request));
         #elif CORECLR
         return(client.UpdateMemberAsync(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.ManagedBlockchain.Model.UpdateMemberRequest();


            // populate LogPublishingConfiguration
            var requestLogPublishingConfigurationIsNull = true;

            request.LogPublishingConfiguration = new Amazon.ManagedBlockchain.Model.MemberLogPublishingConfiguration();
            Amazon.ManagedBlockchain.Model.MemberFabricLogPublishingConfiguration requestLogPublishingConfiguration_logPublishingConfiguration_Fabric = null;

            // populate Fabric
            var requestLogPublishingConfiguration_logPublishingConfiguration_FabricIsNull = true;

            requestLogPublishingConfiguration_logPublishingConfiguration_Fabric = new Amazon.ManagedBlockchain.Model.MemberFabricLogPublishingConfiguration();
            Amazon.ManagedBlockchain.Model.LogConfigurations requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogs = null;

            // populate CaLogs
            var requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogsIsNull = true;

            requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogs = new Amazon.ManagedBlockchain.Model.LogConfigurations();
            Amazon.ManagedBlockchain.Model.LogConfiguration requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogs_logPublishingConfiguration_Fabric_CaLogs_Cloudwatch = null;

            // populate Cloudwatch
            var requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogs_logPublishingConfiguration_Fabric_CaLogs_CloudwatchIsNull = true;

            requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogs_logPublishingConfiguration_Fabric_CaLogs_Cloudwatch = new Amazon.ManagedBlockchain.Model.LogConfiguration();
            System.Boolean?requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogs_logPublishingConfiguration_Fabric_CaLogs_Cloudwatch_cloudwatch_Enabled = null;
            if (cmdletContext.Cloudwatch_Enabled != null)
            {
                requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogs_logPublishingConfiguration_Fabric_CaLogs_Cloudwatch_cloudwatch_Enabled = cmdletContext.Cloudwatch_Enabled.Value;
            }
            if (requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogs_logPublishingConfiguration_Fabric_CaLogs_Cloudwatch_cloudwatch_Enabled != null)
            {
                requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogs_logPublishingConfiguration_Fabric_CaLogs_Cloudwatch.Enabled = requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogs_logPublishingConfiguration_Fabric_CaLogs_Cloudwatch_cloudwatch_Enabled.Value;
                requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogs_logPublishingConfiguration_Fabric_CaLogs_CloudwatchIsNull   = false;
            }
            // determine if requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogs_logPublishingConfiguration_Fabric_CaLogs_Cloudwatch should be set to null
            if (requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogs_logPublishingConfiguration_Fabric_CaLogs_CloudwatchIsNull)
            {
                requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogs_logPublishingConfiguration_Fabric_CaLogs_Cloudwatch = null;
            }
            if (requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogs_logPublishingConfiguration_Fabric_CaLogs_Cloudwatch != null)
            {
                requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogs.Cloudwatch = requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogs_logPublishingConfiguration_Fabric_CaLogs_Cloudwatch;
                requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogsIsNull      = false;
            }
            // determine if requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogs should be set to null
            if (requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogsIsNull)
            {
                requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogs = null;
            }
            if (requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogs != null)
            {
                requestLogPublishingConfiguration_logPublishingConfiguration_Fabric.CaLogs = requestLogPublishingConfiguration_logPublishingConfiguration_Fabric_logPublishingConfiguration_Fabric_CaLogs;
                requestLogPublishingConfiguration_logPublishingConfiguration_FabricIsNull  = false;
            }
            // determine if requestLogPublishingConfiguration_logPublishingConfiguration_Fabric should be set to null
            if (requestLogPublishingConfiguration_logPublishingConfiguration_FabricIsNull)
            {
                requestLogPublishingConfiguration_logPublishingConfiguration_Fabric = null;
            }
            if (requestLogPublishingConfiguration_logPublishingConfiguration_Fabric != null)
            {
                request.LogPublishingConfiguration.Fabric = requestLogPublishingConfiguration_logPublishingConfiguration_Fabric;
                requestLogPublishingConfigurationIsNull   = false;
            }
            // determine if request.LogPublishingConfiguration should be set to null
            if (requestLogPublishingConfigurationIsNull)
            {
                request.LogPublishingConfiguration = null;
            }
            if (cmdletContext.MemberId != null)
            {
                request.MemberId = cmdletContext.MemberId;
            }
            if (cmdletContext.NetworkId != null)
            {
                request.NetworkId = cmdletContext.NetworkId;
            }

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