private Amazon.CognitoIdentityProvider.Model.AdminDisableProviderForUserResponse CallAWSServiceOperation(IAmazonCognitoIdentityProvider client, Amazon.CognitoIdentityProvider.Model.AdminDisableProviderForUserRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Cognito Identity Provider", "AdminDisableProviderForUser");
     try
     {
         #if DESKTOP
         return(client.AdminDisableProviderForUser(request));
         #elif CORECLR
         return(client.AdminDisableProviderForUserAsync(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.CognitoIdentityProvider.Model.AdminDisableProviderForUserRequest();


            // populate User
            var requestUserIsNull = true;

            request.User = new Amazon.CognitoIdentityProvider.Model.ProviderUserIdentifierType();
            System.String requestUser_user_ProviderAttributeName = null;
            if (cmdletContext.User_ProviderAttributeName != null)
            {
                requestUser_user_ProviderAttributeName = cmdletContext.User_ProviderAttributeName;
            }
            if (requestUser_user_ProviderAttributeName != null)
            {
                request.User.ProviderAttributeName = requestUser_user_ProviderAttributeName;
                requestUserIsNull = false;
            }
            System.String requestUser_user_ProviderAttributeValue = null;
            if (cmdletContext.User_ProviderAttributeValue != null)
            {
                requestUser_user_ProviderAttributeValue = cmdletContext.User_ProviderAttributeValue;
            }
            if (requestUser_user_ProviderAttributeValue != null)
            {
                request.User.ProviderAttributeValue = requestUser_user_ProviderAttributeValue;
                requestUserIsNull = false;
            }
            System.String requestUser_user_ProviderName = null;
            if (cmdletContext.User_ProviderName != null)
            {
                requestUser_user_ProviderName = cmdletContext.User_ProviderName;
            }
            if (requestUser_user_ProviderName != null)
            {
                request.User.ProviderName = requestUser_user_ProviderName;
                requestUserIsNull         = false;
            }
            // determine if request.User should be set to null
            if (requestUserIsNull)
            {
                request.User = null;
            }
            if (cmdletContext.UserPoolId != null)
            {
                request.UserPoolId = cmdletContext.UserPoolId;
            }

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