@@ -19,11 +19,13 @@ import (
 	"context"
 
 	"github.com/aws/amazon-ecs-agent/agent/dockerclient/dockerapi"
+	s3factory "github.com/aws/amazon-ecs-agent/agent/s3/factory"
 )
 
 // ResourceFields is the list of fields required for creation of task resources
 type ResourceFields struct {
 	*ResourceFieldsCommon
-	Ctx          context.Context
-	DockerClient dockerapi.DockerClient
+	Ctx             context.Context
+	DockerClient    dockerapi.DockerClient
+	S3ClientCreator s3factory.S3ClientCreator
 }
// +build !linux

// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"). You may
// not use this file except in compliance with the License. A copy of the
// License is located at
//
//	http://aws.amazon.com/apache2.0/
//
// or in the "license" file accompanying this file. This file is distributed
// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
// express or implied. See the License for the specific language governing
// permissions and limitations under the License.

package taskresource

import (
	"context"

	"github.com/aws/amazon-ecs-agent/agent/dockerclient/dockerapi"
)

// ResourceFields is the list of fields required for creation of task resources
type ResourceFields struct {
	*ResourceFieldsCommon
	Ctx          context.Context
	DockerClient dockerapi.DockerClient
}

This is for windows_mac. The right move should be have a types_windows.go and types_unsupported.go and only add S3ClientCreator in windows.go.