//go:build !no_runtime_type_checking package awsec2 import ( "fmt" _jsii_ "github.com/aws/jsii-runtime-go/runtime" ) func (n *jsiiProxy_NatInstanceProvider) validateConfigureNatParameters(options *ConfigureNatOptions) error { if options == nil { return fmt.Errorf("parameter options is required, but nil was provided") } if err := _jsii_.ValidateStruct(options, func() string { return "parameter options" }); err != nil { return err } return nil } func (n *jsiiProxy_NatInstanceProvider) validateConfigureSubnetParameters(subnet PrivateSubnet) error { if subnet == nil { return fmt.Errorf("parameter subnet is required, but nil was provided") } return nil } func validateNatInstanceProvider_GatewayParameters(props *NatGatewayProps) error { if err := _jsii_.ValidateStruct(props, func() string { return "parameter props" }); err != nil { return err } return nil } func validateNatInstanceProvider_InstanceParameters(props *NatInstanceProps) error { 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 validateNewNatInstanceProviderParameters(props *NatInstanceProps) error { 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 }