func (c *FSx) DescribeFileSystemAliasesPagesWithContext(ctx aws.Context, input *DescribeFileSystemAliasesInput, fn func(*DescribeFileSystemAliasesOutput, bool) bool, opts ...request.Option) error {
	p := request.Pagination{
		NewRequest: func() (*request.Request, error) {
			var inCpy *DescribeFileSystemAliasesInput
			if input != nil {
				tmp := *input
				inCpy = &tmp
			}
			req, _ := c.DescribeFileSystemAliasesRequest(inCpy)
			req.SetContext(ctx)
			req.ApplyOptions(opts...)
			return req, nil
		},
	}

	for p.Next() {
		if !fn(p.Page().(*DescribeFileSystemAliasesOutput), !p.HasNextPage()) {
			break
		}
	}

	return p.Err()
}
// DescribeFileSystemAliasesPagesWithContext same as DescribeFileSystemAliasesPages 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.
DescribeFileSystemAliasesPagesWithContext same as DescribeFileSystemAliasesPages 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.
// DescribeFileSystemAliasesPagesWithContext same as DescribeFileSystemAliasesPages 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 .
func (c *FSx) DescribeFileSystemAliasesPagesWithContext(ctx aws.Context, input *DescribeFileSystemAliasesInput, fn func(*DescribeFileSystemAliasesOutput, bool) bool, opts ...request.Option) error {
	p := request.Pagination{
		NewRequest: func() (*request.Request, error) {
			var inCpy *DescribeFileSystemAliasesInput
			if input != nil {
				tmp := *input
				inCpy = &tmp
			}
			req, _ := c.DescribeFileSystemAliasesRequest(inCpy)
			req.SetContext(ctx)
			req.ApplyOptions(opts...)
			return req, nil
		},
	}
	for p.Next() {
		if !fn(p.Page().(*DescribeFileSystemAliasesOutput), !p.HasNextPage()) {
			break
		}
	}
	return p.Err()
}
func ( c * FSx ) DescribeFileSystemAliasesPagesWithContext ( ctx aws . Context , input * DescribeFileSystemAliasesInput , fn func ( * DescribeFileSystemAliasesOutput , bool ) bool , opts ... request . Option ) error { p := request . Pagination { NewRequest : func ( ) ( * request . Request , error ) { var inCpy * DescribeFileSystemAliasesInput if input != nil { tmp := * input inCpy = & tmp } req , _ := c . DescribeFileSystemAliasesRequest ( inCpy ) req . SetContext ( ctx ) req . ApplyOptions ( opts ... ) return req , nil } , } for p . Next ( ) { if ! fn ( p . Page ( ) . ( * DescribeFileSystemAliasesOutput ) , ! p . HasNextPage ( ) ) { break } } return p . Err ( ) }
DescribeFileSystemAliasesPagesWithContext same as DescribeFileSystemAliasesPages except
it takes a Context and allows setting request options on the pages.
DescribeFileSystemAliasesPagesWithContext same as DescribeFileSystemAliasesPages except it takes a Context and allows setting request options on the pages .