-
Notifications
You must be signed in to change notification settings - Fork 0
/
securityhub_SecurityhubInsightFiltersProcessTerminatedAtList__runtime_type_checks.go
97 lines (76 loc) · 2.92 KB
/
securityhub_SecurityhubInsightFiltersProcessTerminatedAtList__runtime_type_checks.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
//go:build !no_runtime_type_checking
// +build !no_runtime_type_checking
package securityhub
import (
"fmt"
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
"github.com/hashicorp/terraform-cdk-go/cdktf"
)
func (s *jsiiProxy_SecurityhubInsightFiltersProcessTerminatedAtList) validateGetParameters(index *float64) error {
if index == nil {
return fmt.Errorf("parameter index is required, but nil was provided")
}
return nil
}
func (s *jsiiProxy_SecurityhubInsightFiltersProcessTerminatedAtList) validateResolveParameters(_context cdktf.IResolveContext) error {
if _context == nil {
return fmt.Errorf("parameter _context is required, but nil was provided")
}
return nil
}
func (j *jsiiProxy_SecurityhubInsightFiltersProcessTerminatedAtList) validateSetInternalValueParameters(val interface{}) error {
switch val.(type) {
case cdktf.IResolvable:
// ok
case *[]*SecurityhubInsightFiltersProcessTerminatedAt:
val := val.(*[]*SecurityhubInsightFiltersProcessTerminatedAt)
for idx_97dfc6, v := range *val {
if err := _jsii_.ValidateStruct(v, func() string { return fmt.Sprintf("parameter val[%#v]", idx_97dfc6) }); err != nil {
return err
}
}
case []*SecurityhubInsightFiltersProcessTerminatedAt:
val_ := val.([]*SecurityhubInsightFiltersProcessTerminatedAt)
val := &val_
for idx_97dfc6, v := range *val {
if err := _jsii_.ValidateStruct(v, func() string { return fmt.Sprintf("parameter val[%#v]", idx_97dfc6) }); err != nil {
return err
}
}
default:
if !_jsii_.IsAnonymousProxy(val) {
return fmt.Errorf("parameter val must be one of the allowed types: cdktf.IResolvable, *[]*SecurityhubInsightFiltersProcessTerminatedAt; received %#v (a %T)", val, val)
}
}
return nil
}
func (j *jsiiProxy_SecurityhubInsightFiltersProcessTerminatedAtList) validateSetTerraformAttributeParameters(val *string) error {
if val == nil {
return fmt.Errorf("parameter val is required, but nil was provided")
}
return nil
}
func (j *jsiiProxy_SecurityhubInsightFiltersProcessTerminatedAtList) validateSetTerraformResourceParameters(val cdktf.IInterpolatingParent) error {
if val == nil {
return fmt.Errorf("parameter val is required, but nil was provided")
}
return nil
}
func (j *jsiiProxy_SecurityhubInsightFiltersProcessTerminatedAtList) validateSetWrapsSetParameters(val *bool) error {
if val == nil {
return fmt.Errorf("parameter val is required, but nil was provided")
}
return nil
}
func validateNewSecurityhubInsightFiltersProcessTerminatedAtListParameters(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) error {
if terraformResource == nil {
return fmt.Errorf("parameter terraformResource is required, but nil was provided")
}
if terraformAttribute == nil {
return fmt.Errorf("parameter terraformAttribute is required, but nil was provided")
}
if wrapsSet == nil {
return fmt.Errorf("parameter wrapsSet is required, but nil was provided")
}
return nil
}