@@ -22,49 +22,3 @@ import (
2222type RequestOptions struct {
2323 dynamodb.Options
2424}
25-
26- //func ValidateConfig(c aws.Config, isRequestConfig bool) error {
27- // if c.CredentialsChainVerboseErrors != nil {
28- // return awserr.New(request.InvalidParameterErrCode, "unsupported config: CredentialsChainVerboseErrors", nil)
29- // }
30- // if c.EndpointResolver != nil {
31- // return awserr.New(request.InvalidParameterErrCode, "unsupported config: EndpointResolver", nil)
32- // }
33- // if c.EnforceShouldRetryCheck != nil {
34- // return awserr.New(request.InvalidParameterErrCode, "unsupported config: EnforceShouldRetryCheck", nil)
35- // }
36- // if c.DisableSSL != nil {
37- // return awserr.New(request.InvalidParameterErrCode, "unsupported config: DisableSSL", nil)
38- // }
39- // if c.HTTPClient != nil {
40- // return awserr.New(request.InvalidParameterErrCode, "unsupported config: HTTPClient", nil)
41- // }
42- // if c.Retryer != nil {
43- // return awserr.New(request.InvalidParameterErrCode, "unsupported config: Retryer", nil)
44- // }
45- // if c.DisableParamValidation != nil && *c.DisableParamValidation {
46- // return awserr.New(request.InvalidParameterErrCode, "unsupported config: DisableParamValidation", nil)
47- // }
48- // if c.DisableComputeChecksums != nil && *c.DisableComputeChecksums {
49- // return awserr.New(request.InvalidParameterErrCode, "unsupported config: DisableComputeChecksums", nil)
50- // }
51- // if c.UseDualStack != nil {
52- // return awserr.New(request.InvalidParameterErrCode, "unsupported config: UseDualStack", nil)
53- // }
54- // if c.DisableRestProtocolURICleaning != nil {
55- // return awserr.New(request.InvalidParameterErrCode, "unsupported config: DisableRestProtocolURICleaning", nil)
56- // }
57- // // Skip validation of S3* and EC2* options
58- // if isRequestConfig {
59- // if c.Credentials != nil {
60- // return awserr.New(request.InvalidParameterErrCode, "unsupported config: Credentials per request. Set Credentials at client init", nil)
61- // }
62- // if c.Endpoint != nil {
63- // return awserr.New(request.InvalidParameterErrCode, "unsupported config: Endpoint per request. Set Endpoint at client init", nil)
64- // }
65- // if c.Region != nil {
66- // return awserr.New(request.InvalidParameterErrCode, "unsupported config: Region per request. Set Region at client init", nil)
67- // }
68- // }
69- // return nil
70- //}
0 commit comments