-
Notifications
You must be signed in to change notification settings - Fork 0
/
MedialiveChannelDestinationsMediaPackageSettingsList__checks.go
96 lines (75 loc) · 2.93 KB
/
MedialiveChannelDestinationsMediaPackageSettingsList__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
//go:build !no_runtime_type_checking
package medialivechannel
import (
"fmt"
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
"github.com/hashicorp/terraform-cdk-go/cdktf"
)
func (m *jsiiProxy_MedialiveChannelDestinationsMediaPackageSettingsList) validateGetParameters(index *float64) error {
if index == nil {
return fmt.Errorf("parameter index is required, but nil was provided")
}
return nil
}
func (m *jsiiProxy_MedialiveChannelDestinationsMediaPackageSettingsList) validateResolveParameters(_context cdktf.IResolveContext) error {
if _context == nil {
return fmt.Errorf("parameter _context is required, but nil was provided")
}
return nil
}
func (j *jsiiProxy_MedialiveChannelDestinationsMediaPackageSettingsList) validateSetInternalValueParameters(val interface{}) error {
switch val.(type) {
case cdktf.IResolvable:
// ok
case *[]*MedialiveChannelDestinationsMediaPackageSettings:
val := val.(*[]*MedialiveChannelDestinationsMediaPackageSettings)
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 []*MedialiveChannelDestinationsMediaPackageSettings:
val_ := val.([]*MedialiveChannelDestinationsMediaPackageSettings)
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, *[]*MedialiveChannelDestinationsMediaPackageSettings; received %#v (a %T)", val, val)
}
}
return nil
}
func (j *jsiiProxy_MedialiveChannelDestinationsMediaPackageSettingsList) validateSetTerraformAttributeParameters(val *string) error {
if val == nil {
return fmt.Errorf("parameter val is required, but nil was provided")
}
return nil
}
func (j *jsiiProxy_MedialiveChannelDestinationsMediaPackageSettingsList) validateSetTerraformResourceParameters(val cdktf.IInterpolatingParent) error {
if val == nil {
return fmt.Errorf("parameter val is required, but nil was provided")
}
return nil
}
func (j *jsiiProxy_MedialiveChannelDestinationsMediaPackageSettingsList) validateSetWrapsSetParameters(val *bool) error {
if val == nil {
return fmt.Errorf("parameter val is required, but nil was provided")
}
return nil
}
func validateNewMedialiveChannelDestinationsMediaPackageSettingsListParameters(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
}