awscdk/awsappsync/AppSyncEventBridgeDataSource__checks.go (33 lines of code) (raw):

//go:build !no_runtime_type_checking package awsappsync import ( "fmt" _jsii_ "github.com/aws/jsii-runtime-go/runtime" "github.com/aws/constructs-go/constructs/v10" ) func validateAppSyncEventBridgeDataSource_IsConstructParameters(x interface{}) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } return nil } func (j *jsiiProxy_AppSyncEventBridgeDataSource) validateSetApiParameters(val IApi) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } return nil } func validateNewAppSyncEventBridgeDataSourceParameters(scope constructs.Construct, id *string, props *AppSyncEventBridgeDataSourceProps) error { if scope == nil { return fmt.Errorf("parameter scope is required, but nil was provided") } if id == nil { return fmt.Errorf("parameter id is required, but nil was provided") } if props == nil { return fmt.Errorf("parameter props is required, but nil was provided") } if err := _jsii_.ValidateStruct(props, func() string { return "parameter props" }); err != nil { return err } return nil }