Skip to content

Commit 9a96dfb

Browse files
committed
delete config validation and request_options tests
1 parent 5d1e5d7 commit 9a96dfb

File tree

2 files changed

+0
-98
lines changed

2 files changed

+0
-98
lines changed

dax/internal/client/request_options.go

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -22,49 +22,3 @@ import (
2222
type 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-
//}

dax/internal/client/request_options_test.go

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)