diff --git a/models/protocol_tests/input/rest-xml.json b/models/protocol_tests/input/rest-xml.json index afbe8c70f6e..9225277a103 100644 --- a/models/protocol_tests/input/rest-xml.json +++ b/models/protocol_tests/input/rest-xml.json @@ -1754,6 +1754,9 @@ "shapes": { "InputShape": { "type": "structure", + "required": [ + "URIFooEnum" + ], "members": { "HeaderEnum": { "shape": "EnumType", @@ -1824,14 +1827,15 @@ }, "http": { "method": "POST", - "requestUri": "/path" + "requestUri": "/Enum/{URIEnum}" }, "name": "OperationName" }, "params": { + "URIFooEnum": "bar" }, "serialized": { - "uri": "/path", + "uri": "/Enum/bar", "headers": {} } } diff --git a/private/model/api/shape.go b/private/model/api/shape.go index 5b1a8db3555..72dbcb4e465 100644 --- a/private/model/api/shape.go +++ b/private/model/api/shape.go @@ -114,11 +114,13 @@ type Shape struct { // CanBeEmpty returns if the shape value can sent request as an empty value. // String, blob, list, and map are types must not be empty when the member is -// decorated with HostLabel. +// serialized to the uri path, or decorated with HostLabel. func (ref *ShapeRef) CanBeEmpty() bool { switch ref.Shape.Type { case "string": - return !ref.HostLabel + return !(ref.Location == "uri" || ref.HostLabel) + case "blob", "map", "list": + return !(ref.Location == "uri") default: return true } @@ -789,7 +791,7 @@ func (s *Shape) IsEnum() bool { } // IsRequired returns if member is a required field. Required fields are fields -// marked as required, or hostLabels. +// marked as required, hostLabels, or location of uri path. func (s *Shape) IsRequired(member string) bool { ref, ok := s.MemberRefs[member] if !ok { @@ -798,7 +800,7 @@ func (s *Shape) IsRequired(member string) bool { s.ShapeName, member, )) } - if ref.HostLabel { + if ref.Location == "uri" || ref.HostLabel { return true } for _, n := range s.Required { diff --git a/private/protocol/restjson/build_test.go b/private/protocol/restjson/build_test.go index a1315cb6bf8..f54e4ed0178 100644 --- a/private/protocol/restjson/build_test.go +++ b/private/protocol/restjson/build_test.go @@ -317,7 +317,24 @@ func (c *InputService2ProtocolTest) InputService2TestCaseOperation1WithContext(c type InputService2TestShapeInputService2TestCaseOperation1Input struct { _ struct{} `type:"structure"` - PipelineId *string `location:"uri" type:"string"` + // PipelineId is a required field + PipelineId *string `location:"uri" type:"string" required:"true"` +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService2TestShapeInputService2TestCaseOperation1Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService2TestShapeInputService2TestCaseOperation1Input"} + if s.PipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("PipelineId")) + } + if s.PipelineId != nil && len(*s.PipelineId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } // SetPipelineId sets the PipelineId field's value. @@ -464,7 +481,24 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation1WithContext(c type InputService3TestShapeInputService3TestCaseOperation1Input struct { _ struct{} `type:"structure"` - Foo *string `location:"uri" locationName:"PipelineId" type:"string"` + // Foo is a required field + Foo *string `location:"uri" locationName:"PipelineId" type:"string" required:"true"` +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService3TestShapeInputService3TestCaseOperation1Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService3TestShapeInputService3TestCaseOperation1Input"} + if s.Foo == nil { + invalidParams.Add(request.NewErrParamRequired("Foo")) + } + if s.Foo != nil && len(*s.Foo) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Foo", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } // SetFoo sets the Foo field's value. @@ -758,11 +792,28 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation1WithContext(c type InputService5TestShapeInputService5TestCaseOperation1Input struct { _ struct{} `type:"structure"` - PipelineId *string `location:"uri" type:"string"` + // PipelineId is a required field + PipelineId *string `location:"uri" type:"string" required:"true"` QueryDoc map[string]*string `location:"querystring" type:"map"` } +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService5TestShapeInputService5TestCaseOperation1Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService5TestShapeInputService5TestCaseOperation1Input"} + if s.PipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("PipelineId")) + } + if s.PipelineId != nil && len(*s.PipelineId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetPipelineId sets the PipelineId field's value. func (s *InputService5TestShapeInputService5TestCaseOperation1Input) SetPipelineId(v string) *InputService5TestShapeInputService5TestCaseOperation1Input { s.PipelineId = &v @@ -913,11 +964,28 @@ func (c *InputService6ProtocolTest) InputService6TestCaseOperation1WithContext(c type InputService6TestShapeInputService6TestCaseOperation1Input struct { _ struct{} `type:"structure"` - PipelineId *string `location:"uri" type:"string"` + // PipelineId is a required field + PipelineId *string `location:"uri" type:"string" required:"true"` QueryDoc map[string][]*string `location:"querystring" type:"map"` } +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService6TestShapeInputService6TestCaseOperation1Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService6TestShapeInputService6TestCaseOperation1Input"} + if s.PipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("PipelineId")) + } + if s.PipelineId != nil && len(*s.PipelineId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetPipelineId sets the PipelineId field's value. func (s *InputService6TestShapeInputService6TestCaseOperation1Input) SetPipelineId(v string) *InputService6TestShapeInputService6TestCaseOperation1Input { s.PipelineId = &v @@ -1306,7 +1374,24 @@ type InputService8TestShapeInputService8TestCaseOperation1Input struct { PageToken *string `location:"querystring" locationName:"PageToken" type:"string"` - PipelineId *string `location:"uri" locationName:"PipelineId" type:"string"` + // PipelineId is a required field + PipelineId *string `location:"uri" locationName:"PipelineId" type:"string" required:"true"` +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService8TestShapeInputService8TestCaseOperation1Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService8TestShapeInputService8TestCaseOperation1Input"} + if s.PipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("PipelineId")) + } + if s.PipelineId != nil && len(*s.PipelineId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } // SetAscending sets the Ascending field's value. @@ -1471,7 +1556,24 @@ type InputService9TestShapeInputService9TestCaseOperation1Input struct { PageToken *string `location:"querystring" locationName:"PageToken" type:"string"` - PipelineId *string `location:"uri" locationName:"PipelineId" type:"string"` + // PipelineId is a required field + PipelineId *string `location:"uri" locationName:"PipelineId" type:"string" required:"true"` +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService9TestShapeInputService9TestCaseOperation1Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService9TestShapeInputService9TestCaseOperation1Input"} + if s.PipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("PipelineId")) + } + if s.PipelineId != nil && len(*s.PipelineId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } // SetAscending sets the Ascending field's value. @@ -1664,7 +1766,24 @@ type InputService10TestShapeInputService10TestCaseOperation1Input struct { PageToken *string `location:"querystring" locationName:"PageToken" type:"string"` - PipelineId *string `location:"uri" locationName:"PipelineId" type:"string"` + // PipelineId is a required field + PipelineId *string `location:"uri" locationName:"PipelineId" type:"string" required:"true"` +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService10TestShapeInputService10TestCaseOperation1Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService10TestShapeInputService10TestCaseOperation1Input"} + if s.PipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("PipelineId")) + } + if s.PipelineId != nil && len(*s.PipelineId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } // SetAscending sets the Ascending field's value. @@ -1869,6 +1988,9 @@ func (s *InputService11TestShapeInputService11TestCaseOperation1Input) Validate( if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2045,6 +2167,9 @@ func (s *InputService12TestShapeInputService12TestCaseOperation1Input) Validate( if s.Foo == nil { invalidParams.Add(request.NewErrParamRequired("Foo")) } + if s.Foo != nil && len(*s.Foo) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Foo", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/private/protocol/restxml/build_test.go b/private/protocol/restxml/build_test.go index 46a12033157..ce0639e71ee 100644 --- a/private/protocol/restxml/build_test.go +++ b/private/protocol/restxml/build_test.go @@ -2535,11 +2535,28 @@ func (c *InputService14ProtocolTest) InputService14TestCaseOperation1WithContext type InputService14TestShapeInputService14TestCaseOperation1Input struct { _ struct{} `type:"structure"` - PipelineId *string `location:"uri" type:"string"` + // PipelineId is a required field + PipelineId *string `location:"uri" type:"string" required:"true"` QueryDoc map[string]*string `location:"querystring" type:"map"` } +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService14TestShapeInputService14TestCaseOperation1Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService14TestShapeInputService14TestCaseOperation1Input"} + if s.PipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("PipelineId")) + } + if s.PipelineId != nil && len(*s.PipelineId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetPipelineId sets the PipelineId field's value. func (s *InputService14TestShapeInputService14TestCaseOperation1Input) SetPipelineId(v string) *InputService14TestShapeInputService14TestCaseOperation1Input { s.PipelineId = &v @@ -2690,11 +2707,28 @@ func (c *InputService15ProtocolTest) InputService15TestCaseOperation1WithContext type InputService15TestShapeInputService15TestCaseOperation1Input struct { _ struct{} `type:"structure"` - PipelineId *string `location:"uri" type:"string"` + // PipelineId is a required field + PipelineId *string `location:"uri" type:"string" required:"true"` QueryDoc map[string][]*string `location:"querystring" type:"map"` } +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService15TestShapeInputService15TestCaseOperation1Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService15TestShapeInputService15TestCaseOperation1Input"} + if s.PipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("PipelineId")) + } + if s.PipelineId != nil && len(*s.PipelineId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetPipelineId sets the PipelineId field's value. func (s *InputService15TestShapeInputService15TestCaseOperation1Input) SetPipelineId(v string) *InputService15TestShapeInputService15TestCaseOperation1Input { s.PipelineId = &v @@ -4059,9 +4093,33 @@ func (c *InputService21ProtocolTest) InputService21TestCaseOperation1WithContext type InputService21TestShapeInputService21TestCaseOperation1Input struct { _ struct{} `type:"structure"` - Bucket *string `location:"uri" type:"string"` + // Bucket is a required field + Bucket *string `location:"uri" type:"string" required:"true"` - Key *string `location:"uri" type:"string"` + // Key is a required field + Key *string `location:"uri" type:"string" required:"true"` +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService21TestShapeInputService21TestCaseOperation1Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService21TestShapeInputService21TestCaseOperation1Input"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } // SetBucket sets the Bucket field's value. @@ -5325,7 +5383,7 @@ func (c *InputService25ProtocolTest) InputService25TestCaseOperation2Request(inp op := &request.Operation{ Name: opInputService25TestCaseOperation2, HTTPMethod: "POST", - HTTPPath: "/path", + HTTPPath: "/Enum/{URIEnum}", } if input == nil { @@ -5377,11 +5435,28 @@ type InputService25TestShapeInputService25TestCaseOperation1Input struct { ListEnums []*string `type:"list"` - URIFooEnum *string `location:"uri" locationName:"URIEnum" type:"string" enum:"InputService25TestShapeEnumType"` + // URIFooEnum is a required field + URIFooEnum *string `location:"uri" locationName:"URIEnum" type:"string" required:"true" enum:"InputService25TestShapeEnumType"` URIListEnums []*string `location:"querystring" locationName:"ListEnums" type:"list"` } +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService25TestShapeInputService25TestCaseOperation1Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService25TestShapeInputService25TestCaseOperation1Input"} + if s.URIFooEnum == nil { + invalidParams.Add(request.NewErrParamRequired("URIFooEnum")) + } + if s.URIFooEnum != nil && len(*s.URIFooEnum) < 1 { + invalidParams.Add(request.NewErrParamMinLen("URIFooEnum", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetFooEnum sets the FooEnum field's value. func (s *InputService25TestShapeInputService25TestCaseOperation1Input) SetFooEnum(v string) *InputService25TestShapeInputService25TestCaseOperation1Input { s.FooEnum = &v @@ -5425,11 +5500,28 @@ type InputService25TestShapeInputService25TestCaseOperation2Input struct { ListEnums []*string `type:"list"` - URIFooEnum *string `location:"uri" locationName:"URIEnum" type:"string" enum:"InputService25TestShapeEnumType"` + // URIFooEnum is a required field + URIFooEnum *string `location:"uri" locationName:"URIEnum" type:"string" required:"true" enum:"InputService25TestShapeEnumType"` URIListEnums []*string `location:"querystring" locationName:"ListEnums" type:"list"` } +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService25TestShapeInputService25TestCaseOperation2Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService25TestShapeInputService25TestCaseOperation2Input"} + if s.URIFooEnum == nil { + invalidParams.Add(request.NewErrParamRequired("URIFooEnum")) + } + if s.URIFooEnum != nil && len(*s.URIFooEnum) < 1 { + invalidParams.Add(request.NewErrParamMinLen("URIFooEnum", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetFooEnum sets the FooEnum field's value. func (s *InputService25TestShapeInputService25TestCaseOperation2Input) SetFooEnum(v string) *InputService25TestShapeInputService25TestCaseOperation2Input { s.FooEnum = &v @@ -6916,7 +7008,9 @@ func TestInputService25ProtocolTestEnumCase1(t *testing.T) { func TestInputService25ProtocolTestEnumCase2(t *testing.T) { svc := NewInputService25ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService25TestShapeInputService25TestCaseOperation2Input{} + input := &InputService25TestShapeInputService25TestCaseOperation2Input{ + URIFooEnum: aws.String("bar"), + } req, _ := svc.InputService25TestCaseOperation2Request(input) r := req.HTTPRequest @@ -6927,7 +7021,7 @@ func TestInputService25ProtocolTestEnumCase2(t *testing.T) { } // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) + awstesting.AssertURL(t, "https://test/Enum/bar", r.URL.String()) // assert headers diff --git a/service/amplify/api.go b/service/amplify/api.go index 3304e781be6..9687799f433 100644 --- a/service/amplify/api.go +++ b/service/amplify/api.go @@ -3052,6 +3052,9 @@ func (s *DeleteDomainAssociationInput) Validate() error { if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3145,6 +3148,9 @@ func (s *DeleteJobInput) Validate() error { if s.JobId == nil { invalidParams.Add(request.NewErrParamRequired("JobId")) } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3478,6 +3484,9 @@ func (s *GetDomainAssociationInput) Validate() error { if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3571,6 +3580,9 @@ func (s *GetJobInput) Validate() error { if s.JobId == nil { invalidParams.Add(request.NewErrParamRequired("JobId")) } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4503,6 +4515,9 @@ func (s *StopJobInput) Validate() error { if s.JobId == nil { invalidParams.Add(request.NewErrParamRequired("JobId")) } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5058,6 +5073,9 @@ func (s *UpdateDomainAssociationInput) Validate() error { if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } if s.SubDomainSettings == nil { invalidParams.Add(request.NewErrParamRequired("SubDomainSettings")) } diff --git a/service/apigateway/api.go b/service/apigateway/api.go index 2b9e72da8a5..d39e9de9b2e 100644 --- a/service/apigateway/api.go +++ b/service/apigateway/api.go @@ -12094,6 +12094,9 @@ func (s *CreateAuthorizerInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } @@ -12206,6 +12209,9 @@ func (s *CreateBasePathMappingInput) Validate() error { if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } @@ -12294,6 +12300,9 @@ func (s *CreateDeploymentInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12400,6 +12409,9 @@ func (s *CreateDocumentationPartInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.Location != nil { if err := s.Location.Validate(); err != nil { invalidParams.AddNested("Location", err.(request.ErrInvalidParams)) @@ -12470,6 +12482,9 @@ func (s *CreateDocumentationVersionInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12676,6 +12691,9 @@ func (s *CreateModelInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12750,6 +12768,9 @@ func (s *CreateRequestValidatorInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12817,12 +12838,18 @@ func (s *CreateResourceInput) Validate() error { if s.ParentId == nil { invalidParams.Add(request.NewErrParamRequired("ParentId")) } + if s.ParentId != nil && len(*s.ParentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ParentId", 1)) + } if s.PathPart == nil { invalidParams.Add(request.NewErrParamRequired("PathPart")) } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13037,6 +13064,9 @@ func (s *CreateStageInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StageName == nil { invalidParams.Add(request.NewErrParamRequired("StageName")) } @@ -13234,6 +13264,9 @@ func (s *CreateUsagePlanKeyInput) Validate() error { if s.UsagePlanId == nil { invalidParams.Add(request.NewErrParamRequired("UsagePlanId")) } + if s.UsagePlanId != nil && len(*s.UsagePlanId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UsagePlanId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13352,6 +13385,9 @@ func (s *DeleteApiKeyInput) Validate() error { if s.ApiKey == nil { invalidParams.Add(request.NewErrParamRequired("ApiKey")) } + if s.ApiKey != nil && len(*s.ApiKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiKey", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13410,9 +13446,15 @@ func (s *DeleteAuthorizerInput) Validate() error { if s.AuthorizerId == nil { invalidParams.Add(request.NewErrParamRequired("AuthorizerId")) } + if s.AuthorizerId != nil && len(*s.AuthorizerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AuthorizerId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13477,9 +13519,15 @@ func (s *DeleteBasePathMappingInput) Validate() error { if s.BasePath == nil { invalidParams.Add(request.NewErrParamRequired("BasePath")) } + if s.BasePath != nil && len(*s.BasePath) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BasePath", 1)) + } if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13539,6 +13587,9 @@ func (s *DeleteClientCertificateInput) Validate() error { if s.ClientCertificateId == nil { invalidParams.Add(request.NewErrParamRequired("ClientCertificateId")) } + if s.ClientCertificateId != nil && len(*s.ClientCertificateId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientCertificateId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13597,9 +13648,15 @@ func (s *DeleteDeploymentInput) Validate() error { if s.DeploymentId == nil { invalidParams.Add(request.NewErrParamRequired("DeploymentId")) } + if s.DeploymentId != nil && len(*s.DeploymentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeploymentId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13664,9 +13721,15 @@ func (s *DeleteDocumentationPartInput) Validate() error { if s.DocumentationPartId == nil { invalidParams.Add(request.NewErrParamRequired("DocumentationPartId")) } + if s.DocumentationPartId != nil && len(*s.DocumentationPartId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DocumentationPartId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13731,9 +13794,15 @@ func (s *DeleteDocumentationVersionInput) Validate() error { if s.DocumentationVersion == nil { invalidParams.Add(request.NewErrParamRequired("DocumentationVersion")) } + if s.DocumentationVersion != nil && len(*s.DocumentationVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DocumentationVersion", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13793,6 +13862,9 @@ func (s *DeleteDomainNameInput) Validate() error { if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13872,9 +13944,15 @@ func (s *DeleteGatewayResponseInput) Validate() error { if s.ResponseType == nil { invalidParams.Add(request.NewErrParamRequired("ResponseType")) } + if s.ResponseType != nil && len(*s.ResponseType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResponseType", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13944,12 +14022,21 @@ func (s *DeleteIntegrationInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 1)) + } if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14030,15 +14117,27 @@ func (s *DeleteIntegrationResponseInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 1)) + } if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StatusCode == nil { invalidParams.Add(request.NewErrParamRequired("StatusCode")) } + if s.StatusCode != nil && len(*s.StatusCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StatusCode", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14120,12 +14219,21 @@ func (s *DeleteMethodInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 1)) + } if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14206,15 +14314,27 @@ func (s *DeleteMethodResponseInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 1)) + } if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StatusCode == nil { invalidParams.Add(request.NewErrParamRequired("StatusCode")) } + if s.StatusCode != nil && len(*s.StatusCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StatusCode", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14291,9 +14411,15 @@ func (s *DeleteModelInput) Validate() error { if s.ModelName == nil { invalidParams.Add(request.NewErrParamRequired("ModelName")) } + if s.ModelName != nil && len(*s.ModelName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ModelName", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14358,9 +14484,15 @@ func (s *DeleteRequestValidatorInput) Validate() error { if s.RequestValidatorId == nil { invalidParams.Add(request.NewErrParamRequired("RequestValidatorId")) } + if s.RequestValidatorId != nil && len(*s.RequestValidatorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RequestValidatorId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14425,9 +14557,15 @@ func (s *DeleteResourceInput) Validate() error { if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14487,6 +14625,9 @@ func (s *DeleteRestApiInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14545,9 +14686,15 @@ func (s *DeleteStageInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StageName == nil { invalidParams.Add(request.NewErrParamRequired("StageName")) } + if s.StageName != nil && len(*s.StageName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14607,6 +14754,9 @@ func (s *DeleteUsagePlanInput) Validate() error { if s.UsagePlanId == nil { invalidParams.Add(request.NewErrParamRequired("UsagePlanId")) } + if s.UsagePlanId != nil && len(*s.UsagePlanId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UsagePlanId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14653,9 +14803,15 @@ func (s *DeleteUsagePlanKeyInput) Validate() error { if s.KeyId == nil { invalidParams.Add(request.NewErrParamRequired("KeyId")) } + if s.KeyId != nil && len(*s.KeyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("KeyId", 1)) + } if s.UsagePlanId == nil { invalidParams.Add(request.NewErrParamRequired("UsagePlanId")) } + if s.UsagePlanId != nil && len(*s.UsagePlanId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UsagePlanId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14730,6 +14886,9 @@ func (s *DeleteVpcLinkInput) Validate() error { if s.VpcLinkId == nil { invalidParams.Add(request.NewErrParamRequired("VpcLinkId")) } + if s.VpcLinkId != nil && len(*s.VpcLinkId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VpcLinkId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15282,9 +15441,15 @@ func (s *FlushStageAuthorizersCacheInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StageName == nil { invalidParams.Add(request.NewErrParamRequired("StageName")) } + if s.StageName != nil && len(*s.StageName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15349,9 +15514,15 @@ func (s *FlushStageCacheInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StageName == nil { invalidParams.Add(request.NewErrParamRequired("StageName")) } + if s.StageName != nil && len(*s.StageName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15454,6 +15625,9 @@ func (s *GetApiKeyInput) Validate() error { if s.ApiKey == nil { invalidParams.Add(request.NewErrParamRequired("ApiKey")) } + if s.ApiKey != nil && len(*s.ApiKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiKey", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15611,9 +15785,15 @@ func (s *GetAuthorizerInput) Validate() error { if s.AuthorizerId == nil { invalidParams.Add(request.NewErrParamRequired("AuthorizerId")) } + if s.AuthorizerId != nil && len(*s.AuthorizerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AuthorizerId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15666,6 +15846,9 @@ func (s *GetAuthorizersInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15759,9 +15942,15 @@ func (s *GetBasePathMappingInput) Validate() error { if s.BasePath == nil { invalidParams.Add(request.NewErrParamRequired("BasePath")) } + if s.BasePath != nil && len(*s.BasePath) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BasePath", 1)) + } if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15814,6 +16003,9 @@ func (s *GetBasePathMappingsInput) Validate() error { if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15899,6 +16091,9 @@ func (s *GetClientCertificateInput) Validate() error { if s.ClientCertificateId == nil { invalidParams.Add(request.NewErrParamRequired("ClientCertificateId")) } + if s.ClientCertificateId != nil && len(*s.ClientCertificateId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientCertificateId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16020,9 +16215,15 @@ func (s *GetDeploymentInput) Validate() error { if s.DeploymentId == nil { invalidParams.Add(request.NewErrParamRequired("DeploymentId")) } + if s.DeploymentId != nil && len(*s.DeploymentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeploymentId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16081,6 +16282,9 @@ func (s *GetDeploymentsInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16180,9 +16384,15 @@ func (s *GetDocumentationPartInput) Validate() error { if s.DocumentationPartId == nil { invalidParams.Add(request.NewErrParamRequired("DocumentationPartId")) } + if s.DocumentationPartId != nil && len(*s.DocumentationPartId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DocumentationPartId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16250,6 +16460,9 @@ func (s *GetDocumentationPartsInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16364,9 +16577,15 @@ func (s *GetDocumentationVersionInput) Validate() error { if s.DocumentationVersion == nil { invalidParams.Add(request.NewErrParamRequired("DocumentationVersion")) } + if s.DocumentationVersion != nil && len(*s.DocumentationVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DocumentationVersion", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16419,6 +16638,9 @@ func (s *GetDocumentationVersionsInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16508,6 +16730,9 @@ func (s *GetDomainNameInput) Validate() error { if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16640,12 +16865,21 @@ func (s *GetExportInput) Validate() error { if s.ExportType == nil { invalidParams.Add(request.NewErrParamRequired("ExportType")) } + if s.ExportType != nil && len(*s.ExportType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ExportType", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StageName == nil { invalidParams.Add(request.NewErrParamRequired("StageName")) } + if s.StageName != nil && len(*s.StageName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16777,9 +17011,15 @@ func (s *GetGatewayResponseInput) Validate() error { if s.ResponseType == nil { invalidParams.Add(request.NewErrParamRequired("ResponseType")) } + if s.ResponseType != nil && len(*s.ResponseType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResponseType", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16837,6 +17077,9 @@ func (s *GetGatewayResponsesInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17089,12 +17332,21 @@ func (s *GetIntegrationInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 1)) + } if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17161,15 +17413,27 @@ func (s *GetIntegrationResponseInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 1)) + } if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StatusCode == nil { invalidParams.Add(request.NewErrParamRequired("StatusCode")) } + if s.StatusCode != nil && len(*s.StatusCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StatusCode", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17237,12 +17501,21 @@ func (s *GetMethodInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 1)) + } if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17309,15 +17582,27 @@ func (s *GetMethodResponseInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 1)) + } if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StatusCode == nil { invalidParams.Add(request.NewErrParamRequired("StatusCode")) } + if s.StatusCode != nil && len(*s.StatusCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StatusCode", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17385,9 +17670,15 @@ func (s *GetModelInput) Validate() error { if s.ModelName == nil { invalidParams.Add(request.NewErrParamRequired("ModelName")) } + if s.ModelName != nil && len(*s.ModelName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ModelName", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17444,9 +17735,15 @@ func (s *GetModelTemplateInput) Validate() error { if s.ModelName == nil { invalidParams.Add(request.NewErrParamRequired("ModelName")) } + if s.ModelName != nil && len(*s.ModelName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ModelName", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17526,6 +17823,9 @@ func (s *GetModelsInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17616,9 +17916,15 @@ func (s *GetRequestValidatorInput) Validate() error { if s.RequestValidatorId == nil { invalidParams.Add(request.NewErrParamRequired("RequestValidatorId")) } + if s.RequestValidatorId != nil && len(*s.RequestValidatorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RequestValidatorId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17671,6 +17977,9 @@ func (s *GetRequestValidatorsInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17773,9 +18082,15 @@ func (s *GetResourceInput) Validate() error { if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17842,6 +18157,9 @@ func (s *GetResourcesInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17933,6 +18251,9 @@ func (s *GetRestApiInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18059,12 +18380,21 @@ func (s *GetSdkInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.SdkType == nil { invalidParams.Add(request.NewErrParamRequired("SdkType")) } + if s.SdkType != nil && len(*s.SdkType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SdkType", 1)) + } if s.StageName == nil { invalidParams.Add(request.NewErrParamRequired("StageName")) } + if s.StageName != nil && len(*s.StageName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18164,6 +18494,9 @@ func (s *GetSdkTypeInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18274,9 +18607,15 @@ func (s *GetStageInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StageName == nil { invalidParams.Add(request.NewErrParamRequired("StageName")) } + if s.StageName != nil && len(*s.StageName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18325,6 +18664,9 @@ func (s *GetStagesInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18405,6 +18747,9 @@ func (s *GetTagsInput) Validate() error { if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18507,6 +18852,9 @@ func (s *GetUsageInput) Validate() error { if s.UsagePlanId == nil { invalidParams.Add(request.NewErrParamRequired("UsagePlanId")) } + if s.UsagePlanId != nil && len(*s.UsagePlanId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UsagePlanId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18576,6 +18924,9 @@ func (s *GetUsagePlanInput) Validate() error { if s.UsagePlanId == nil { invalidParams.Add(request.NewErrParamRequired("UsagePlanId")) } + if s.UsagePlanId != nil && len(*s.UsagePlanId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UsagePlanId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18622,9 +18973,15 @@ func (s *GetUsagePlanKeyInput) Validate() error { if s.KeyId == nil { invalidParams.Add(request.NewErrParamRequired("KeyId")) } + if s.KeyId != nil && len(*s.KeyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("KeyId", 1)) + } if s.UsagePlanId == nil { invalidParams.Add(request.NewErrParamRequired("UsagePlanId")) } + if s.UsagePlanId != nil && len(*s.UsagePlanId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UsagePlanId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18682,6 +19039,9 @@ func (s *GetUsagePlanKeysInput) Validate() error { if s.UsagePlanId == nil { invalidParams.Add(request.NewErrParamRequired("UsagePlanId")) } + if s.UsagePlanId != nil && len(*s.UsagePlanId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UsagePlanId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18852,6 +19212,9 @@ func (s *GetVpcLinkInput) Validate() error { if s.VpcLinkId == nil { invalidParams.Add(request.NewErrParamRequired("VpcLinkId")) } + if s.VpcLinkId != nil && len(*s.VpcLinkId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VpcLinkId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -19078,6 +19441,9 @@ func (s *ImportDocumentationPartsInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -20300,9 +20666,15 @@ func (s *PutGatewayResponseInput) Validate() error { if s.ResponseType == nil { invalidParams.Add(request.NewErrParamRequired("ResponseType")) } + if s.ResponseType != nil && len(*s.ResponseType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResponseType", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -20477,12 +20849,21 @@ func (s *PutIntegrationInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 1)) + } if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } @@ -20662,15 +21043,27 @@ func (s *PutIntegrationResponseInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 1)) + } if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StatusCode == nil { invalidParams.Add(request.NewErrParamRequired("StatusCode")) } + if s.StatusCode != nil && len(*s.StatusCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StatusCode", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -20813,12 +21206,21 @@ func (s *PutMethodInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 1)) + } if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -20951,15 +21353,27 @@ func (s *PutMethodResponseInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 1)) + } if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StatusCode == nil { invalidParams.Add(request.NewErrParamRequired("StatusCode")) } + if s.StatusCode != nil && len(*s.StatusCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StatusCode", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -21054,6 +21468,9 @@ func (s *PutRestApiInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -21738,6 +22155,9 @@ func (s *TagResourceInput) Validate() error { if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } if s.Tags == nil { invalidParams.Add(request.NewErrParamRequired("Tags")) } @@ -21829,9 +22249,15 @@ func (s *TestInvokeAuthorizerInput) Validate() error { if s.AuthorizerId == nil { invalidParams.Add(request.NewErrParamRequired("AuthorizerId")) } + if s.AuthorizerId != nil && len(*s.AuthorizerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AuthorizerId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -22026,12 +22452,21 @@ func (s *TestInvokeMethodInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 1)) + } if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -22231,6 +22666,9 @@ func (s *UntagResourceInput) Validate() error { if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } if s.TagKeys == nil { invalidParams.Add(request.NewErrParamRequired("TagKeys")) } @@ -22322,6 +22760,9 @@ func (s *UpdateApiKeyInput) Validate() error { if s.ApiKey == nil { invalidParams.Add(request.NewErrParamRequired("ApiKey")) } + if s.ApiKey != nil && len(*s.ApiKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiKey", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -22376,9 +22817,15 @@ func (s *UpdateAuthorizerInput) Validate() error { if s.AuthorizerId == nil { invalidParams.Add(request.NewErrParamRequired("AuthorizerId")) } + if s.AuthorizerId != nil && len(*s.AuthorizerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AuthorizerId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -22439,9 +22886,15 @@ func (s *UpdateBasePathMappingInput) Validate() error { if s.BasePath == nil { invalidParams.Add(request.NewErrParamRequired("BasePath")) } + if s.BasePath != nil && len(*s.BasePath) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BasePath", 1)) + } if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -22497,6 +22950,9 @@ func (s *UpdateClientCertificateInput) Validate() error { if s.ClientCertificateId == nil { invalidParams.Add(request.NewErrParamRequired("ClientCertificateId")) } + if s.ClientCertificateId != nil && len(*s.ClientCertificateId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientCertificateId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -22552,9 +23008,15 @@ func (s *UpdateDeploymentInput) Validate() error { if s.DeploymentId == nil { invalidParams.Add(request.NewErrParamRequired("DeploymentId")) } + if s.DeploymentId != nil && len(*s.DeploymentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeploymentId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -22615,9 +23077,15 @@ func (s *UpdateDocumentationPartInput) Validate() error { if s.DocumentationPartId == nil { invalidParams.Add(request.NewErrParamRequired("DocumentationPartId")) } + if s.DocumentationPartId != nil && len(*s.DocumentationPartId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DocumentationPartId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -22678,9 +23146,15 @@ func (s *UpdateDocumentationVersionInput) Validate() error { if s.DocumentationVersion == nil { invalidParams.Add(request.NewErrParamRequired("DocumentationVersion")) } + if s.DocumentationVersion != nil && len(*s.DocumentationVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DocumentationVersion", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -22736,6 +23210,9 @@ func (s *UpdateDomainNameInput) Validate() error { if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -22810,9 +23287,15 @@ func (s *UpdateGatewayResponseInput) Validate() error { if s.ResponseType == nil { invalidParams.Add(request.NewErrParamRequired("ResponseType")) } + if s.ResponseType != nil && len(*s.ResponseType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResponseType", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23002,12 +23485,21 @@ func (s *UpdateIntegrationInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 1)) + } if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23084,15 +23576,27 @@ func (s *UpdateIntegrationResponseInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 1)) + } if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StatusCode == nil { invalidParams.Add(request.NewErrParamRequired("StatusCode")) } + if s.StatusCode != nil && len(*s.StatusCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StatusCode", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23170,12 +23674,21 @@ func (s *UpdateMethodInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 1)) + } if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23252,15 +23765,27 @@ func (s *UpdateMethodResponseInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 1)) + } if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StatusCode == nil { invalidParams.Add(request.NewErrParamRequired("StatusCode")) } + if s.StatusCode != nil && len(*s.StatusCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StatusCode", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23333,9 +23858,15 @@ func (s *UpdateModelInput) Validate() error { if s.ModelName == nil { invalidParams.Add(request.NewErrParamRequired("ModelName")) } + if s.ModelName != nil && len(*s.ModelName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ModelName", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23396,9 +23927,15 @@ func (s *UpdateRequestValidatorInput) Validate() error { if s.RequestValidatorId == nil { invalidParams.Add(request.NewErrParamRequired("RequestValidatorId")) } + if s.RequestValidatorId != nil && len(*s.RequestValidatorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RequestValidatorId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23520,9 +24057,15 @@ func (s *UpdateResourceInput) Validate() error { if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23578,6 +24121,9 @@ func (s *UpdateRestApiInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23632,9 +24178,15 @@ func (s *UpdateStageInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StageName == nil { invalidParams.Add(request.NewErrParamRequired("StageName")) } + if s.StageName != nil && len(*s.StageName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23697,9 +24249,15 @@ func (s *UpdateUsageInput) Validate() error { if s.KeyId == nil { invalidParams.Add(request.NewErrParamRequired("KeyId")) } + if s.KeyId != nil && len(*s.KeyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("KeyId", 1)) + } if s.UsagePlanId == nil { invalidParams.Add(request.NewErrParamRequired("UsagePlanId")) } + if s.UsagePlanId != nil && len(*s.UsagePlanId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UsagePlanId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23755,6 +24313,9 @@ func (s *UpdateUsagePlanInput) Validate() error { if s.UsagePlanId == nil { invalidParams.Add(request.NewErrParamRequired("UsagePlanId")) } + if s.UsagePlanId != nil && len(*s.UsagePlanId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UsagePlanId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23805,6 +24366,9 @@ func (s *UpdateVpcLinkInput) Validate() error { if s.VpcLinkId == nil { invalidParams.Add(request.NewErrParamRequired("VpcLinkId")) } + if s.VpcLinkId != nil && len(*s.VpcLinkId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VpcLinkId", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/appsync/api.go b/service/appsync/api.go index b7db286b050..db94b6c7f1b 100644 --- a/service/appsync/api.go +++ b/service/appsync/api.go @@ -3252,6 +3252,9 @@ func (s *CreateApiKeyInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3357,6 +3360,9 @@ func (s *CreateDataSourceInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } @@ -3526,6 +3532,9 @@ func (s *CreateFunctionInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.DataSourceName == nil { invalidParams.Add(request.NewErrParamRequired("DataSourceName")) } @@ -3797,6 +3806,9 @@ func (s *CreateResolverInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.FieldName == nil { invalidParams.Add(request.NewErrParamRequired("FieldName")) } @@ -3812,6 +3824,9 @@ func (s *CreateResolverInput) Validate() error { if s.TypeName == nil { invalidParams.Add(request.NewErrParamRequired("TypeName")) } + if s.TypeName != nil && len(*s.TypeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3927,6 +3942,9 @@ func (s *CreateTypeInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.Definition == nil { invalidParams.Add(request.NewErrParamRequired("Definition")) } @@ -4133,9 +4151,15 @@ func (s *DeleteApiKeyInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4199,9 +4223,15 @@ func (s *DeleteDataSourceInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4265,9 +4295,15 @@ func (s *DeleteFunctionInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.FunctionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionId")) } + if s.FunctionId != nil && len(*s.FunctionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4326,6 +4362,9 @@ func (s *DeleteGraphqlApiInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4388,12 +4427,21 @@ func (s *DeleteResolverInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.FieldName == nil { invalidParams.Add(request.NewErrParamRequired("FieldName")) } + if s.FieldName != nil && len(*s.FieldName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FieldName", 1)) + } if s.TypeName == nil { invalidParams.Add(request.NewErrParamRequired("TypeName")) } + if s.TypeName != nil && len(*s.TypeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4463,9 +4511,15 @@ func (s *DeleteTypeInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.TypeName == nil { invalidParams.Add(request.NewErrParamRequired("TypeName")) } + if s.TypeName != nil && len(*s.TypeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4734,9 +4788,15 @@ func (s *GetDataSourceInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4809,9 +4869,15 @@ func (s *GetFunctionInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.FunctionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionId")) } + if s.FunctionId != nil && len(*s.FunctionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4879,6 +4945,9 @@ func (s *GetGraphqlApiInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4945,6 +5014,9 @@ func (s *GetIntrospectionSchemaInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.Format == nil { invalidParams.Add(request.NewErrParamRequired("Format")) } @@ -5027,12 +5099,21 @@ func (s *GetResolverInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.FieldName == nil { invalidParams.Add(request.NewErrParamRequired("FieldName")) } + if s.FieldName != nil && len(*s.FieldName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FieldName", 1)) + } if s.TypeName == nil { invalidParams.Add(request.NewErrParamRequired("TypeName")) } + if s.TypeName != nil && len(*s.TypeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5106,6 +5187,9 @@ func (s *GetSchemaCreationStatusInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5187,12 +5271,18 @@ func (s *GetTypeInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.Format == nil { invalidParams.Add(request.NewErrParamRequired("Format")) } if s.TypeName == nil { invalidParams.Add(request.NewErrParamRequired("TypeName")) } + if s.TypeName != nil && len(*s.TypeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5450,6 +5540,9 @@ func (s *ListApiKeysInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5540,6 +5633,9 @@ func (s *ListDataSourcesInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5630,6 +5726,9 @@ func (s *ListFunctionsInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5791,9 +5890,15 @@ func (s *ListResolversByFunctionInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.FunctionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionId")) } + if s.FunctionId != nil && len(*s.FunctionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5894,9 +5999,15 @@ func (s *ListResolversInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.TypeName == nil { invalidParams.Add(request.NewErrParamRequired("TypeName")) } + if s.TypeName != nil && len(*s.TypeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5998,6 +6109,9 @@ func (s *ListTypesInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.Format == nil { invalidParams.Add(request.NewErrParamRequired("Format")) } @@ -6453,6 +6567,9 @@ func (s *StartSchemaCreationInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.Definition == nil { invalidParams.Add(request.NewErrParamRequired("Definition")) } @@ -6596,9 +6713,15 @@ func (s *UpdateApiKeyInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6709,9 +6832,15 @@ func (s *UpdateDataSourceInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } @@ -6883,12 +7012,18 @@ func (s *UpdateFunctionInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.DataSourceName == nil { invalidParams.Add(request.NewErrParamRequired("DataSourceName")) } if s.FunctionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionId")) } + if s.FunctionId != nil && len(*s.FunctionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionId", 1)) + } if s.FunctionVersion == nil { invalidParams.Add(request.NewErrParamRequired("FunctionVersion")) } @@ -7024,6 +7159,9 @@ func (s *UpdateGraphqlApiInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } @@ -7168,9 +7306,15 @@ func (s *UpdateResolverInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.FieldName == nil { invalidParams.Add(request.NewErrParamRequired("FieldName")) } + if s.FieldName != nil && len(*s.FieldName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FieldName", 1)) + } if s.RequestMappingTemplate == nil { invalidParams.Add(request.NewErrParamRequired("RequestMappingTemplate")) } @@ -7183,6 +7327,9 @@ func (s *UpdateResolverInput) Validate() error { if s.TypeName == nil { invalidParams.Add(request.NewErrParamRequired("TypeName")) } + if s.TypeName != nil && len(*s.TypeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7299,12 +7446,18 @@ func (s *UpdateTypeInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.Format == nil { invalidParams.Add(request.NewErrParamRequired("Format")) } if s.TypeName == nil { invalidParams.Add(request.NewErrParamRequired("TypeName")) } + if s.TypeName != nil && len(*s.TypeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/chime/api.go b/service/chime/api.go index 8f138b77f75..8407ddf0848 100644 --- a/service/chime/api.go +++ b/service/chime/api.go @@ -1915,6 +1915,9 @@ func (s *BatchSuspendUserInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.UserIdList == nil { invalidParams.Add(request.NewErrParamRequired("UserIdList")) } @@ -1992,6 +1995,9 @@ func (s *BatchUnsuspendUserInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.UserIdList == nil { invalidParams.Add(request.NewErrParamRequired("UserIdList")) } @@ -2069,6 +2075,9 @@ func (s *BatchUpdateUserInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.UpdateUserRequestItems == nil { invalidParams.Add(request.NewErrParamRequired("UpdateUserRequestItems")) } @@ -2215,6 +2224,9 @@ func (s *DeleteAccountInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2267,6 +2279,9 @@ func (s *GetAccountInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2328,6 +2343,9 @@ func (s *GetAccountSettingsInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2394,9 +2412,15 @@ func (s *GetUserInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.UserId == nil { invalidParams.Add(request.NewErrParamRequired("UserId")) } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2521,6 +2545,9 @@ func (s *InviteUsersInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.UserEmailList == nil { invalidParams.Add(request.NewErrParamRequired("UserEmailList")) } @@ -2698,6 +2725,9 @@ func (s *ListUsersInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -2794,9 +2824,15 @@ func (s *LogoutUserInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.UserId == nil { invalidParams.Add(request.NewErrParamRequired("UserId")) } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2860,9 +2896,15 @@ func (s *ResetPersonalPINInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.UserId == nil { invalidParams.Add(request.NewErrParamRequired("UserId")) } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2933,6 +2975,9 @@ func (s *UpdateAccountInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } @@ -3008,6 +3053,9 @@ func (s *UpdateAccountSettingsInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.AccountSettings == nil { invalidParams.Add(request.NewErrParamRequired("AccountSettings")) } @@ -3078,9 +3126,15 @@ func (s *UpdateUserInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.UserId == nil { invalidParams.Add(request.NewErrParamRequired("UserId")) } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/cloudfront/api.go b/service/cloudfront/api.go index 75dbab26e15..c647608840b 100644 --- a/service/cloudfront/api.go +++ b/service/cloudfront/api.go @@ -6215,6 +6215,9 @@ func (s *CreateInvalidationInput) Validate() error { if s.DistributionId == nil { invalidParams.Add(request.NewErrParamRequired("DistributionId")) } + if s.DistributionId != nil && len(*s.DistributionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DistributionId", 1)) + } if s.InvalidationBatch == nil { invalidParams.Add(request.NewErrParamRequired("InvalidationBatch")) } @@ -7193,6 +7196,9 @@ func (s *DeleteCloudFrontOriginAccessIdentityInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7290,6 +7296,9 @@ func (s *DeleteDistributionInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7352,6 +7361,9 @@ func (s *DeleteFieldLevelEncryptionConfigInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7414,6 +7426,9 @@ func (s *DeleteFieldLevelEncryptionProfileInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7476,6 +7491,9 @@ func (s *DeletePublicKeyInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7539,6 +7557,9 @@ func (s *DeleteStreamingDistributionInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9529,6 +9550,9 @@ func (s *GetCloudFrontOriginAccessIdentityConfigInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9601,6 +9625,9 @@ func (s *GetCloudFrontOriginAccessIdentityInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9674,6 +9701,9 @@ func (s *GetDistributionConfigInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9746,6 +9776,9 @@ func (s *GetDistributionInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9817,6 +9850,9 @@ func (s *GetFieldLevelEncryptionConfigInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9888,6 +9924,9 @@ func (s *GetFieldLevelEncryptionInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9959,6 +9998,9 @@ func (s *GetFieldLevelEncryptionProfileConfigInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10030,6 +10072,9 @@ func (s *GetFieldLevelEncryptionProfileInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10106,9 +10151,15 @@ func (s *GetInvalidationInput) Validate() error { if s.DistributionId == nil { invalidParams.Add(request.NewErrParamRequired("DistributionId")) } + if s.DistributionId != nil && len(*s.DistributionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DistributionId", 1)) + } if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10178,6 +10229,9 @@ func (s *GetPublicKeyConfigInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10248,6 +10302,9 @@ func (s *GetPublicKeyInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10319,6 +10376,9 @@ func (s *GetStreamingDistributionConfigInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10391,6 +10451,9 @@ func (s *GetStreamingDistributionInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11092,6 +11155,9 @@ func (s *ListDistributionsByWebACLIdInput) Validate() error { if s.WebACLId == nil { invalidParams.Add(request.NewErrParamRequired("WebACLId")) } + if s.WebACLId != nil && len(*s.WebACLId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WebACLId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11364,6 +11430,9 @@ func (s *ListInvalidationsInput) Validate() error { if s.DistributionId == nil { invalidParams.Add(request.NewErrParamRequired("DistributionId")) } + if s.DistributionId != nil && len(*s.DistributionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DistributionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14410,6 +14479,9 @@ func (s *UpdateCloudFrontOriginAccessIdentityInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if s.CloudFrontOriginAccessIdentityConfig != nil { if err := s.CloudFrontOriginAccessIdentityConfig.Validate(); err != nil { invalidParams.AddNested("CloudFrontOriginAccessIdentityConfig", err.(request.ErrInvalidParams)) @@ -14511,6 +14583,9 @@ func (s *UpdateDistributionInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if s.DistributionConfig != nil { if err := s.DistributionConfig.Validate(); err != nil { invalidParams.AddNested("DistributionConfig", err.(request.ErrInvalidParams)) @@ -14611,6 +14686,9 @@ func (s *UpdateFieldLevelEncryptionConfigInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if s.FieldLevelEncryptionConfig != nil { if err := s.FieldLevelEncryptionConfig.Validate(); err != nil { invalidParams.AddNested("FieldLevelEncryptionConfig", err.(request.ErrInvalidParams)) @@ -14711,6 +14789,9 @@ func (s *UpdateFieldLevelEncryptionProfileInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if s.FieldLevelEncryptionProfileConfig != nil { if err := s.FieldLevelEncryptionProfileConfig.Validate(); err != nil { invalidParams.AddNested("FieldLevelEncryptionProfileConfig", err.(request.ErrInvalidParams)) @@ -14807,6 +14888,9 @@ func (s *UpdatePublicKeyInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if s.PublicKeyConfig == nil { invalidParams.Add(request.NewErrParamRequired("PublicKeyConfig")) } @@ -14907,6 +14991,9 @@ func (s *UpdateStreamingDistributionInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if s.StreamingDistributionConfig == nil { invalidParams.Add(request.NewErrParamRequired("StreamingDistributionConfig")) } diff --git a/service/connect/api.go b/service/connect/api.go index b21e191379b..0b380c5d354 100644 --- a/service/connect/api.go +++ b/service/connect/api.go @@ -2404,6 +2404,9 @@ func (s *DeleteUserInput) Validate() error { if s.UserId == nil { invalidParams.Add(request.NewErrParamRequired("UserId")) } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2471,6 +2474,9 @@ func (s *DescribeUserHierarchyGroupInput) Validate() error { if s.HierarchyGroupId == nil { invalidParams.Add(request.NewErrParamRequired("HierarchyGroupId")) } + if s.HierarchyGroupId != nil && len(*s.HierarchyGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HierarchyGroupId", 1)) + } if s.InstanceId == nil { invalidParams.Add(request.NewErrParamRequired("InstanceId")) } @@ -2627,6 +2633,9 @@ func (s *DescribeUserInput) Validate() error { if s.UserId == nil { invalidParams.Add(request.NewErrParamRequired("UserId")) } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4682,6 +4691,9 @@ func (s *UpdateUserHierarchyInput) Validate() error { if s.UserId == nil { invalidParams.Add(request.NewErrParamRequired("UserId")) } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4769,6 +4781,9 @@ func (s *UpdateUserIdentityInfoInput) Validate() error { if s.UserId == nil { invalidParams.Add(request.NewErrParamRequired("UserId")) } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } if s.IdentityInfo != nil { if err := s.IdentityInfo.Validate(); err != nil { invalidParams.AddNested("IdentityInfo", err.(request.ErrInvalidParams)) @@ -4862,6 +4877,9 @@ func (s *UpdateUserPhoneConfigInput) Validate() error { if s.UserId == nil { invalidParams.Add(request.NewErrParamRequired("UserId")) } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } if s.PhoneConfig != nil { if err := s.PhoneConfig.Validate(); err != nil { invalidParams.AddNested("PhoneConfig", err.(request.ErrInvalidParams)) @@ -4954,6 +4972,9 @@ func (s *UpdateUserRoutingProfileInput) Validate() error { if s.UserId == nil { invalidParams.Add(request.NewErrParamRequired("UserId")) } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5044,6 +5065,9 @@ func (s *UpdateUserSecurityProfilesInput) Validate() error { if s.UserId == nil { invalidParams.Add(request.NewErrParamRequired("UserId")) } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/dlm/api.go b/service/dlm/api.go index 8a135ba6567..166c08e163f 100644 --- a/service/dlm/api.go +++ b/service/dlm/api.go @@ -650,6 +650,9 @@ func (s *DeleteLifecyclePolicyInput) Validate() error { if s.PolicyId == nil { invalidParams.Add(request.NewErrParamRequired("PolicyId")) } + if s.PolicyId != nil && len(*s.PolicyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PolicyId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -807,6 +810,9 @@ func (s *GetLifecyclePolicyInput) Validate() error { if s.PolicyId == nil { invalidParams.Add(request.NewErrParamRequired("PolicyId")) } + if s.PolicyId != nil && len(*s.PolicyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PolicyId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1270,6 +1276,9 @@ func (s *UpdateLifecyclePolicyInput) Validate() error { if s.PolicyId == nil { invalidParams.Add(request.NewErrParamRequired("PolicyId")) } + if s.PolicyId != nil && len(*s.PolicyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PolicyId", 1)) + } if s.PolicyDetails != nil { if err := s.PolicyDetails.Validate(); err != nil { invalidParams.AddNested("PolicyDetails", err.(request.ErrInvalidParams)) diff --git a/service/efs/api.go b/service/efs/api.go index f24886fa39b..7218814a068 100644 --- a/service/efs/api.go +++ b/service/efs/api.go @@ -1637,6 +1637,9 @@ func (s *CreateTagsInput) Validate() error { if s.FileSystemId == nil { invalidParams.Add(request.NewErrParamRequired("FileSystemId")) } + if s.FileSystemId != nil && len(*s.FileSystemId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FileSystemId", 1)) + } if s.Tags == nil { invalidParams.Add(request.NewErrParamRequired("Tags")) } @@ -1708,6 +1711,9 @@ func (s *DeleteFileSystemInput) Validate() error { if s.FileSystemId == nil { invalidParams.Add(request.NewErrParamRequired("FileSystemId")) } + if s.FileSystemId != nil && len(*s.FileSystemId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FileSystemId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1760,6 +1766,9 @@ func (s *DeleteMountTargetInput) Validate() error { if s.MountTargetId == nil { invalidParams.Add(request.NewErrParamRequired("MountTargetId")) } + if s.MountTargetId != nil && len(*s.MountTargetId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MountTargetId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1817,6 +1826,9 @@ func (s *DeleteTagsInput) Validate() error { if s.FileSystemId == nil { invalidParams.Add(request.NewErrParamRequired("FileSystemId")) } + if s.FileSystemId != nil && len(*s.FileSystemId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FileSystemId", 1)) + } if s.TagKeys == nil { invalidParams.Add(request.NewErrParamRequired("TagKeys")) } @@ -1994,6 +2006,9 @@ func (s *DescribeMountTargetSecurityGroupsInput) Validate() error { if s.MountTargetId == nil { invalidParams.Add(request.NewErrParamRequired("MountTargetId")) } + if s.MountTargetId != nil && len(*s.MountTargetId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MountTargetId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2179,6 +2194,9 @@ func (s *DescribeTagsInput) Validate() error { if s.FileSystemId == nil { invalidParams.Add(request.NewErrParamRequired("FileSystemId")) } + if s.FileSystemId != nil && len(*s.FileSystemId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FileSystemId", 1)) + } if s.MaxItems != nil && *s.MaxItems < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) } @@ -2493,6 +2511,9 @@ func (s *ModifyMountTargetSecurityGroupsInput) Validate() error { if s.MountTargetId == nil { invalidParams.Add(request.NewErrParamRequired("MountTargetId")) } + if s.MountTargetId != nil && len(*s.MountTargetId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MountTargetId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2705,6 +2726,9 @@ func (s *UpdateFileSystemInput) Validate() error { if s.FileSystemId == nil { invalidParams.Add(request.NewErrParamRequired("FileSystemId")) } + if s.FileSystemId != nil && len(*s.FileSystemId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FileSystemId", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/eks/api.go b/service/eks/api.go index a4fd7cd4935..c67d92cc5d0 100644 --- a/service/eks/api.go +++ b/service/eks/api.go @@ -725,6 +725,9 @@ func (s *DeleteClusterInput) Validate() error { if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -786,6 +789,9 @@ func (s *DescribeClusterInput) Validate() error { if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/elasticache/examples_test.go b/service/elasticache/examples_test.go index 2579113d104..af0738bd720 100644 --- a/service/elasticache/examples_test.go +++ b/service/elasticache/examples_test.go @@ -220,14 +220,14 @@ func ExampleElastiCache_CreateCacheCluster_shared00() { func ExampleElastiCache_CreateCacheCluster_shared01() { svc := elasticache.New(session.New()) input := &elasticache.CreateCacheClusterInput{ - AutoMinorVersionUpgrade: aws.Bool(true), - CacheClusterId: aws.String("my-redis"), - CacheNodeType: aws.String("cache.r3.larage"), - CacheSubnetGroupName: aws.String("default"), - Engine: aws.String("redis"), - EngineVersion: aws.String("3.2.4"), - NumCacheNodes: aws.Int64(1), - Port: aws.Int64(6379), + AutoMinorVersionUpgrade: aws.Bool(true), + CacheClusterId: aws.String("my-redis"), + CacheNodeType: aws.String("cache.r3.larage"), + CacheSubnetGroupName: aws.String("default"), + Engine: aws.String("redis"), + EngineVersion: aws.String("3.2.4"), + NumCacheNodes: aws.Int64(1), + Port: aws.Int64(6379), PreferredAvailabilityZone: aws.String("us-east-1c"), SnapshotRetentionLimit: aws.Int64(7), } diff --git a/service/elasticsearchservice/api.go b/service/elasticsearchservice/api.go index c4915fbd8be..f3a086837b4 100644 --- a/service/elasticsearchservice/api.go +++ b/service/elasticsearchservice/api.go @@ -3363,9 +3363,15 @@ func (s *DescribeElasticsearchInstanceTypeLimitsInput) Validate() error { if s.ElasticsearchVersion == nil { invalidParams.Add(request.NewErrParamRequired("ElasticsearchVersion")) } + if s.ElasticsearchVersion != nil && len(*s.ElasticsearchVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ElasticsearchVersion", 1)) + } if s.InstanceType == nil { invalidParams.Add(request.NewErrParamRequired("InstanceType")) } + if s.InstanceType != nil && len(*s.InstanceType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceType", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4719,6 +4725,9 @@ func (s *ListElasticsearchInstanceTypesInput) Validate() error { if s.ElasticsearchVersion == nil { invalidParams.Add(request.NewErrParamRequired("ElasticsearchVersion")) } + if s.ElasticsearchVersion != nil && len(*s.ElasticsearchVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ElasticsearchVersion", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/elastictranscoder/api.go b/service/elastictranscoder/api.go index 05c07b9f6df..f9b4222baba 100644 --- a/service/elastictranscoder/api.go +++ b/service/elastictranscoder/api.go @@ -2324,6 +2324,9 @@ func (s *CancelJobInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3728,6 +3731,9 @@ func (s *DeletePipelineInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3782,6 +3788,9 @@ func (s *DeletePresetInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5038,6 +5047,9 @@ func (s *ListJobsByPipelineInput) Validate() error { if s.PipelineId == nil { invalidParams.Add(request.NewErrParamRequired("PipelineId")) } + if s.PipelineId != nil && len(*s.PipelineId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5134,6 +5146,9 @@ func (s *ListJobsByStatusInput) Validate() error { if s.Status == nil { invalidParams.Add(request.NewErrParamRequired("Status")) } + if s.Status != nil && len(*s.Status) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Status", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6427,6 +6442,9 @@ func (s *ReadJobInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6490,6 +6508,9 @@ func (s *ReadPipelineInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6567,6 +6588,9 @@ func (s *ReadPresetInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7156,6 +7180,9 @@ func (s *UpdatePipelineInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } @@ -7277,6 +7304,9 @@ func (s *UpdatePipelineNotificationsInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if s.Notifications == nil { invalidParams.Add(request.NewErrParamRequired("Notifications")) } @@ -7398,6 +7428,9 @@ func (s *UpdatePipelineStatusInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if s.Status == nil { invalidParams.Add(request.NewErrParamRequired("Status")) } diff --git a/service/glacier/api.go b/service/glacier/api.go index 09929920d12..c46945e1af9 100644 --- a/service/glacier/api.go +++ b/service/glacier/api.go @@ -3766,12 +3766,21 @@ func (s *AbortMultipartUploadInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.UploadId == nil { invalidParams.Add(request.NewErrParamRequired("UploadId")) } + if s.UploadId != nil && len(*s.UploadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UploadId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3847,9 +3856,15 @@ func (s *AbortVaultLockInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3922,9 +3937,15 @@ func (s *AddTagsToVaultInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4200,12 +4221,21 @@ func (s *CompleteMultipartUploadInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.UploadId == nil { invalidParams.Add(request.NewErrParamRequired("UploadId")) } + if s.UploadId != nil && len(*s.UploadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UploadId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4284,12 +4314,21 @@ func (s *CompleteVaultLockInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.LockId == nil { invalidParams.Add(request.NewErrParamRequired("LockId")) } + if s.LockId != nil && len(*s.LockId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LockId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4365,9 +4404,15 @@ func (s *CreateVaultInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4515,12 +4560,21 @@ func (s *DeleteArchiveInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.ArchiveId == nil { invalidParams.Add(request.NewErrParamRequired("ArchiveId")) } + if s.ArchiveId != nil && len(*s.ArchiveId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ArchiveId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4595,9 +4649,15 @@ func (s *DeleteVaultAccessPolicyInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4666,9 +4726,15 @@ func (s *DeleteVaultInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4724,9 +4790,15 @@ func (s *DeleteVaultNotificationsInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4814,12 +4886,21 @@ func (s *DescribeJobInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.JobId == nil { invalidParams.Add(request.NewErrParamRequired("JobId")) } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4880,9 +4961,15 @@ func (s *DescribeVaultInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5056,6 +5143,9 @@ func (s *GetDataRetrievalPolicyInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5164,12 +5254,21 @@ func (s *GetJobOutputInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.JobId == nil { invalidParams.Add(request.NewErrParamRequired("JobId")) } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5336,9 +5435,15 @@ func (s *GetVaultAccessPolicyInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5417,9 +5522,15 @@ func (s *GetVaultLockInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5528,9 +5639,15 @@ func (s *GetVaultNotificationsInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5735,9 +5852,15 @@ func (s *InitiateJobInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if s.JobParameters != nil { if err := s.JobParameters.Validate(); err != nil { invalidParams.AddNested("JobParameters", err.(request.ErrInvalidParams)) @@ -5857,9 +5980,15 @@ func (s *InitiateMultipartUploadInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5964,9 +6093,15 @@ func (s *InitiateVaultLockInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6606,9 +6741,15 @@ func (s *ListJobsInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6735,9 +6876,15 @@ func (s *ListMultipartUploadsInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6857,12 +7004,21 @@ func (s *ListPartsInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.UploadId == nil { invalidParams.Add(request.NewErrParamRequired("UploadId")) } + if s.UploadId != nil && len(*s.UploadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UploadId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7013,6 +7169,9 @@ func (s *ListProvisionedCapacityInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7084,9 +7243,15 @@ func (s *ListTagsForVaultInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7171,6 +7336,9 @@ func (s *ListVaultsInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7401,6 +7569,9 @@ func (s *PurchaseProvisionedCapacityInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7475,9 +7646,15 @@ func (s *RemoveTagsFromVaultInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7711,6 +7888,9 @@ func (s *SetDataRetrievalPolicyInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7782,9 +7962,15 @@ func (s *SetVaultAccessPolicyInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7863,9 +8049,15 @@ func (s *SetVaultNotificationsInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7949,9 +8141,15 @@ func (s *UploadArchiveInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8104,12 +8302,21 @@ func (s *UploadMultipartPartInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.UploadId == nil { invalidParams.Add(request.NewErrParamRequired("UploadId")) } + if s.UploadId != nil && len(*s.UploadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UploadId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/greengrass/api.go b/service/greengrass/api.go index 84249ae40b8..b8a34efdba7 100644 --- a/service/greengrass/api.go +++ b/service/greengrass/api.go @@ -6951,6 +6951,9 @@ func (s *AssociateRoleToGroupInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7556,6 +7559,9 @@ func (s *CreateConnectorDefinitionVersionInput) Validate() error { if s.ConnectorDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("ConnectorDefinitionId")) } + if s.ConnectorDefinitionId != nil && len(*s.ConnectorDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConnectorDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7763,6 +7769,9 @@ func (s *CreateCoreDefinitionVersionInput) Validate() error { if s.CoreDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("CoreDefinitionId")) } + if s.CoreDefinitionId != nil && len(*s.CoreDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CoreDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7870,6 +7879,9 @@ func (s *CreateDeploymentInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8075,6 +8087,9 @@ func (s *CreateDeviceDefinitionVersionInput) Validate() error { if s.DeviceDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceDefinitionId")) } + if s.DeviceDefinitionId != nil && len(*s.DeviceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8285,6 +8300,9 @@ func (s *CreateFunctionDefinitionVersionInput) Validate() error { if s.FunctionDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionDefinitionId")) } + if s.FunctionDefinitionId != nil && len(*s.FunctionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8387,6 +8405,9 @@ func (s *CreateGroupCertificateAuthorityInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8577,6 +8598,9 @@ func (s *CreateGroupVersionInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8820,6 +8844,9 @@ func (s *CreateLoggerDefinitionVersionInput) Validate() error { if s.LoggerDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("LoggerDefinitionId")) } + if s.LoggerDefinitionId != nil && len(*s.LoggerDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LoggerDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9027,6 +9054,9 @@ func (s *CreateResourceDefinitionVersionInput) Validate() error { if s.ResourceDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceDefinitionId")) } + if s.ResourceDefinitionId != nil && len(*s.ResourceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9346,6 +9376,9 @@ func (s *CreateSubscriptionDefinitionVersionInput) Validate() error { if s.SubscriptionDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("SubscriptionDefinitionId")) } + if s.SubscriptionDefinitionId != nil && len(*s.SubscriptionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SubscriptionDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9518,6 +9551,9 @@ func (s *DeleteConnectorDefinitionInput) Validate() error { if s.ConnectorDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("ConnectorDefinitionId")) } + if s.ConnectorDefinitionId != nil && len(*s.ConnectorDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConnectorDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9568,6 +9604,9 @@ func (s *DeleteCoreDefinitionInput) Validate() error { if s.CoreDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("CoreDefinitionId")) } + if s.CoreDefinitionId != nil && len(*s.CoreDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CoreDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9618,6 +9657,9 @@ func (s *DeleteDeviceDefinitionInput) Validate() error { if s.DeviceDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceDefinitionId")) } + if s.DeviceDefinitionId != nil && len(*s.DeviceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9668,6 +9710,9 @@ func (s *DeleteFunctionDefinitionInput) Validate() error { if s.FunctionDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionDefinitionId")) } + if s.FunctionDefinitionId != nil && len(*s.FunctionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9718,6 +9763,9 @@ func (s *DeleteGroupInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9768,6 +9816,9 @@ func (s *DeleteLoggerDefinitionInput) Validate() error { if s.LoggerDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("LoggerDefinitionId")) } + if s.LoggerDefinitionId != nil && len(*s.LoggerDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LoggerDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9818,6 +9869,9 @@ func (s *DeleteResourceDefinitionInput) Validate() error { if s.ResourceDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceDefinitionId")) } + if s.ResourceDefinitionId != nil && len(*s.ResourceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9868,6 +9922,9 @@ func (s *DeleteSubscriptionDefinitionInput) Validate() error { if s.SubscriptionDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("SubscriptionDefinitionId")) } + if s.SubscriptionDefinitionId != nil && len(*s.SubscriptionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SubscriptionDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10056,6 +10113,9 @@ func (s *DisassociateRoleFromGroupInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10543,6 +10603,9 @@ func (s *GetAssociatedRoleInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10611,6 +10674,9 @@ func (s *GetBulkDeploymentStatusInput) Validate() error { if s.BulkDeploymentId == nil { invalidParams.Add(request.NewErrParamRequired("BulkDeploymentId")) } + if s.BulkDeploymentId != nil && len(*s.BulkDeploymentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BulkDeploymentId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10707,6 +10773,9 @@ func (s *GetConnectivityInfoInput) Validate() error { if s.ThingName == nil { invalidParams.Add(request.NewErrParamRequired("ThingName")) } + if s.ThingName != nil && len(*s.ThingName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ThingName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10776,6 +10845,9 @@ func (s *GetConnectorDefinitionInput) Validate() error { if s.ConnectorDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("ConnectorDefinitionId")) } + if s.ConnectorDefinitionId != nil && len(*s.ConnectorDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConnectorDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10887,9 +10959,15 @@ func (s *GetConnectorDefinitionVersionInput) Validate() error { if s.ConnectorDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("ConnectorDefinitionId")) } + if s.ConnectorDefinitionId != nil && len(*s.ConnectorDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConnectorDefinitionId", 1)) + } if s.ConnectorDefinitionVersionId == nil { invalidParams.Add(request.NewErrParamRequired("ConnectorDefinitionVersionId")) } + if s.ConnectorDefinitionVersionId != nil && len(*s.ConnectorDefinitionVersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConnectorDefinitionVersionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11009,6 +11087,9 @@ func (s *GetCoreDefinitionInput) Validate() error { if s.CoreDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("CoreDefinitionId")) } + if s.CoreDefinitionId != nil && len(*s.CoreDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CoreDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11118,9 +11199,15 @@ func (s *GetCoreDefinitionVersionInput) Validate() error { if s.CoreDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("CoreDefinitionId")) } + if s.CoreDefinitionId != nil && len(*s.CoreDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CoreDefinitionId", 1)) + } if s.CoreDefinitionVersionId == nil { invalidParams.Add(request.NewErrParamRequired("CoreDefinitionVersionId")) } + if s.CoreDefinitionVersionId != nil && len(*s.CoreDefinitionVersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CoreDefinitionVersionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11236,9 +11323,15 @@ func (s *GetDeploymentStatusInput) Validate() error { if s.DeploymentId == nil { invalidParams.Add(request.NewErrParamRequired("DeploymentId")) } + if s.DeploymentId != nil && len(*s.DeploymentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeploymentId", 1)) + } if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11343,6 +11436,9 @@ func (s *GetDeviceDefinitionInput) Validate() error { if s.DeviceDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceDefinitionId")) } + if s.DeviceDefinitionId != nil && len(*s.DeviceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11454,9 +11550,15 @@ func (s *GetDeviceDefinitionVersionInput) Validate() error { if s.DeviceDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceDefinitionId")) } + if s.DeviceDefinitionId != nil && len(*s.DeviceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceDefinitionId", 1)) + } if s.DeviceDefinitionVersionId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceDefinitionVersionId")) } + if s.DeviceDefinitionVersionId != nil && len(*s.DeviceDefinitionVersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceDefinitionVersionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11575,6 +11677,9 @@ func (s *GetFunctionDefinitionInput) Validate() error { if s.FunctionDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionDefinitionId")) } + if s.FunctionDefinitionId != nil && len(*s.FunctionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11686,9 +11791,15 @@ func (s *GetFunctionDefinitionVersionInput) Validate() error { if s.FunctionDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionDefinitionId")) } + if s.FunctionDefinitionId != nil && len(*s.FunctionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionDefinitionId", 1)) + } if s.FunctionDefinitionVersionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionDefinitionVersionId")) } + if s.FunctionDefinitionVersionId != nil && len(*s.FunctionDefinitionVersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionDefinitionVersionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11811,9 +11922,15 @@ func (s *GetGroupCertificateAuthorityInput) Validate() error { if s.CertificateAuthorityId == nil { invalidParams.Add(request.NewErrParamRequired("CertificateAuthorityId")) } + if s.CertificateAuthorityId != nil && len(*s.CertificateAuthorityId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CertificateAuthorityId", 1)) + } if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11898,6 +12015,9 @@ func (s *GetGroupCertificateConfigurationInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11972,6 +12092,9 @@ func (s *GetGroupInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12081,9 +12204,15 @@ func (s *GetGroupVersionInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if s.GroupVersionId == nil { invalidParams.Add(request.NewErrParamRequired("GroupVersionId")) } + if s.GroupVersionId != nil && len(*s.GroupVersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupVersionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12186,6 +12315,9 @@ func (s *GetLoggerDefinitionInput) Validate() error { if s.LoggerDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("LoggerDefinitionId")) } + if s.LoggerDefinitionId != nil && len(*s.LoggerDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LoggerDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12297,9 +12429,15 @@ func (s *GetLoggerDefinitionVersionInput) Validate() error { if s.LoggerDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("LoggerDefinitionId")) } + if s.LoggerDefinitionId != nil && len(*s.LoggerDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LoggerDefinitionId", 1)) + } if s.LoggerDefinitionVersionId == nil { invalidParams.Add(request.NewErrParamRequired("LoggerDefinitionVersionId")) } + if s.LoggerDefinitionVersionId != nil && len(*s.LoggerDefinitionVersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LoggerDefinitionVersionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12409,6 +12547,9 @@ func (s *GetResourceDefinitionInput) Validate() error { if s.ResourceDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceDefinitionId")) } + if s.ResourceDefinitionId != nil && len(*s.ResourceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12518,9 +12659,15 @@ func (s *GetResourceDefinitionVersionInput) Validate() error { if s.ResourceDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceDefinitionId")) } + if s.ResourceDefinitionId != nil && len(*s.ResourceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceDefinitionId", 1)) + } if s.ResourceDefinitionVersionId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceDefinitionVersionId")) } + if s.ResourceDefinitionVersionId != nil && len(*s.ResourceDefinitionVersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceDefinitionVersionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12670,6 +12817,9 @@ func (s *GetSubscriptionDefinitionInput) Validate() error { if s.SubscriptionDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("SubscriptionDefinitionId")) } + if s.SubscriptionDefinitionId != nil && len(*s.SubscriptionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SubscriptionDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12781,9 +12931,15 @@ func (s *GetSubscriptionDefinitionVersionInput) Validate() error { if s.SubscriptionDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("SubscriptionDefinitionId")) } + if s.SubscriptionDefinitionId != nil && len(*s.SubscriptionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SubscriptionDefinitionId", 1)) + } if s.SubscriptionDefinitionVersionId == nil { invalidParams.Add(request.NewErrParamRequired("SubscriptionDefinitionVersionId")) } + if s.SubscriptionDefinitionVersionId != nil && len(*s.SubscriptionDefinitionVersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SubscriptionDefinitionVersionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13132,6 +13288,9 @@ func (s *ListBulkDeploymentDetailedReportsInput) Validate() error { if s.BulkDeploymentId == nil { invalidParams.Add(request.NewErrParamRequired("BulkDeploymentId")) } + if s.BulkDeploymentId != nil && len(*s.BulkDeploymentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BulkDeploymentId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13280,6 +13439,9 @@ func (s *ListConnectorDefinitionVersionsInput) Validate() error { if s.ConnectorDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("ConnectorDefinitionId")) } + if s.ConnectorDefinitionId != nil && len(*s.ConnectorDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConnectorDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13422,6 +13584,9 @@ func (s *ListCoreDefinitionVersionsInput) Validate() error { if s.CoreDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("CoreDefinitionId")) } + if s.CoreDefinitionId != nil && len(*s.CoreDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CoreDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13564,6 +13729,9 @@ func (s *ListDeploymentsInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13649,6 +13817,9 @@ func (s *ListDeviceDefinitionVersionsInput) Validate() error { if s.DeviceDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceDefinitionId")) } + if s.DeviceDefinitionId != nil && len(*s.DeviceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13791,6 +13962,9 @@ func (s *ListFunctionDefinitionVersionsInput) Validate() error { if s.FunctionDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionDefinitionId")) } + if s.FunctionDefinitionId != nil && len(*s.FunctionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13929,6 +14103,9 @@ func (s *ListGroupCertificateAuthoritiesInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13992,6 +14169,9 @@ func (s *ListGroupVersionsInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14137,6 +14317,9 @@ func (s *ListLoggerDefinitionVersionsInput) Validate() error { if s.LoggerDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("LoggerDefinitionId")) } + if s.LoggerDefinitionId != nil && len(*s.LoggerDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LoggerDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14279,6 +14462,9 @@ func (s *ListResourceDefinitionVersionsInput) Validate() error { if s.ResourceDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceDefinitionId")) } + if s.ResourceDefinitionId != nil && len(*s.ResourceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14421,6 +14607,9 @@ func (s *ListSubscriptionDefinitionVersionsInput) Validate() error { if s.SubscriptionDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("SubscriptionDefinitionId")) } + if s.SubscriptionDefinitionId != nil && len(*s.SubscriptionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SubscriptionDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14730,6 +14919,9 @@ func (s *ResetDeploymentsInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15167,6 +15359,9 @@ func (s *StopBulkDeploymentInput) Validate() error { if s.BulkDeploymentId == nil { invalidParams.Add(request.NewErrParamRequired("BulkDeploymentId")) } + if s.BulkDeploymentId != nil && len(*s.BulkDeploymentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BulkDeploymentId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15300,6 +15495,9 @@ func (s *UpdateConnectivityInfoInput) Validate() error { if s.ThingName == nil { invalidParams.Add(request.NewErrParamRequired("ThingName")) } + if s.ThingName != nil && len(*s.ThingName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ThingName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15376,6 +15574,9 @@ func (s *UpdateConnectorDefinitionInput) Validate() error { if s.ConnectorDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("ConnectorDefinitionId")) } + if s.ConnectorDefinitionId != nil && len(*s.ConnectorDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConnectorDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15434,6 +15635,9 @@ func (s *UpdateCoreDefinitionInput) Validate() error { if s.CoreDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("CoreDefinitionId")) } + if s.CoreDefinitionId != nil && len(*s.CoreDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CoreDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15492,6 +15696,9 @@ func (s *UpdateDeviceDefinitionInput) Validate() error { if s.DeviceDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceDefinitionId")) } + if s.DeviceDefinitionId != nil && len(*s.DeviceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15550,6 +15757,9 @@ func (s *UpdateFunctionDefinitionInput) Validate() error { if s.FunctionDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionDefinitionId")) } + if s.FunctionDefinitionId != nil && len(*s.FunctionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15609,6 +15819,9 @@ func (s *UpdateGroupCertificateConfigurationInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15691,6 +15904,9 @@ func (s *UpdateGroupInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15749,6 +15965,9 @@ func (s *UpdateLoggerDefinitionInput) Validate() error { if s.LoggerDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("LoggerDefinitionId")) } + if s.LoggerDefinitionId != nil && len(*s.LoggerDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LoggerDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15807,6 +16026,9 @@ func (s *UpdateResourceDefinitionInput) Validate() error { if s.ResourceDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceDefinitionId")) } + if s.ResourceDefinitionId != nil && len(*s.ResourceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15865,6 +16087,9 @@ func (s *UpdateSubscriptionDefinitionInput) Validate() error { if s.SubscriptionDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("SubscriptionDefinitionId")) } + if s.SubscriptionDefinitionId != nil && len(*s.SubscriptionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SubscriptionDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/guardduty/api.go b/service/guardduty/api.go index 88975389ba8..e3d70da5edc 100644 --- a/service/guardduty/api.go +++ b/service/guardduty/api.go @@ -3906,6 +3906,9 @@ func (s *AcceptInvitationInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.InvitationId == nil { invalidParams.Add(request.NewErrParamRequired("InvitationId")) } @@ -4145,6 +4148,9 @@ func (s *ArchiveFindingsInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.FindingIds == nil { invalidParams.Add(request.NewErrParamRequired("FindingIds")) } @@ -4503,6 +4509,9 @@ func (s *CreateFilterInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.FindingCriteria == nil { invalidParams.Add(request.NewErrParamRequired("FindingCriteria")) } @@ -4635,6 +4644,9 @@ func (s *CreateIPSetInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.Format == nil { invalidParams.Add(request.NewErrParamRequired("Format")) } @@ -4744,6 +4756,9 @@ func (s *CreateMembersInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.AccountDetails != nil { for i, v := range s.AccountDetails { if v == nil { @@ -4825,6 +4840,9 @@ func (s *CreateSampleFindingsInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4910,6 +4928,9 @@ func (s *CreateThreatIntelSetInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.Format == nil { invalidParams.Add(request.NewErrParamRequired("Format")) } @@ -5074,6 +5095,9 @@ func (s *DeleteDetectorInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5127,9 +5151,15 @@ func (s *DeleteFilterInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.FilterName == nil { invalidParams.Add(request.NewErrParamRequired("FilterName")) } + if s.FilterName != nil && len(*s.FilterName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FilterName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5189,9 +5219,15 @@ func (s *DeleteIPSetInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.IpSetId == nil { invalidParams.Add(request.NewErrParamRequired("IpSetId")) } + if s.IpSetId != nil && len(*s.IpSetId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IpSetId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5322,6 +5358,9 @@ func (s *DeleteMembersInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5392,9 +5431,15 @@ func (s *DeleteThreatIntelSetInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.ThreatIntelSetId == nil { invalidParams.Add(request.NewErrParamRequired("ThreatIntelSetId")) } + if s.ThreatIntelSetId != nil && len(*s.ThreatIntelSetId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ThreatIntelSetId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5451,6 +5496,9 @@ func (s *DisassociateFromMasterAccountInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5511,6 +5559,9 @@ func (s *DisassociateMembersInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5872,6 +5923,9 @@ func (s *GetDetectorInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5971,9 +6025,15 @@ func (s *GetFilterInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.FilterName == nil { invalidParams.Add(request.NewErrParamRequired("FilterName")) } + if s.FilterName != nil && len(*s.FilterName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FilterName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6087,6 +6147,9 @@ func (s *GetFindingsInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.FindingIds == nil { invalidParams.Add(request.NewErrParamRequired("FindingIds")) } @@ -6171,6 +6234,9 @@ func (s *GetFindingsStatisticsInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.FindingStatisticTypes == nil { invalidParams.Add(request.NewErrParamRequired("FindingStatisticTypes")) } @@ -6249,9 +6315,15 @@ func (s *GetIPSetInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.IpSetId == nil { invalidParams.Add(request.NewErrParamRequired("IpSetId")) } + if s.IpSetId != nil && len(*s.IpSetId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IpSetId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6385,6 +6457,9 @@ func (s *GetMasterAccountInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6454,6 +6529,9 @@ func (s *GetMembersInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6533,9 +6611,15 @@ func (s *GetThreatIntelSetInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.ThreatIntelSetId == nil { invalidParams.Add(request.NewErrParamRequired("ThreatIntelSetId")) } + if s.ThreatIntelSetId != nil && len(*s.ThreatIntelSetId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ThreatIntelSetId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6856,6 +6940,9 @@ func (s *InviteMembersInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7022,6 +7109,9 @@ func (s *ListFiltersInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -7126,6 +7216,9 @@ func (s *ListFindingsInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -7231,6 +7324,9 @@ func (s *ListIPSetsInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -7407,6 +7503,9 @@ func (s *ListMembersInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -7506,6 +7605,9 @@ func (s *ListThreatIntelSetsInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -8435,6 +8537,9 @@ func (s *StartMonitoringMembersInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8512,6 +8617,9 @@ func (s *StopMonitoringMembersInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8618,6 +8726,9 @@ func (s *UnarchiveFindingsInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.FindingIds == nil { invalidParams.Add(request.NewErrParamRequired("FindingIds")) } @@ -8723,6 +8834,9 @@ func (s *UpdateDetectorInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8803,9 +8917,15 @@ func (s *UpdateFilterInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.FilterName == nil { invalidParams.Add(request.NewErrParamRequired("FilterName")) } + if s.FilterName != nil && len(*s.FilterName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FilterName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8910,6 +9030,9 @@ func (s *UpdateFindingsFeedbackInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.Feedback == nil { invalidParams.Add(request.NewErrParamRequired("Feedback")) } @@ -8997,9 +9120,15 @@ func (s *UpdateIPSetInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.IpSetId == nil { invalidParams.Add(request.NewErrParamRequired("IpSetId")) } + if s.IpSetId != nil && len(*s.IpSetId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IpSetId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9089,9 +9218,15 @@ func (s *UpdateThreatIntelSetInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.ThreatIntelSetId == nil { invalidParams.Add(request.NewErrParamRequired("ThreatIntelSetId")) } + if s.ThreatIntelSetId != nil && len(*s.ThreatIntelSetId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ThreatIntelSetId", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/iam/examples_test.go b/service/iam/examples_test.go index e2898a1a9f8..66c36f93edd 100644 --- a/service/iam/examples_test.go +++ b/service/iam/examples_test.go @@ -520,8 +520,8 @@ func ExampleIAM_CreateRole_shared00() { svc := iam.New(session.New()) input := &iam.CreateRoleInput{ AssumeRolePolicyDocument: aws.String(""), - Path: aws.String("/"), - RoleName: aws.String("Test-Role"), + Path: aws.String("/"), + RoleName: aws.String("Test-Role"), } result, err := svc.CreateRole(input) diff --git a/service/iot/api.go b/service/iot/api.go index 18e9bc3e75d..5761b49d723 100644 --- a/service/iot/api.go +++ b/service/iot/api.go @@ -20931,6 +20931,9 @@ func (s *DeletePolicyVersionInput) Validate() error { if s.PolicyVersionId == nil { invalidParams.Add(request.NewErrParamRequired("PolicyVersionId")) } + if s.PolicyVersionId != nil && len(*s.PolicyVersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PolicyVersionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23207,6 +23210,9 @@ func (s *DescribeThingRegistrationTaskInput) Validate() error { if s.TaskId == nil { invalidParams.Add(request.NewErrParamRequired("TaskId")) } + if s.TaskId != nil && len(*s.TaskId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TaskId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -24943,6 +24949,9 @@ func (s *GetPolicyVersionInput) Validate() error { if s.PolicyVersionId == nil { invalidParams.Add(request.NewErrParamRequired("PolicyVersionId")) } + if s.PolicyVersionId != nil && len(*s.PolicyVersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PolicyVersionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -26363,6 +26372,9 @@ func (s *ListAttachedPoliciesInput) Validate() error { if s.Target == nil { invalidParams.Add(request.NewErrParamRequired("Target")) } + if s.Target != nil && len(*s.Target) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Target", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -29223,6 +29235,9 @@ func (s *ListThingRegistrationTaskReportsInput) Validate() error { if s.TaskId == nil { invalidParams.Add(request.NewErrParamRequired("TaskId")) } + if s.TaskId != nil && len(*s.TaskId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TaskId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -32481,6 +32496,9 @@ func (s *SetDefaultPolicyVersionInput) Validate() error { if s.PolicyVersionId == nil { invalidParams.Add(request.NewErrParamRequired("PolicyVersionId")) } + if s.PolicyVersionId != nil && len(*s.PolicyVersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PolicyVersionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -33194,6 +33212,9 @@ func (s *StopThingRegistrationTaskInput) Validate() error { if s.TaskId == nil { invalidParams.Add(request.NewErrParamRequired("TaskId")) } + if s.TaskId != nil && len(*s.TaskId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TaskId", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/iot1clickdevicesservice/api.go b/service/iot1clickdevicesservice/api.go index bbe1592ec8d..2eee73e24ec 100644 --- a/service/iot1clickdevicesservice/api.go +++ b/service/iot1clickdevicesservice/api.go @@ -894,6 +894,9 @@ func (s *ClaimDevicesByClaimCodeInput) Validate() error { if s.ClaimCode == nil { invalidParams.Add(request.NewErrParamRequired("ClaimCode")) } + if s.ClaimCode != nil && len(*s.ClaimCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClaimCode", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -963,6 +966,9 @@ func (s *DescribeDeviceInput) Validate() error { if s.DeviceId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceId")) } + if s.DeviceId != nil && len(*s.DeviceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1188,6 +1194,9 @@ func (s *FinalizeDeviceClaimInput) Validate() error { if s.DeviceId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceId")) } + if s.DeviceId != nil && len(*s.DeviceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1246,6 +1255,9 @@ func (s *GetDeviceMethodsInput) Validate() error { if s.DeviceId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceId")) } + if s.DeviceId != nil && len(*s.DeviceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1305,6 +1317,9 @@ func (s *InitiateDeviceClaimInput) Validate() error { if s.DeviceId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceId")) } + if s.DeviceId != nil && len(*s.DeviceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1369,6 +1384,9 @@ func (s *InvokeDeviceMethodInput) Validate() error { if s.DeviceId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceId")) } + if s.DeviceId != nil && len(*s.DeviceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1450,6 +1468,9 @@ func (s *ListDeviceEventsInput) Validate() error { if s.DeviceId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceId")) } + if s.DeviceId != nil && len(*s.DeviceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1)) + } if s.FromTimeStamp == nil { invalidParams.Add(request.NewErrParamRequired("FromTimeStamp")) } @@ -1632,6 +1653,9 @@ func (s *UnclaimDeviceInput) Validate() error { if s.DeviceId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceId")) } + if s.DeviceId != nil && len(*s.DeviceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1693,6 +1717,9 @@ func (s *UpdateDeviceStateInput) Validate() error { if s.DeviceId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceId")) } + if s.DeviceId != nil && len(*s.DeviceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/iotanalytics/api.go b/service/iotanalytics/api.go index 6cc21004b72..ff3f0368e3f 100644 --- a/service/iotanalytics/api.go +++ b/service/iotanalytics/api.go @@ -3677,6 +3677,9 @@ func (s *CancelPipelineReprocessingInput) Validate() error { if s.ReprocessingId == nil { invalidParams.Add(request.NewErrParamRequired("ReprocessingId")) } + if s.ReprocessingId != nil && len(*s.ReprocessingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ReprocessingId", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/iotdataplane/api.go b/service/iotdataplane/api.go index 7db5148a3a8..1d6d0d562c5 100644 --- a/service/iotdataplane/api.go +++ b/service/iotdataplane/api.go @@ -569,6 +569,9 @@ func (s *PublishInput) Validate() error { if s.Topic == nil { invalidParams.Add(request.NewErrParamRequired("Topic")) } + if s.Topic != nil && len(*s.Topic) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Topic", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/iotjobsdataplane/api.go b/service/iotjobsdataplane/api.go index 1c2d1fde26c..20caf56ac8a 100644 --- a/service/iotjobsdataplane/api.go +++ b/service/iotjobsdataplane/api.go @@ -428,6 +428,9 @@ func (s *DescribeJobExecutionInput) Validate() error { if s.JobId == nil { invalidParams.Add(request.NewErrParamRequired("JobId")) } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } if s.ThingName == nil { invalidParams.Add(request.NewErrParamRequired("ThingName")) } diff --git a/service/kafka/api.go b/service/kafka/api.go index fb0797238da..c60e1698bc8 100644 --- a/service/kafka/api.go +++ b/service/kafka/api.go @@ -1055,6 +1055,9 @@ func (s *DeleteClusterInput) Validate() error { if s.ClusterArn == nil { invalidParams.Add(request.NewErrParamRequired("ClusterArn")) } + if s.ClusterArn != nil && len(*s.ClusterArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClusterArn", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1130,6 +1133,9 @@ func (s *DescribeClusterInput) Validate() error { if s.ClusterArn == nil { invalidParams.Add(request.NewErrParamRequired("ClusterArn")) } + if s.ClusterArn != nil && len(*s.ClusterArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClusterArn", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1307,6 +1313,9 @@ func (s *GetBootstrapBrokersInput) Validate() error { if s.ClusterArn == nil { invalidParams.Add(request.NewErrParamRequired("ClusterArn")) } + if s.ClusterArn != nil && len(*s.ClusterArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClusterArn", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1458,6 +1467,9 @@ func (s *ListNodesInput) Validate() error { if s.ClusterArn == nil { invalidParams.Add(request.NewErrParamRequired("ClusterArn")) } + if s.ClusterArn != nil && len(*s.ClusterArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClusterArn", 1)) + } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } diff --git a/service/lambda/api.go b/service/lambda/api.go index bea06dce09f..e43890b890b 100644 --- a/service/lambda/api.go +++ b/service/lambda/api.go @@ -5049,6 +5049,9 @@ func (s *DeleteEventSourceMappingInput) Validate() error { if s.UUID == nil { invalidParams.Add(request.NewErrParamRequired("UUID")) } + if s.UUID != nil && len(*s.UUID) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UUID", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5901,6 +5904,9 @@ func (s *GetEventSourceMappingInput) Validate() error { if s.UUID == nil { invalidParams.Add(request.NewErrParamRequired("UUID")) } + if s.UUID != nil && len(*s.UUID) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UUID", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7537,6 +7543,9 @@ func (s *ListTagsInput) Validate() error { if s.Resource == nil { invalidParams.Add(request.NewErrParamRequired("Resource")) } + if s.Resource != nil && len(*s.Resource) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Resource", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8281,6 +8290,9 @@ func (s *TagResourceInput) Validate() error { if s.Resource == nil { invalidParams.Add(request.NewErrParamRequired("Resource")) } + if s.Resource != nil && len(*s.Resource) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Resource", 1)) + } if s.Tags == nil { invalidParams.Add(request.NewErrParamRequired("Tags")) } @@ -8399,6 +8411,9 @@ func (s *UntagResourceInput) Validate() error { if s.Resource == nil { invalidParams.Add(request.NewErrParamRequired("Resource")) } + if s.Resource != nil && len(*s.Resource) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Resource", 1)) + } if s.TagKeys == nil { invalidParams.Add(request.NewErrParamRequired("TagKeys")) } @@ -8609,6 +8624,9 @@ func (s *UpdateEventSourceMappingInput) Validate() error { if s.UUID == nil { invalidParams.Add(request.NewErrParamRequired("UUID")) } + if s.UUID != nil && len(*s.UUID) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UUID", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/lexmodelbuildingservice/api.go b/service/lexmodelbuildingservice/api.go index fd12663b8e0..de511f752bc 100644 --- a/service/lexmodelbuildingservice/api.go +++ b/service/lexmodelbuildingservice/api.go @@ -6661,6 +6661,9 @@ func (s *GetBotInput) Validate() error { if s.VersionOrAlias == nil { invalidParams.Add(request.NewErrParamRequired("VersionOrAlias")) } + if s.VersionOrAlias != nil && len(*s.VersionOrAlias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VersionOrAlias", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7085,6 +7088,9 @@ func (s *GetBuiltinIntentInput) Validate() error { if s.Signature == nil { invalidParams.Add(request.NewErrParamRequired("Signature")) } + if s.Signature != nil && len(*s.Signature) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Signature", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7545,6 +7551,9 @@ func (s *GetImportInput) Validate() error { if s.ImportId == nil { invalidParams.Add(request.NewErrParamRequired("ImportId")) } + if s.ImportId != nil && len(*s.ImportId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ImportId", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/lexruntimeservice/api.go b/service/lexruntimeservice/api.go index bbb0d754550..a2152f675ad 100644 --- a/service/lexruntimeservice/api.go +++ b/service/lexruntimeservice/api.go @@ -591,9 +591,15 @@ func (s *PostContentInput) Validate() error { if s.BotAlias == nil { invalidParams.Add(request.NewErrParamRequired("BotAlias")) } + if s.BotAlias != nil && len(*s.BotAlias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotAlias", 1)) + } if s.BotName == nil { invalidParams.Add(request.NewErrParamRequired("BotName")) } + if s.BotName != nil && len(*s.BotName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotName", 1)) + } if s.ContentType == nil { invalidParams.Add(request.NewErrParamRequired("ContentType")) } @@ -929,9 +935,15 @@ func (s *PostTextInput) Validate() error { if s.BotAlias == nil { invalidParams.Add(request.NewErrParamRequired("BotAlias")) } + if s.BotAlias != nil && len(*s.BotAlias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotAlias", 1)) + } if s.BotName == nil { invalidParams.Add(request.NewErrParamRequired("BotName")) } + if s.BotName != nil && len(*s.BotName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotName", 1)) + } if s.InputText == nil { invalidParams.Add(request.NewErrParamRequired("InputText")) } diff --git a/service/mediaconnect/api.go b/service/mediaconnect/api.go index 4792e313096..bf26d3ccdb7 100644 --- a/service/mediaconnect/api.go +++ b/service/mediaconnect/api.go @@ -1581,6 +1581,9 @@ func (s *AddFlowOutputsInput) Validate() error { if s.FlowArn == nil { invalidParams.Add(request.NewErrParamRequired("FlowArn")) } + if s.FlowArn != nil && len(*s.FlowArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1)) + } if s.Outputs == nil { invalidParams.Add(request.NewErrParamRequired("Outputs")) } @@ -1930,6 +1933,9 @@ func (s *DeleteFlowInput) Validate() error { if s.FlowArn == nil { invalidParams.Add(request.NewErrParamRequired("FlowArn")) } + if s.FlowArn != nil && len(*s.FlowArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1999,6 +2005,9 @@ func (s *DescribeFlowInput) Validate() error { if s.FlowArn == nil { invalidParams.Add(request.NewErrParamRequired("FlowArn")) } + if s.FlowArn != nil && len(*s.FlowArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2416,6 +2425,9 @@ func (s *GrantFlowEntitlementsInput) Validate() error { if s.FlowArn == nil { invalidParams.Add(request.NewErrParamRequired("FlowArn")) } + if s.FlowArn != nil && len(*s.FlowArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1)) + } if s.Entitlements != nil { for i, v := range s.Entitlements { if v == nil { @@ -2918,9 +2930,15 @@ func (s *RemoveFlowOutputInput) Validate() error { if s.FlowArn == nil { invalidParams.Add(request.NewErrParamRequired("FlowArn")) } + if s.FlowArn != nil && len(*s.FlowArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1)) + } if s.OutputArn == nil { invalidParams.Add(request.NewErrParamRequired("OutputArn")) } + if s.OutputArn != nil && len(*s.OutputArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OutputArn", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3000,9 +3018,15 @@ func (s *RevokeFlowEntitlementInput) Validate() error { if s.EntitlementArn == nil { invalidParams.Add(request.NewErrParamRequired("EntitlementArn")) } + if s.EntitlementArn != nil && len(*s.EntitlementArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EntitlementArn", 1)) + } if s.FlowArn == nil { invalidParams.Add(request.NewErrParamRequired("FlowArn")) } + if s.FlowArn != nil && len(*s.FlowArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3311,6 +3335,9 @@ func (s *StartFlowInput) Validate() error { if s.FlowArn == nil { invalidParams.Add(request.NewErrParamRequired("FlowArn")) } + if s.FlowArn != nil && len(*s.FlowArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3380,6 +3407,9 @@ func (s *StopFlowInput) Validate() error { if s.FlowArn == nil { invalidParams.Add(request.NewErrParamRequired("FlowArn")) } + if s.FlowArn != nil && len(*s.FlowArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3585,9 +3615,15 @@ func (s *UpdateFlowEntitlementInput) Validate() error { if s.EntitlementArn == nil { invalidParams.Add(request.NewErrParamRequired("EntitlementArn")) } + if s.EntitlementArn != nil && len(*s.EntitlementArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EntitlementArn", 1)) + } if s.FlowArn == nil { invalidParams.Add(request.NewErrParamRequired("FlowArn")) } + if s.FlowArn != nil && len(*s.FlowArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3713,9 +3749,15 @@ func (s *UpdateFlowOutputInput) Validate() error { if s.FlowArn == nil { invalidParams.Add(request.NewErrParamRequired("FlowArn")) } + if s.FlowArn != nil && len(*s.FlowArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1)) + } if s.OutputArn == nil { invalidParams.Add(request.NewErrParamRequired("OutputArn")) } + if s.OutputArn != nil && len(*s.OutputArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OutputArn", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3877,9 +3919,15 @@ func (s *UpdateFlowSourceInput) Validate() error { if s.FlowArn == nil { invalidParams.Add(request.NewErrParamRequired("FlowArn")) } + if s.FlowArn != nil && len(*s.FlowArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1)) + } if s.SourceArn == nil { invalidParams.Add(request.NewErrParamRequired("SourceArn")) } + if s.SourceArn != nil && len(*s.SourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SourceArn", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/mediaconvert/api.go b/service/mediaconvert/api.go index b3f1465ffa8..867f2914854 100644 --- a/service/mediaconvert/api.go +++ b/service/mediaconvert/api.go @@ -3767,6 +3767,9 @@ func (s *CancelJobInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5470,6 +5473,9 @@ func (s *DeleteJobTemplateInput) Validate() error { if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5525,6 +5531,9 @@ func (s *DeletePresetInput) Validate() error { if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5581,6 +5590,9 @@ func (s *DeleteQueueInput) Validate() error { if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6744,6 +6756,9 @@ func (s *GetJobInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6808,6 +6823,9 @@ func (s *GetJobTemplateInput) Validate() error { if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6873,6 +6891,9 @@ func (s *GetPresetInput) Validate() error { if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6937,6 +6958,9 @@ func (s *GetQueueInput) Validate() error { if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10565,6 +10589,9 @@ func (s *ListTagsForResourceInput) Validate() error { if s.Arn == nil { invalidParams.Add(request.NewErrParamRequired("Arn")) } + if s.Arn != nil && len(*s.Arn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14100,6 +14127,9 @@ func (s *UntagResourceInput) Validate() error { if s.Arn == nil { invalidParams.Add(request.NewErrParamRequired("Arn")) } + if s.Arn != nil && len(*s.Arn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14175,6 +14205,9 @@ func (s *UpdateJobTemplateInput) Validate() error { if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } if s.Settings != nil { if err := s.Settings.Validate(); err != nil { invalidParams.AddNested("Settings", err.(request.ErrInvalidParams)) @@ -14280,6 +14313,9 @@ func (s *UpdatePresetInput) Validate() error { if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } if s.Settings != nil { if err := s.Settings.Validate(); err != nil { invalidParams.AddNested("Settings", err.(request.ErrInvalidParams)) @@ -14384,6 +14420,9 @@ func (s *UpdateQueueInput) Validate() error { if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } if s.ReservationPlanSettings != nil { if err := s.ReservationPlanSettings.Validate(); err != nil { invalidParams.AddNested("ReservationPlanSettings", err.(request.ErrInvalidParams)) diff --git a/service/medialive/api.go b/service/medialive/api.go index 74ceda2e689..415bc1ecd6f 100644 --- a/service/medialive/api.go +++ b/service/medialive/api.go @@ -3893,6 +3893,9 @@ func (s *BatchUpdateScheduleInput) Validate() error { if s.ChannelId == nil { invalidParams.Add(request.NewErrParamRequired("ChannelId")) } + if s.ChannelId != nil && len(*s.ChannelId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ChannelId", 1)) + } if s.Creates != nil { if err := s.Creates.Validate(); err != nil { invalidParams.AddNested("Creates", err.(request.ErrInvalidParams)) @@ -5279,6 +5282,9 @@ func (s *DeleteChannelInput) Validate() error { if s.ChannelId == nil { invalidParams.Add(request.NewErrParamRequired("ChannelId")) } + if s.ChannelId != nil && len(*s.ChannelId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ChannelId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5426,6 +5432,9 @@ func (s *DeleteInputInput) Validate() error { if s.InputId == nil { invalidParams.Add(request.NewErrParamRequired("InputId")) } + if s.InputId != nil && len(*s.InputId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InputId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5476,6 +5485,9 @@ func (s *DeleteInputSecurityGroupInput) Validate() error { if s.InputSecurityGroupId == nil { invalidParams.Add(request.NewErrParamRequired("InputSecurityGroupId")) } + if s.InputSecurityGroupId != nil && len(*s.InputSecurityGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InputSecurityGroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5526,6 +5538,9 @@ func (s *DeleteReservationInput) Validate() error { if s.ReservationId == nil { invalidParams.Add(request.NewErrParamRequired("ReservationId")) } + if s.ReservationId != nil && len(*s.ReservationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ReservationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5716,6 +5731,9 @@ func (s *DescribeChannelInput) Validate() error { if s.ChannelId == nil { invalidParams.Add(request.NewErrParamRequired("ChannelId")) } + if s.ChannelId != nil && len(*s.ChannelId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ChannelId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5863,6 +5881,9 @@ func (s *DescribeInputInput) Validate() error { if s.InputId == nil { invalidParams.Add(request.NewErrParamRequired("InputId")) } + if s.InputId != nil && len(*s.InputId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InputId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5985,6 +6006,9 @@ func (s *DescribeInputSecurityGroupInput) Validate() error { if s.InputSecurityGroupId == nil { invalidParams.Add(request.NewErrParamRequired("InputSecurityGroupId")) } + if s.InputSecurityGroupId != nil && len(*s.InputSecurityGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InputSecurityGroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6075,6 +6099,9 @@ func (s *DescribeOfferingInput) Validate() error { if s.OfferingId == nil { invalidParams.Add(request.NewErrParamRequired("OfferingId")) } + if s.OfferingId != nil && len(*s.OfferingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OfferingId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6216,6 +6243,9 @@ func (s *DescribeReservationInput) Validate() error { if s.ReservationId == nil { invalidParams.Add(request.NewErrParamRequired("ReservationId")) } + if s.ReservationId != nil && len(*s.ReservationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ReservationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6410,6 +6440,9 @@ func (s *DescribeScheduleInput) Validate() error { if s.ChannelId == nil { invalidParams.Add(request.NewErrParamRequired("ChannelId")) } + if s.ChannelId != nil && len(*s.ChannelId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ChannelId", 1)) + } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -11990,6 +12023,9 @@ func (s *PurchaseOfferingInput) Validate() error { if s.OfferingId == nil { invalidParams.Add(request.NewErrParamRequired("OfferingId")) } + if s.OfferingId != nil && len(*s.OfferingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OfferingId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13577,6 +13613,9 @@ func (s *StartChannelInput) Validate() error { if s.ChannelId == nil { invalidParams.Add(request.NewErrParamRequired("ChannelId")) } + if s.ChannelId != nil && len(*s.ChannelId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ChannelId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13964,6 +14003,9 @@ func (s *StopChannelInput) Validate() error { if s.ChannelId == nil { invalidParams.Add(request.NewErrParamRequired("ChannelId")) } + if s.ChannelId != nil && len(*s.ChannelId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ChannelId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14414,6 +14456,9 @@ func (s *UpdateChannelInput) Validate() error { if s.ChannelId == nil { invalidParams.Add(request.NewErrParamRequired("ChannelId")) } + if s.ChannelId != nil && len(*s.ChannelId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ChannelId", 1)) + } if s.EncoderSettings != nil { if err := s.EncoderSettings.Validate(); err != nil { invalidParams.AddNested("EncoderSettings", err.(request.ErrInvalidParams)) @@ -14537,6 +14582,9 @@ func (s *UpdateInputInput) Validate() error { if s.InputId == nil { invalidParams.Add(request.NewErrParamRequired("InputId")) } + if s.InputId != nil && len(*s.InputId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InputId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14621,6 +14669,9 @@ func (s *UpdateInputSecurityGroupInput) Validate() error { if s.InputSecurityGroupId == nil { invalidParams.Add(request.NewErrParamRequired("InputSecurityGroupId")) } + if s.InputSecurityGroupId != nil && len(*s.InputSecurityGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InputSecurityGroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/mediapackage/api.go b/service/mediapackage/api.go index c36d0f0a7ba..d7abfafec40 100644 --- a/service/mediapackage/api.go +++ b/service/mediapackage/api.go @@ -1996,6 +1996,9 @@ func (s *DeleteChannelInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2046,6 +2049,9 @@ func (s *DeleteOriginEndpointInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2096,6 +2102,9 @@ func (s *DescribeChannelInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2179,6 +2188,9 @@ func (s *DescribeOriginEndpointInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3231,6 +3243,9 @@ func (s *RotateChannelCredentialsInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3318,9 +3333,15 @@ func (s *RotateIngestEndpointCredentialsInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if s.IngestEndpointId == nil { invalidParams.Add(request.NewErrParamRequired("IngestEndpointId")) } + if s.IngestEndpointId != nil && len(*s.IngestEndpointId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IngestEndpointId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3548,6 +3569,9 @@ func (s *UpdateChannelInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3659,6 +3683,9 @@ func (s *UpdateOriginEndpointInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if s.CmafPackage != nil { if err := s.CmafPackage.Validate(); err != nil { invalidParams.AddNested("CmafPackage", err.(request.ErrInvalidParams)) diff --git a/service/mediatailor/api.go b/service/mediatailor/api.go index 537cbc547c3..66b3be54227 100644 --- a/service/mediatailor/api.go +++ b/service/mediatailor/api.go @@ -403,6 +403,9 @@ func (s *DeletePlaybackConfigurationInput) Validate() error { if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -453,6 +456,9 @@ func (s *GetPlaybackConfigurationInput) Validate() error { if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/mobile/api.go b/service/mobile/api.go index b4c751a7234..123464829a6 100644 --- a/service/mobile/api.go +++ b/service/mobile/api.go @@ -1185,6 +1185,9 @@ func (s *DeleteProjectInput) Validate() error { if s.ProjectId == nil { invalidParams.Add(request.NewErrParamRequired("ProjectId")) } + if s.ProjectId != nil && len(*s.ProjectId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProjectId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1258,6 +1261,9 @@ func (s *DescribeBundleInput) Validate() error { if s.BundleId == nil { invalidParams.Add(request.NewErrParamRequired("BundleId")) } + if s.BundleId != nil && len(*s.BundleId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BundleId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1402,6 +1408,9 @@ func (s *ExportBundleInput) Validate() error { if s.BundleId == nil { invalidParams.Add(request.NewErrParamRequired("BundleId")) } + if s.BundleId != nil && len(*s.BundleId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BundleId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1481,6 +1490,9 @@ func (s *ExportProjectInput) Validate() error { if s.ProjectId == nil { invalidParams.Add(request.NewErrParamRequired("ProjectId")) } + if s.ProjectId != nil && len(*s.ProjectId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProjectId", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/mq/api.go b/service/mq/api.go index b92e1e8dfa5..8dfb6903d0c 100644 --- a/service/mq/api.go +++ b/service/mq/api.go @@ -2148,9 +2148,15 @@ func (s *CreateUserRequest) Validate() error { if s.BrokerId == nil { invalidParams.Add(request.NewErrParamRequired("BrokerId")) } + if s.BrokerId != nil && len(*s.BrokerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BrokerId", 1)) + } if s.Username == nil { invalidParams.Add(request.NewErrParamRequired("Username")) } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2211,6 +2217,9 @@ func (s *DeleteBrokerInput) Validate() error { if s.BrokerId == nil { invalidParams.Add(request.NewErrParamRequired("BrokerId")) } + if s.BrokerId != nil && len(*s.BrokerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BrokerId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2272,9 +2281,15 @@ func (s *DeleteUserInput) Validate() error { if s.BrokerId == nil { invalidParams.Add(request.NewErrParamRequired("BrokerId")) } + if s.BrokerId != nil && len(*s.BrokerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BrokerId", 1)) + } if s.Username == nil { invalidParams.Add(request.NewErrParamRequired("Username")) } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2331,6 +2346,9 @@ func (s *DescribeBrokerInput) Validate() error { if s.BrokerId == nil { invalidParams.Add(request.NewErrParamRequired("BrokerId")) } + if s.BrokerId != nil && len(*s.BrokerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BrokerId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2541,6 +2559,9 @@ func (s *DescribeConfigurationInput) Validate() error { if s.ConfigurationId == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationId")) } + if s.ConfigurationId != nil && len(*s.ConfigurationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2660,9 +2681,15 @@ func (s *DescribeConfigurationRevisionInput) Validate() error { if s.ConfigurationId == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationId")) } + if s.ConfigurationId != nil && len(*s.ConfigurationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationId", 1)) + } if s.ConfigurationRevision == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationRevision")) } + if s.ConfigurationRevision != nil && len(*s.ConfigurationRevision) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationRevision", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2754,9 +2781,15 @@ func (s *DescribeUserInput) Validate() error { if s.BrokerId == nil { invalidParams.Add(request.NewErrParamRequired("BrokerId")) } + if s.BrokerId != nil && len(*s.BrokerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BrokerId", 1)) + } if s.Username == nil { invalidParams.Add(request.NewErrParamRequired("Username")) } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2932,6 +2965,9 @@ func (s *ListConfigurationRevisionsInput) Validate() error { if s.ConfigurationId == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationId")) } + if s.ConfigurationId != nil && len(*s.ConfigurationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationId", 1)) + } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -3114,6 +3150,9 @@ func (s *ListUsersInput) Validate() error { if s.BrokerId == nil { invalidParams.Add(request.NewErrParamRequired("BrokerId")) } + if s.BrokerId != nil && len(*s.BrokerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BrokerId", 1)) + } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -3342,6 +3381,9 @@ func (s *RebootBrokerInput) Validate() error { if s.BrokerId == nil { invalidParams.Add(request.NewErrParamRequired("BrokerId")) } + if s.BrokerId != nil && len(*s.BrokerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BrokerId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3445,6 +3487,9 @@ func (s *UpdateBrokerRequest) Validate() error { if s.BrokerId == nil { invalidParams.Add(request.NewErrParamRequired("BrokerId")) } + if s.BrokerId != nil && len(*s.BrokerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BrokerId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3565,6 +3610,9 @@ func (s *UpdateConfigurationRequest) Validate() error { if s.ConfigurationId == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationId")) } + if s.ConfigurationId != nil && len(*s.ConfigurationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3699,9 +3747,15 @@ func (s *UpdateUserRequest) Validate() error { if s.BrokerId == nil { invalidParams.Add(request.NewErrParamRequired("BrokerId")) } + if s.BrokerId != nil && len(*s.BrokerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BrokerId", 1)) + } if s.Username == nil { invalidParams.Add(request.NewErrParamRequired("Username")) } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/pinpoint/api.go b/service/pinpoint/api.go index f4a8c811378..76152a5e386 100644 --- a/service/pinpoint/api.go +++ b/service/pinpoint/api.go @@ -9839,6 +9839,9 @@ func (s *CreateCampaignInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.WriteCampaignRequest == nil { invalidParams.Add(request.NewErrParamRequired("WriteCampaignRequest")) } @@ -9914,6 +9917,9 @@ func (s *CreateExportJobInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.ExportJobRequest == nil { invalidParams.Add(request.NewErrParamRequired("ExportJobRequest")) } @@ -9989,6 +9995,9 @@ func (s *CreateImportJobInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.ImportJobRequest == nil { invalidParams.Add(request.NewErrParamRequired("ImportJobRequest")) } @@ -10064,6 +10073,9 @@ func (s *CreateSegmentInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.WriteSegmentRequest == nil { invalidParams.Add(request.NewErrParamRequired("WriteSegmentRequest")) } @@ -10255,6 +10267,9 @@ func (s *DeleteAdmChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10316,6 +10331,9 @@ func (s *DeleteApnsChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10377,6 +10395,9 @@ func (s *DeleteApnsSandboxChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10438,6 +10459,9 @@ func (s *DeleteApnsVoipChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10499,6 +10523,9 @@ func (s *DeleteApnsVoipSandboxChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10560,6 +10587,9 @@ func (s *DeleteAppInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10621,6 +10651,9 @@ func (s *DeleteBaiduChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10685,9 +10718,15 @@ func (s *DeleteCampaignInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.CampaignId == nil { invalidParams.Add(request.NewErrParamRequired("CampaignId")) } + if s.CampaignId != nil && len(*s.CampaignId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CampaignId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10755,6 +10794,9 @@ func (s *DeleteEmailChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10819,9 +10861,15 @@ func (s *DeleteEndpointInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.EndpointId == nil { invalidParams.Add(request.NewErrParamRequired("EndpointId")) } + if s.EndpointId != nil && len(*s.EndpointId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EndpointId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10889,6 +10937,9 @@ func (s *DeleteEventStreamInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10950,6 +11001,9 @@ func (s *DeleteGcmChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11014,9 +11068,15 @@ func (s *DeleteSegmentInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.SegmentId == nil { invalidParams.Add(request.NewErrParamRequired("SegmentId")) } + if s.SegmentId != nil && len(*s.SegmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SegmentId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11084,6 +11144,9 @@ func (s *DeleteSmsChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11148,9 +11211,15 @@ func (s *DeleteUserEndpointsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.UserId == nil { invalidParams.Add(request.NewErrParamRequired("UserId")) } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11218,6 +11287,9 @@ func (s *DeleteVoiceChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13537,6 +13609,9 @@ func (s *GetAdmChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13598,6 +13673,9 @@ func (s *GetApnsChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13659,6 +13737,9 @@ func (s *GetApnsSandboxChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13720,6 +13801,9 @@ func (s *GetApnsVoipChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13781,6 +13865,9 @@ func (s *GetApnsVoipSandboxChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13842,6 +13929,9 @@ func (s *GetAppInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13903,6 +13993,9 @@ func (s *GetApplicationSettingsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14019,6 +14112,9 @@ func (s *GetBaiduChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14087,9 +14183,15 @@ func (s *GetCampaignActivitiesInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.CampaignId == nil { invalidParams.Add(request.NewErrParamRequired("CampaignId")) } + if s.CampaignId != nil && len(*s.CampaignId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CampaignId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14172,9 +14274,15 @@ func (s *GetCampaignInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.CampaignId == nil { invalidParams.Add(request.NewErrParamRequired("CampaignId")) } + if s.CampaignId != nil && len(*s.CampaignId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CampaignId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14248,12 +14356,21 @@ func (s *GetCampaignVersionInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.CampaignId == nil { invalidParams.Add(request.NewErrParamRequired("CampaignId")) } + if s.CampaignId != nil && len(*s.CampaignId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CampaignId", 1)) + } if s.Version == nil { invalidParams.Add(request.NewErrParamRequired("Version")) } + if s.Version != nil && len(*s.Version) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Version", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14334,9 +14451,15 @@ func (s *GetCampaignVersionsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.CampaignId == nil { invalidParams.Add(request.NewErrParamRequired("CampaignId")) } + if s.CampaignId != nil && len(*s.CampaignId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CampaignId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14420,6 +14543,9 @@ func (s *GetCampaignsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14493,6 +14619,9 @@ func (s *GetChannelsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14554,6 +14683,9 @@ func (s *GetEmailChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14618,9 +14750,15 @@ func (s *GetEndpointInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.EndpointId == nil { invalidParams.Add(request.NewErrParamRequired("EndpointId")) } + if s.EndpointId != nil && len(*s.EndpointId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EndpointId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14688,6 +14826,9 @@ func (s *GetEventStreamInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14752,9 +14893,15 @@ func (s *GetExportJobInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.JobId == nil { invalidParams.Add(request.NewErrParamRequired("JobId")) } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14826,6 +14973,9 @@ func (s *GetExportJobsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14899,6 +15049,9 @@ func (s *GetGcmChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14963,9 +15116,15 @@ func (s *GetImportJobInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.JobId == nil { invalidParams.Add(request.NewErrParamRequired("JobId")) } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15037,6 +15196,9 @@ func (s *GetImportJobsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15117,9 +15279,15 @@ func (s *GetSegmentExportJobsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.SegmentId == nil { invalidParams.Add(request.NewErrParamRequired("SegmentId")) } + if s.SegmentId != nil && len(*s.SegmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SegmentId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15206,9 +15374,15 @@ func (s *GetSegmentImportJobsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.SegmentId == nil { invalidParams.Add(request.NewErrParamRequired("SegmentId")) } + if s.SegmentId != nil && len(*s.SegmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SegmentId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15291,9 +15465,15 @@ func (s *GetSegmentInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.SegmentId == nil { invalidParams.Add(request.NewErrParamRequired("SegmentId")) } + if s.SegmentId != nil && len(*s.SegmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SegmentId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15367,12 +15547,21 @@ func (s *GetSegmentVersionInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.SegmentId == nil { invalidParams.Add(request.NewErrParamRequired("SegmentId")) } + if s.SegmentId != nil && len(*s.SegmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SegmentId", 1)) + } if s.Version == nil { invalidParams.Add(request.NewErrParamRequired("Version")) } + if s.Version != nil && len(*s.Version) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Version", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15453,9 +15642,15 @@ func (s *GetSegmentVersionsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.SegmentId == nil { invalidParams.Add(request.NewErrParamRequired("SegmentId")) } + if s.SegmentId != nil && len(*s.SegmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SegmentId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15539,6 +15734,9 @@ func (s *GetSegmentsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15612,6 +15810,9 @@ func (s *GetSmsChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15676,9 +15877,15 @@ func (s *GetUserEndpointsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.UserId == nil { invalidParams.Add(request.NewErrParamRequired("UserId")) } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15746,6 +15953,9 @@ func (s *GetVoiceChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17061,6 +17271,9 @@ func (s *PutEventStreamInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.WriteEventStream == nil { invalidParams.Add(request.NewErrParamRequired("WriteEventStream")) } @@ -17136,6 +17349,9 @@ func (s *PutEventsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.EventsRequest == nil { invalidParams.Add(request.NewErrParamRequired("EventsRequest")) } @@ -17315,9 +17531,15 @@ func (s *RemoveAttributesInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.AttributeType == nil { invalidParams.Add(request.NewErrParamRequired("AttributeType")) } + if s.AttributeType != nil && len(*s.AttributeType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttributeType", 1)) + } if s.UpdateAttributesRequest == nil { invalidParams.Add(request.NewErrParamRequired("UpdateAttributesRequest")) } @@ -18294,6 +18516,9 @@ func (s *SendMessagesInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.MessageRequest == nil { invalidParams.Add(request.NewErrParamRequired("MessageRequest")) } @@ -18471,6 +18696,9 @@ func (s *SendUsersMessagesInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.SendUsersMessageRequest == nil { invalidParams.Add(request.NewErrParamRequired("SendUsersMessageRequest")) } @@ -18794,6 +19022,9 @@ func (s *UpdateAdmChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18869,6 +19100,9 @@ func (s *UpdateApnsChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18944,6 +19178,9 @@ func (s *UpdateApnsSandboxChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -19019,6 +19256,9 @@ func (s *UpdateApnsVoipChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -19094,6 +19334,9 @@ func (s *UpdateApnsVoipSandboxChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -19166,6 +19409,9 @@ func (s *UpdateApplicationSettingsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.WriteApplicationSettingsRequest == nil { invalidParams.Add(request.NewErrParamRequired("WriteApplicationSettingsRequest")) } @@ -19265,6 +19511,9 @@ func (s *UpdateBaiduChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.BaiduChannelRequest == nil { invalidParams.Add(request.NewErrParamRequired("BaiduChannelRequest")) } @@ -19343,9 +19592,15 @@ func (s *UpdateCampaignInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.CampaignId == nil { invalidParams.Add(request.NewErrParamRequired("CampaignId")) } + if s.CampaignId != nil && len(*s.CampaignId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CampaignId", 1)) + } if s.WriteCampaignRequest == nil { invalidParams.Add(request.NewErrParamRequired("WriteCampaignRequest")) } @@ -19427,6 +19682,9 @@ func (s *UpdateEmailChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.EmailChannelRequest == nil { invalidParams.Add(request.NewErrParamRequired("EmailChannelRequest")) } @@ -19505,9 +19763,15 @@ func (s *UpdateEndpointInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.EndpointId == nil { invalidParams.Add(request.NewErrParamRequired("EndpointId")) } + if s.EndpointId != nil && len(*s.EndpointId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EndpointId", 1)) + } if s.EndpointRequest == nil { invalidParams.Add(request.NewErrParamRequired("EndpointRequest")) } @@ -19589,6 +19853,9 @@ func (s *UpdateEndpointsBatchInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.EndpointBatchRequest == nil { invalidParams.Add(request.NewErrParamRequired("EndpointBatchRequest")) } @@ -19664,6 +19931,9 @@ func (s *UpdateGcmChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.GCMChannelRequest == nil { invalidParams.Add(request.NewErrParamRequired("GCMChannelRequest")) } @@ -19742,9 +20012,15 @@ func (s *UpdateSegmentInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.SegmentId == nil { invalidParams.Add(request.NewErrParamRequired("SegmentId")) } + if s.SegmentId != nil && len(*s.SegmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SegmentId", 1)) + } if s.WriteSegmentRequest == nil { invalidParams.Add(request.NewErrParamRequired("WriteSegmentRequest")) } @@ -19826,6 +20102,9 @@ func (s *UpdateSmsChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.SMSChannelRequest == nil { invalidParams.Add(request.NewErrParamRequired("SMSChannelRequest")) } @@ -19901,6 +20180,9 @@ func (s *UpdateVoiceChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.VoiceChannelRequest == nil { invalidParams.Add(request.NewErrParamRequired("VoiceChannelRequest")) } diff --git a/service/pinpointemail/api.go b/service/pinpointemail/api.go index d7a3288cf82..ff363b33b37 100644 --- a/service/pinpointemail/api.go +++ b/service/pinpointemail/api.go @@ -3201,6 +3201,9 @@ func (s *CreateConfigurationSetEventDestinationInput) Validate() error { if s.ConfigurationSetName == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) } + if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } if s.EventDestination == nil { invalidParams.Add(request.NewErrParamRequired("EventDestination")) } @@ -3592,9 +3595,15 @@ func (s *DeleteConfigurationSetEventDestinationInput) Validate() error { if s.ConfigurationSetName == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) } + if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } if s.EventDestinationName == nil { invalidParams.Add(request.NewErrParamRequired("EventDestinationName")) } + if s.EventDestinationName != nil && len(*s.EventDestinationName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EventDestinationName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3656,6 +3665,9 @@ func (s *DeleteConfigurationSetInput) Validate() error { if s.ConfigurationSetName == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) } + if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3711,6 +3723,9 @@ func (s *DeleteDedicatedIpPoolInput) Validate() error { if s.PoolName == nil { invalidParams.Add(request.NewErrParamRequired("PoolName")) } + if s.PoolName != nil && len(*s.PoolName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PoolName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3770,6 +3785,9 @@ func (s *DeleteEmailIdentityInput) Validate() error { if s.EmailIdentity == nil { invalidParams.Add(request.NewErrParamRequired("EmailIdentity")) } + if s.EmailIdentity != nil && len(*s.EmailIdentity) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EmailIdentity", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4352,6 +4370,9 @@ func (s *GetConfigurationSetEventDestinationsInput) Validate() error { if s.ConfigurationSetName == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) } + if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4417,6 +4438,9 @@ func (s *GetConfigurationSetInput) Validate() error { if s.ConfigurationSetName == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) } + if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4522,6 +4546,9 @@ func (s *GetDedicatedIpInput) Validate() error { if s.Ip == nil { invalidParams.Add(request.NewErrParamRequired("Ip")) } + if s.Ip != nil && len(*s.Ip) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Ip", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4668,6 +4695,9 @@ func (s *GetEmailIdentityInput) Validate() error { if s.EmailIdentity == nil { invalidParams.Add(request.NewErrParamRequired("EmailIdentity")) } + if s.EmailIdentity != nil && len(*s.EmailIdentity) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EmailIdentity", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5441,6 +5471,9 @@ func (s *PutConfigurationSetDeliveryOptionsInput) Validate() error { if s.ConfigurationSetName == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) } + if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5509,6 +5542,9 @@ func (s *PutConfigurationSetReputationOptionsInput) Validate() error { if s.ConfigurationSetName == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) } + if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5576,6 +5612,9 @@ func (s *PutConfigurationSetSendingOptionsInput) Validate() error { if s.ConfigurationSetName == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) } + if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5642,6 +5681,9 @@ func (s *PutConfigurationSetTrackingOptionsInput) Validate() error { if s.ConfigurationSetName == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) } + if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5714,6 +5756,9 @@ func (s *PutDedicatedIpInPoolInput) Validate() error { if s.Ip == nil { invalidParams.Add(request.NewErrParamRequired("Ip")) } + if s.Ip != nil && len(*s.Ip) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Ip", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5780,6 +5825,9 @@ func (s *PutDedicatedIpWarmupAttributesInput) Validate() error { if s.Ip == nil { invalidParams.Add(request.NewErrParamRequired("Ip")) } + if s.Ip != nil && len(*s.Ip) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Ip", 1)) + } if s.WarmupPercentage == nil { invalidParams.Add(request.NewErrParamRequired("WarmupPercentage")) } @@ -5852,6 +5900,9 @@ func (s *PutEmailIdentityDkimAttributesInput) Validate() error { if s.EmailIdentity == nil { invalidParams.Add(request.NewErrParamRequired("EmailIdentity")) } + if s.EmailIdentity != nil && len(*s.EmailIdentity) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EmailIdentity", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5930,6 +5981,9 @@ func (s *PutEmailIdentityFeedbackAttributesInput) Validate() error { if s.EmailIdentity == nil { invalidParams.Add(request.NewErrParamRequired("EmailIdentity")) } + if s.EmailIdentity != nil && len(*s.EmailIdentity) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EmailIdentity", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6013,6 +6067,9 @@ func (s *PutEmailIdentityMailFromAttributesInput) Validate() error { if s.EmailIdentity == nil { invalidParams.Add(request.NewErrParamRequired("EmailIdentity")) } + if s.EmailIdentity != nil && len(*s.EmailIdentity) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EmailIdentity", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6502,12 +6559,18 @@ func (s *UpdateConfigurationSetEventDestinationInput) Validate() error { if s.ConfigurationSetName == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) } + if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } if s.EventDestination == nil { invalidParams.Add(request.NewErrParamRequired("EventDestination")) } if s.EventDestinationName == nil { invalidParams.Add(request.NewErrParamRequired("EventDestinationName")) } + if s.EventDestinationName != nil && len(*s.EventDestinationName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EventDestinationName", 1)) + } if s.EventDestination != nil { if err := s.EventDestination.Validate(); err != nil { invalidParams.AddNested("EventDestination", err.(request.ErrInvalidParams)) diff --git a/service/pinpointsmsvoice/api.go b/service/pinpointsmsvoice/api.go index b6297396fcd..1e12da39c8a 100644 --- a/service/pinpointsmsvoice/api.go +++ b/service/pinpointsmsvoice/api.go @@ -712,6 +712,9 @@ func (s *CreateConfigurationSetEventDestinationInput) Validate() error { if s.ConfigurationSetName == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) } + if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -818,9 +821,15 @@ func (s *DeleteConfigurationSetEventDestinationInput) Validate() error { if s.ConfigurationSetName == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) } + if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } if s.EventDestinationName == nil { invalidParams.Add(request.NewErrParamRequired("EventDestinationName")) } + if s.EventDestinationName != nil && len(*s.EventDestinationName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EventDestinationName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -878,6 +887,9 @@ func (s *DeleteConfigurationSetInput) Validate() error { if s.ConfigurationSetName == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) } + if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1050,6 +1062,9 @@ func (s *GetConfigurationSetEventDestinationsInput) Validate() error { if s.ConfigurationSetName == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) } + if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1330,9 +1345,15 @@ func (s *UpdateConfigurationSetEventDestinationInput) Validate() error { if s.ConfigurationSetName == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) } + if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } if s.EventDestinationName == nil { invalidParams.Add(request.NewErrParamRequired("EventDestinationName")) } + if s.EventDestinationName != nil && len(*s.EventDestinationName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EventDestinationName", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/polly/api.go b/service/polly/api.go index f3d801dfb6c..8d0fc83888b 100644 --- a/service/polly/api.go +++ b/service/polly/api.go @@ -979,6 +979,9 @@ func (s *DeleteLexiconInput) Validate() error { if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1112,6 +1115,9 @@ func (s *GetLexiconInput) Validate() error { if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1546,6 +1552,9 @@ func (s *PutLexiconInput) Validate() error { if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/quicksight/api.go b/service/quicksight/api.go index 29ee8a9b406..2ce0d951e4b 100644 --- a/service/quicksight/api.go +++ b/service/quicksight/api.go @@ -1613,6 +1613,9 @@ func (s *CreateGroupInput) Validate() error { if s.Namespace == nil { invalidParams.Add(request.NewErrParamRequired("Namespace")) } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1703,6 +1706,9 @@ func (s *CreateGroupMembershipInput) Validate() error { if s.Namespace == nil { invalidParams.Add(request.NewErrParamRequired("Namespace")) } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1865,6 +1871,9 @@ func (s *DeleteGroupInput) Validate() error { if s.Namespace == nil { invalidParams.Add(request.NewErrParamRequired("Namespace")) } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1949,6 +1958,9 @@ func (s *DeleteGroupMembershipInput) Validate() error { if s.Namespace == nil { invalidParams.Add(request.NewErrParamRequired("Namespace")) } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2086,6 +2098,9 @@ func (s *DeleteUserInput) Validate() error { if s.Namespace == nil { invalidParams.Add(request.NewErrParamRequired("Namespace")) } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } if s.UserName == nil { invalidParams.Add(request.NewErrParamRequired("UserName")) } @@ -2197,6 +2212,9 @@ func (s *DescribeGroupInput) Validate() error { if s.Namespace == nil { invalidParams.Add(request.NewErrParamRequired("Namespace")) } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2305,6 +2323,9 @@ func (s *DescribeUserInput) Validate() error { if s.Namespace == nil { invalidParams.Add(request.NewErrParamRequired("Namespace")) } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } if s.UserName == nil { invalidParams.Add(request.NewErrParamRequired("UserName")) } @@ -2430,6 +2451,9 @@ func (s *GetDashboardEmbedUrlInput) Validate() error { if s.DashboardId == nil { invalidParams.Add(request.NewErrParamRequired("DashboardId")) } + if s.DashboardId != nil && len(*s.DashboardId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DashboardId", 1)) + } if s.IdentityType == nil { invalidParams.Add(request.NewErrParamRequired("IdentityType")) } @@ -2658,6 +2682,9 @@ func (s *ListGroupMembershipsInput) Validate() error { if s.Namespace == nil { invalidParams.Add(request.NewErrParamRequired("Namespace")) } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2791,6 +2818,9 @@ func (s *ListGroupsInput) Validate() error { if s.Namespace == nil { invalidParams.Add(request.NewErrParamRequired("Namespace")) } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2923,6 +2953,9 @@ func (s *ListUserGroupsInput) Validate() error { if s.Namespace == nil { invalidParams.Add(request.NewErrParamRequired("Namespace")) } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } if s.UserName == nil { invalidParams.Add(request.NewErrParamRequired("UserName")) } @@ -3062,6 +3095,9 @@ func (s *ListUsersInput) Validate() error { if s.Namespace == nil { invalidParams.Add(request.NewErrParamRequired("Namespace")) } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3229,6 +3265,9 @@ func (s *RegisterUserInput) Validate() error { if s.Namespace == nil { invalidParams.Add(request.NewErrParamRequired("Namespace")) } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } if s.UserName != nil && len(*s.UserName) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) } @@ -3385,6 +3424,9 @@ func (s *UpdateGroupInput) Validate() error { if s.Namespace == nil { invalidParams.Add(request.NewErrParamRequired("Namespace")) } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3520,6 +3562,9 @@ func (s *UpdateUserInput) Validate() error { if s.Namespace == nil { invalidParams.Add(request.NewErrParamRequired("Namespace")) } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } if s.Role == nil { invalidParams.Add(request.NewErrParamRequired("Role")) } diff --git a/service/rds/examples_test.go b/service/rds/examples_test.go index c3ebdef42fe..a610ccea6fb 100644 --- a/service/rds/examples_test.go +++ b/service/rds/examples_test.go @@ -1289,7 +1289,7 @@ func ExampleRDS_DescribeDBClusterParameters_shared00() { svc := rds.New(session.New()) input := &rds.DescribeDBClusterParametersInput{ DBClusterParameterGroupName: aws.String("mydbclusterparametergroup"), - Source: aws.String("system"), + Source: aws.String("system"), } result, err := svc.DescribeDBClusterParameters(input) diff --git a/service/resourcegroups/api.go b/service/resourcegroups/api.go index 323d41878a7..3343d13d4c7 100644 --- a/service/resourcegroups/api.go +++ b/service/resourcegroups/api.go @@ -1670,6 +1670,9 @@ func (s *GetTagsInput) Validate() error { if s.Arn == nil { invalidParams.Add(request.NewErrParamRequired("Arn")) } + if s.Arn != nil && len(*s.Arn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2506,6 +2509,9 @@ func (s *TagInput) Validate() error { if s.Arn == nil { invalidParams.Add(request.NewErrParamRequired("Arn")) } + if s.Arn != nil && len(*s.Arn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 1)) + } if s.Tags == nil { invalidParams.Add(request.NewErrParamRequired("Tags")) } @@ -2590,6 +2596,9 @@ func (s *UntagInput) Validate() error { if s.Arn == nil { invalidParams.Add(request.NewErrParamRequired("Arn")) } + if s.Arn != nil && len(*s.Arn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 1)) + } if s.Keys == nil { invalidParams.Add(request.NewErrParamRequired("Keys")) } diff --git a/service/route53/api.go b/service/route53/api.go index 7672212114e..e1d4d017913 100644 --- a/service/route53/api.go +++ b/service/route53/api.go @@ -6239,6 +6239,9 @@ func (s *AssociateVPCWithHostedZoneInput) Validate() error { if s.HostedZoneId == nil { invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) } + if s.HostedZoneId != nil && len(*s.HostedZoneId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HostedZoneId", 1)) + } if s.VPC == nil { invalidParams.Add(request.NewErrParamRequired("VPC")) } @@ -6534,6 +6537,9 @@ func (s *ChangeResourceRecordSetsInput) Validate() error { if s.HostedZoneId == nil { invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) } + if s.HostedZoneId != nil && len(*s.HostedZoneId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HostedZoneId", 1)) + } if s.ChangeBatch != nil { if err := s.ChangeBatch.Validate(); err != nil { invalidParams.AddNested("ChangeBatch", err.(request.ErrInvalidParams)) @@ -6641,9 +6647,15 @@ func (s *ChangeTagsForResourceInput) Validate() error { if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } if s.ResourceType == nil { invalidParams.Add(request.NewErrParamRequired("ResourceType")) } + if s.ResourceType != nil && len(*s.ResourceType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceType", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7685,6 +7697,9 @@ func (s *CreateVPCAssociationAuthorizationInput) Validate() error { if s.HostedZoneId == nil { invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) } + if s.HostedZoneId != nil && len(*s.HostedZoneId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HostedZoneId", 1)) + } if s.VPC == nil { invalidParams.Add(request.NewErrParamRequired("VPC")) } @@ -7823,6 +7838,9 @@ func (s *DeleteHealthCheckInput) Validate() error { if s.HealthCheckId == nil { invalidParams.Add(request.NewErrParamRequired("HealthCheckId")) } + if s.HealthCheckId != nil && len(*s.HealthCheckId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HealthCheckId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7877,6 +7895,9 @@ func (s *DeleteHostedZoneInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7998,6 +8019,9 @@ func (s *DeleteReusableDelegationSetInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8198,6 +8222,9 @@ func (s *DeleteVPCAssociationAuthorizationInput) Validate() error { if s.HostedZoneId == nil { invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) } + if s.HostedZoneId != nil && len(*s.HostedZoneId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HostedZoneId", 1)) + } if s.VPC == nil { invalidParams.Add(request.NewErrParamRequired("VPC")) } @@ -8316,6 +8343,9 @@ func (s *DisassociateVPCFromHostedZoneInput) Validate() error { if s.HostedZoneId == nil { invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) } + if s.HostedZoneId != nil && len(*s.HostedZoneId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HostedZoneId", 1)) + } if s.VPC == nil { invalidParams.Add(request.NewErrParamRequired("VPC")) } @@ -8560,6 +8590,9 @@ func (s *GetAccountLimitInput) Validate() error { if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } + if s.Type != nil && len(*s.Type) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Type", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8644,6 +8677,9 @@ func (s *GetChangeInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8899,6 +8935,9 @@ func (s *GetHealthCheckInput) Validate() error { if s.HealthCheckId == nil { invalidParams.Add(request.NewErrParamRequired("HealthCheckId")) } + if s.HealthCheckId != nil && len(*s.HealthCheckId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HealthCheckId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8944,6 +8983,9 @@ func (s *GetHealthCheckLastFailureReasonInput) Validate() error { if s.HealthCheckId == nil { invalidParams.Add(request.NewErrParamRequired("HealthCheckId")) } + if s.HealthCheckId != nil && len(*s.HealthCheckId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HealthCheckId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9044,6 +9086,9 @@ func (s *GetHealthCheckStatusInput) Validate() error { if s.HealthCheckId == nil { invalidParams.Add(request.NewErrParamRequired("HealthCheckId")) } + if s.HealthCheckId != nil && len(*s.HealthCheckId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HealthCheckId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9153,6 +9198,9 @@ func (s *GetHostedZoneInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9204,9 +9252,15 @@ func (s *GetHostedZoneLimitInput) Validate() error { if s.HostedZoneId == nil { invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) } + if s.HostedZoneId != nil && len(*s.HostedZoneId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HostedZoneId", 1)) + } if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } + if s.Type != nil && len(*s.Type) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Type", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9411,6 +9465,9 @@ func (s *GetReusableDelegationSetInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9458,9 +9515,15 @@ func (s *GetReusableDelegationSetLimitInput) Validate() error { if s.DelegationSetId == nil { invalidParams.Add(request.NewErrParamRequired("DelegationSetId")) } + if s.DelegationSetId != nil && len(*s.DelegationSetId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DelegationSetId", 1)) + } if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } + if s.Type != nil && len(*s.Type) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Type", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11283,6 +11346,9 @@ func (s *ListResourceRecordSetsInput) Validate() error { if s.HostedZoneId == nil { invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) } + if s.HostedZoneId != nil && len(*s.HostedZoneId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HostedZoneId", 1)) + } if s.StartRecordIdentifier != nil && len(*s.StartRecordIdentifier) < 1 { invalidParams.Add(request.NewErrParamMinLen("StartRecordIdentifier", 1)) } @@ -11566,9 +11632,15 @@ func (s *ListTagsForResourceInput) Validate() error { if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } if s.ResourceType == nil { invalidParams.Add(request.NewErrParamRequired("ResourceType")) } + if s.ResourceType != nil && len(*s.ResourceType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceType", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11658,6 +11730,9 @@ func (s *ListTagsForResourcesInput) Validate() error { if s.ResourceType == nil { invalidParams.Add(request.NewErrParamRequired("ResourceType")) } + if s.ResourceType != nil && len(*s.ResourceType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceType", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12558,6 +12633,9 @@ func (s *ListVPCAssociationAuthorizationsInput) Validate() error { if s.HostedZoneId == nil { invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) } + if s.HostedZoneId != nil && len(*s.HostedZoneId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HostedZoneId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14274,6 +14352,9 @@ func (s *UpdateHealthCheckInput) Validate() error { if s.HealthCheckId == nil { invalidParams.Add(request.NewErrParamRequired("HealthCheckId")) } + if s.HealthCheckId != nil && len(*s.HealthCheckId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HealthCheckId", 1)) + } if s.HealthCheckVersion != nil && *s.HealthCheckVersion < 1 { invalidParams.Add(request.NewErrParamMinValue("HealthCheckVersion", 1)) } @@ -14452,6 +14533,9 @@ func (s *UpdateHostedZoneCommentInput) Validate() error { if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/s3/api.go b/service/s3/api.go index e2ab0c9ac6e..e483cd40700 100644 --- a/service/s3/api.go +++ b/service/s3/api.go @@ -7103,6 +7103,9 @@ func (s *AbortMultipartUploadInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -8105,6 +8108,9 @@ func (s *CompleteMultipartUploadInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -8541,6 +8547,9 @@ func (s *CopyObjectInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.CopySource == nil { invalidParams.Add(request.NewErrParamRequired("CopySource")) } @@ -9027,6 +9036,9 @@ func (s *CreateBucketInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9232,6 +9244,9 @@ func (s *CreateMultipartUploadInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -9664,6 +9679,9 @@ func (s *DeleteBucketAnalyticsConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } @@ -9730,6 +9748,9 @@ func (s *DeleteBucketCorsInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9790,6 +9811,9 @@ func (s *DeleteBucketEncryptionInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9847,6 +9871,9 @@ func (s *DeleteBucketInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9897,6 +9924,9 @@ func (s *DeleteBucketInventoryConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } @@ -9963,6 +9993,9 @@ func (s *DeleteBucketLifecycleInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10027,6 +10060,9 @@ func (s *DeleteBucketMetricsConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } @@ -10107,6 +10143,9 @@ func (s *DeleteBucketPolicyInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10169,6 +10208,9 @@ func (s *DeleteBucketReplicationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10226,6 +10268,9 @@ func (s *DeleteBucketTaggingInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10283,6 +10328,9 @@ func (s *DeleteBucketWebsiteInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10446,6 +10494,9 @@ func (s *DeleteObjectInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -10575,6 +10626,9 @@ func (s *DeleteObjectTaggingInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -10677,6 +10731,9 @@ func (s *DeleteObjectsInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Delete == nil { invalidParams.Add(request.NewErrParamRequired("Delete")) } @@ -10794,6 +10851,9 @@ func (s *DeletePublicAccessBlockInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11241,6 +11301,9 @@ func (s *GetBucketAccelerateConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11307,6 +11370,9 @@ func (s *GetBucketAclInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11388,6 +11454,9 @@ func (s *GetBucketAnalyticsConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } @@ -11463,6 +11532,9 @@ func (s *GetBucketCorsInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11531,6 +11603,9 @@ func (s *GetBucketEncryptionInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11605,6 +11680,9 @@ func (s *GetBucketInventoryConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } @@ -11680,6 +11758,9 @@ func (s *GetBucketLifecycleConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11745,6 +11826,9 @@ func (s *GetBucketLifecycleInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11810,6 +11894,9 @@ func (s *GetBucketLocationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11875,6 +11962,9 @@ func (s *GetBucketLoggingInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11950,6 +12040,9 @@ func (s *GetBucketMetricsConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } @@ -12027,6 +12120,9 @@ func (s *GetBucketNotificationConfigurationRequest) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12070,6 +12166,9 @@ func (s *GetBucketPolicyInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12138,6 +12237,9 @@ func (s *GetBucketPolicyStatusInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12204,6 +12306,9 @@ func (s *GetBucketReplicationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12271,6 +12376,9 @@ func (s *GetBucketRequestPaymentInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12337,6 +12445,9 @@ func (s *GetBucketTaggingInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12403,6 +12514,9 @@ func (s *GetBucketVersioningInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12480,6 +12594,9 @@ func (s *GetBucketWebsiteInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12581,6 +12698,9 @@ func (s *GetObjectAclInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -12759,6 +12879,9 @@ func (s *GetObjectInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -12939,6 +13062,9 @@ func (s *GetObjectLegalHoldInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -13031,6 +13157,9 @@ func (s *GetObjectLockConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13424,6 +13553,9 @@ func (s *GetObjectRetentionInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -13519,6 +13651,9 @@ func (s *GetObjectTaggingInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -13620,6 +13755,9 @@ func (s *GetObjectTorrentInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -13716,6 +13854,9 @@ func (s *GetPublicAccessBlockInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13941,6 +14082,9 @@ func (s *HeadBucketInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14051,6 +14195,9 @@ func (s *HeadObjectInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -15462,6 +15609,9 @@ func (s *ListBucketAnalyticsConfigurationsInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15573,6 +15723,9 @@ func (s *ListBucketInventoryConfigurationsInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15684,6 +15837,9 @@ func (s *ListBucketMetricsConfigurationsInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15862,6 +16018,9 @@ func (s *ListMultipartUploadsInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16098,6 +16257,9 @@ func (s *ListObjectVersionsInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16330,6 +16492,9 @@ func (s *ListObjectsInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16547,6 +16712,9 @@ func (s *ListObjectsV2Input) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16792,6 +16960,9 @@ func (s *ListPartsInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -18386,6 +18557,9 @@ func (s *PutBucketAccelerateConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18470,6 +18644,9 @@ func (s *PutBucketAclInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.AccessControlPolicy != nil { if err := s.AccessControlPolicy.Validate(); err != nil { invalidParams.AddNested("AccessControlPolicy", err.(request.ErrInvalidParams)) @@ -18589,6 +18766,9 @@ func (s *PutBucketAnalyticsConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } @@ -18669,6 +18849,9 @@ func (s *PutBucketCorsInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.CORSConfiguration == nil { invalidParams.Add(request.NewErrParamRequired("CORSConfiguration")) } @@ -18749,6 +18932,9 @@ func (s *PutBucketEncryptionInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.ServerSideEncryptionConfiguration == nil { invalidParams.Add(request.NewErrParamRequired("ServerSideEncryptionConfiguration")) } @@ -18832,6 +19018,9 @@ func (s *PutBucketInventoryConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } @@ -18914,6 +19103,9 @@ func (s *PutBucketLifecycleConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.LifecycleConfiguration != nil { if err := s.LifecycleConfiguration.Validate(); err != nil { invalidParams.AddNested("LifecycleConfiguration", err.(request.ErrInvalidParams)) @@ -18984,6 +19176,9 @@ func (s *PutBucketLifecycleInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.LifecycleConfiguration != nil { if err := s.LifecycleConfiguration.Validate(); err != nil { invalidParams.AddNested("LifecycleConfiguration", err.(request.ErrInvalidParams)) @@ -19055,6 +19250,9 @@ func (s *PutBucketLoggingInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.BucketLoggingStatus == nil { invalidParams.Add(request.NewErrParamRequired("BucketLoggingStatus")) } @@ -19138,6 +19336,9 @@ func (s *PutBucketMetricsConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } @@ -19224,6 +19425,9 @@ func (s *PutBucketNotificationConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.NotificationConfiguration == nil { invalidParams.Add(request.NewErrParamRequired("NotificationConfiguration")) } @@ -19298,6 +19502,9 @@ func (s *PutBucketNotificationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.NotificationConfiguration == nil { invalidParams.Add(request.NewErrParamRequired("NotificationConfiguration")) } @@ -19373,6 +19580,9 @@ func (s *PutBucketPolicyInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Policy == nil { invalidParams.Add(request.NewErrParamRequired("Policy")) } @@ -19451,6 +19661,9 @@ func (s *PutBucketReplicationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.ReplicationConfiguration == nil { invalidParams.Add(request.NewErrParamRequired("ReplicationConfiguration")) } @@ -19525,6 +19738,9 @@ func (s *PutBucketRequestPaymentInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.RequestPaymentConfiguration == nil { invalidParams.Add(request.NewErrParamRequired("RequestPaymentConfiguration")) } @@ -19599,6 +19815,9 @@ func (s *PutBucketTaggingInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Tagging == nil { invalidParams.Add(request.NewErrParamRequired("Tagging")) } @@ -19677,6 +19896,9 @@ func (s *PutBucketVersioningInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.VersioningConfiguration == nil { invalidParams.Add(request.NewErrParamRequired("VersioningConfiguration")) } @@ -19752,6 +19974,9 @@ func (s *PutBucketWebsiteInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.WebsiteConfiguration == nil { invalidParams.Add(request.NewErrParamRequired("WebsiteConfiguration")) } @@ -19856,6 +20081,9 @@ func (s *PutObjectAclInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -20101,6 +20329,9 @@ func (s *PutObjectInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -20345,6 +20576,9 @@ func (s *PutObjectLegalHoldInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -20455,6 +20689,9 @@ func (s *PutObjectLockConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -20659,6 +20896,9 @@ func (s *PutObjectRetentionInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -20770,6 +21010,9 @@ func (s *PutObjectTaggingInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -20879,6 +21122,9 @@ func (s *PutPublicAccessBlockInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.PublicAccessBlockConfiguration == nil { invalidParams.Add(request.NewErrParamRequired("PublicAccessBlockConfiguration")) } @@ -21637,6 +21883,9 @@ func (s *RestoreObjectInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -22345,6 +22594,9 @@ func (s *SelectObjectContentInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Expression == nil { invalidParams.Add(request.NewErrParamRequired("Expression")) } @@ -23386,6 +23638,9 @@ func (s *UploadPartCopyInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.CopySource == nil { invalidParams.Add(request.NewErrParamRequired("CopySource")) } @@ -23688,6 +23943,9 @@ func (s *UploadPartInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } diff --git a/service/s3/bucket_location_test.go b/service/s3/bucket_location_test.go index c5984cf26b5..92ef8f45fdf 100644 --- a/service/s3/bucket_location_test.go +++ b/service/s3/bucket_location_test.go @@ -114,7 +114,7 @@ func TestPopulateLocationConstraint(t *testing.T) { func TestNoPopulateLocationConstraintIfProvided(t *testing.T) { s := s3.New(unit.Session) req, _ := s.CreateBucketRequest(&s3.CreateBucketInput{ - Bucket: aws.String("bucket"), + Bucket: aws.String("bucket"), CreateBucketConfiguration: &s3.CreateBucketConfiguration{}, }) if err := req.Build(); err != nil { diff --git a/service/s3/s3crypto/decryption_client.go b/service/s3/s3crypto/decryption_client.go index fcc9268d4d9..7fcd8355916 100644 --- a/service/s3/s3crypto/decryption_client.go +++ b/service/s3/s3crypto/decryption_client.go @@ -58,7 +58,7 @@ func NewDecryptionClient(prov client.ConfigProvider, options ...func(*Decryption }).decryptHandler, }, CEKRegistry: map[string]CEKEntry{ - AESGCMNoPadding: newAESGCMContentCipher, + AESGCMNoPadding: newAESGCMContentCipher, strings.Join([]string{AESCBC, AESCBCPadder.Name()}, "/"): newAESCBCContentCipher, }, PadderRegistry: map[string]Padder{ diff --git a/service/s3/sse_test.go b/service/s3/sse_test.go index 50ff99cb6f1..459fec7841a 100644 --- a/service/s3/sse_test.go +++ b/service/s3/sse_test.go @@ -34,9 +34,9 @@ func TestSSECustomerKeyOverHTTPError(t *testing.T) { func TestCopySourceSSECustomerKeyOverHTTPError(t *testing.T) { s := s3.New(unit.Session, &aws.Config{DisableSSL: aws.Bool(true)}) req, _ := s.CopyObjectRequest(&s3.CopyObjectInput{ - Bucket: aws.String("bucket"), - CopySource: aws.String("bucket/source"), - Key: aws.String("dest"), + Bucket: aws.String("bucket"), + CopySource: aws.String("bucket/source"), + Key: aws.String("dest"), CopySourceSSECustomerKey: aws.String("key"), }) err := req.Build() diff --git a/service/sagemakerruntime/api.go b/service/sagemakerruntime/api.go index e727a0a41fd..494f4630520 100644 --- a/service/sagemakerruntime/api.go +++ b/service/sagemakerruntime/api.go @@ -159,6 +159,9 @@ func (s *InvokeEndpointInput) Validate() error { if s.EndpointName == nil { invalidParams.Add(request.NewErrParamRequired("EndpointName")) } + if s.EndpointName != nil && len(*s.EndpointName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EndpointName", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/securityhub/api.go b/service/securityhub/api.go index 41162aca6fa..300ff8a7bb4 100644 --- a/service/securityhub/api.go +++ b/service/securityhub/api.go @@ -4813,6 +4813,9 @@ func (s *DeleteInsightInput) Validate() error { if s.InsightArn == nil { invalidParams.Add(request.NewErrParamRequired("InsightArn")) } + if s.InsightArn != nil && len(*s.InsightArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InsightArn", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4972,6 +4975,9 @@ func (s *DisableImportFindingsForProductInput) Validate() error { if s.ProductSubscriptionArn == nil { invalidParams.Add(request.NewErrParamRequired("ProductSubscriptionArn")) } + if s.ProductSubscriptionArn != nil && len(*s.ProductSubscriptionArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProductSubscriptionArn", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5401,6 +5407,9 @@ func (s *GetInsightResultsInput) Validate() error { if s.InsightArn == nil { invalidParams.Add(request.NewErrParamRequired("InsightArn")) } + if s.InsightArn != nil && len(*s.InsightArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InsightArn", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7501,6 +7510,9 @@ func (s *UpdateInsightInput) Validate() error { if s.InsightArn == nil { invalidParams.Add(request.NewErrParamRequired("InsightArn")) } + if s.InsightArn != nil && len(*s.InsightArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InsightArn", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/serverlessapplicationrepository/api.go b/service/serverlessapplicationrepository/api.go index eca4dda7639..dbce5f61e60 100644 --- a/service/serverlessapplicationrepository/api.go +++ b/service/serverlessapplicationrepository/api.go @@ -1974,9 +1974,15 @@ func (s *CreateApplicationVersionRequest) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.SemanticVersion == nil { invalidParams.Add(request.NewErrParamRequired("SemanticVersion")) } + if s.SemanticVersion != nil && len(*s.SemanticVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SemanticVersion", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2111,6 +2117,9 @@ func (s *CreateCloudFormationChangeSetRequest) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.StackName == nil { invalidParams.Add(request.NewErrParamRequired("StackName")) } @@ -2249,6 +2258,9 @@ func (s *CreateCloudFormationTemplateInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2361,6 +2373,9 @@ func (s *DeleteApplicationInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2413,6 +2428,9 @@ func (s *GetApplicationInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2558,6 +2576,9 @@ func (s *GetApplicationPolicyInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2619,9 +2640,15 @@ func (s *GetCloudFormationTemplateInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.TemplateId == nil { invalidParams.Add(request.NewErrParamRequired("TemplateId")) } + if s.TemplateId != nil && len(*s.TemplateId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplateId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2740,6 +2767,9 @@ func (s *ListApplicationDependenciesInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.MaxItems != nil && *s.MaxItems < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) } @@ -2831,6 +2861,9 @@ func (s *ListApplicationVersionsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.MaxItems != nil && *s.MaxItems < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) } @@ -3226,6 +3259,9 @@ func (s *PutApplicationPolicyInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.Statements == nil { invalidParams.Add(request.NewErrParamRequired("Statements")) } @@ -3593,6 +3629,9 @@ func (s *UpdateApplicationRequest) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/signer/api.go b/service/signer/api.go index 754a7c7358f..b855be2216a 100644 --- a/service/signer/api.go +++ b/service/signer/api.go @@ -1097,6 +1097,9 @@ func (s *DescribeSigningJobInput) Validate() error { if s.JobId == nil { invalidParams.Add(request.NewErrParamRequired("JobId")) } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1330,6 +1333,9 @@ func (s *GetSigningPlatformInput) Validate() error { if s.PlatformId == nil { invalidParams.Add(request.NewErrParamRequired("PlatformId")) } + if s.PlatformId != nil && len(*s.PlatformId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PlatformId", 1)) + } if invalidParams.Len() > 0 { return invalidParams