code: func (c *MTurk) ListQualificationTypesPagesWithContext(ctx aws.Context, input *ListQualificationTypesInput, fn func(*ListQualificationTypesOutput, bool) bool, opts ...request.Option) error {
  	p := request.Pagination{
  		NewRequest: func() (*request.Request, error) {
  			var inCpy *ListQualificationTypesInput
  			if input != nil {
  				tmp := *input
  				inCpy = &tmp
  			}
  			req, _ := c.ListQualificationTypesRequest(inCpy)
  			req.SetContext(ctx)
  			req.ApplyOptions(opts...)
  			return req, nil
  		},
  	}
  
  	cont := true
  	for p.Next() && cont {
  		cont = fn(p.Page().(*ListQualificationTypesOutput), !p.HasNextPage())
  	}
  	return p.Err()
  }
docs: // ListQualificationTypesPagesWithContext same as ListQualificationTypesPages except
  // it takes a Context and allows setting request options on the pages.
  //
  // The context must be non-nil and will be used for request cancellation. If
  // the context is nil a panic will occur. In the future the SDK may create
  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  // for more information on using Contexts.