//go:build !no_runtime_type_checking package awsapplicationautoscaling import ( "fmt" _jsii_ "github.com/aws/jsii-runtime-go/runtime" "github.com/aws/constructs-go/constructs/v10" ) func (b *jsiiProxy_BaseScalableAttribute) validateDoScaleOnMetricParameters(id *string, props *BasicStepScalingPolicyProps) error { 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 } func (b *jsiiProxy_BaseScalableAttribute) validateDoScaleOnScheduleParameters(id *string, props *ScalingSchedule) error { 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 } func (b *jsiiProxy_BaseScalableAttribute) validateDoScaleToTrackMetricParameters(id *string, props *BasicTargetTrackingScalingPolicyProps) error { 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 } func validateBaseScalableAttribute_IsConstructParameters(x interface{}) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } return nil } func validateNewBaseScalableAttributeParameters(scope constructs.Construct, id *string, props *BaseScalableAttributeProps) 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 }