//go:build !no_runtime_type_checking

package appstagingsynthesizeralpha

import (
	"fmt"

	_jsii_ "github.com/aws/jsii-runtime-go/runtime"

	"github.com/aws/aws-cdk-go/awscdk/v2"
	"github.com/aws/aws-cdk-go/awscdk/v2/cloudassemblyschema"
)

func (a *jsiiProxy_AppStagingSynthesizer) validateAddBootstrapVersionRuleParameters(requiredVersion *float64, bootstrapStackVersionSsmParameter *string) error {
	if requiredVersion == nil {
		return fmt.Errorf("parameter requiredVersion is required, but nil was provided")
	}

	if bootstrapStackVersionSsmParameter == nil {
		return fmt.Errorf("parameter bootstrapStackVersionSsmParameter is required, but nil was provided")
	}

	return nil
}

func (a *jsiiProxy_AppStagingSynthesizer) validateAddDockerImageAssetParameters(_asset *awscdk.DockerImageAssetSource) error {
	if _asset == nil {
		return fmt.Errorf("parameter _asset is required, but nil was provided")
	}
	if err := _jsii_.ValidateStruct(_asset, func() string { return "parameter _asset" }); err != nil {
		return err
	}

	return nil
}

func (a *jsiiProxy_AppStagingSynthesizer) validateAddFileAssetParameters(_asset *awscdk.FileAssetSource) error {
	if _asset == nil {
		return fmt.Errorf("parameter _asset is required, but nil was provided")
	}
	if err := _jsii_.ValidateStruct(_asset, func() string { return "parameter _asset" }); err != nil {
		return err
	}

	return nil
}

func (a *jsiiProxy_AppStagingSynthesizer) validateBindParameters(_stack awscdk.Stack) error {
	if _stack == nil {
		return fmt.Errorf("parameter _stack is required, but nil was provided")
	}

	return nil
}

func (a *jsiiProxy_AppStagingSynthesizer) validateCloudFormationLocationFromDockerImageAssetParameters(dest *cloudassemblyschema.DockerImageDestination) error {
	if dest == nil {
		return fmt.Errorf("parameter dest is required, but nil was provided")
	}
	if err := _jsii_.ValidateStruct(dest, func() string { return "parameter dest" }); err != nil {
		return err
	}

	return nil
}

func (a *jsiiProxy_AppStagingSynthesizer) validateCloudFormationLocationFromFileAssetParameters(location *cloudassemblyschema.FileDestination) error {
	if location == nil {
		return fmt.Errorf("parameter location is required, but nil was provided")
	}
	if err := _jsii_.ValidateStruct(location, func() string { return "parameter location" }); err != nil {
		return err
	}

	return nil
}

func (a *jsiiProxy_AppStagingSynthesizer) validateEmitArtifactParameters(session awscdk.ISynthesisSession, options *awscdk.SynthesizeStackArtifactOptions) error {
	if session == nil {
		return fmt.Errorf("parameter session is required, but nil was provided")
	}

	if err := _jsii_.ValidateStruct(options, func() string { return "parameter options" }); err != nil {
		return err
	}

	return nil
}

func (a *jsiiProxy_AppStagingSynthesizer) validateEmitStackArtifactParameters(stack awscdk.Stack, session awscdk.ISynthesisSession, options *awscdk.SynthesizeStackArtifactOptions) error {
	if stack == nil {
		return fmt.Errorf("parameter stack is required, but nil was provided")
	}

	if session == nil {
		return fmt.Errorf("parameter session is required, but nil was provided")
	}

	if err := _jsii_.ValidateStruct(options, func() string { return "parameter options" }); err != nil {
		return err
	}

	return nil
}

func (a *jsiiProxy_AppStagingSynthesizer) validateReusableBindParameters(stack awscdk.Stack) error {
	if stack == nil {
		return fmt.Errorf("parameter stack is required, but nil was provided")
	}

	return nil
}

func (a *jsiiProxy_AppStagingSynthesizer) validateSynthesizeParameters(_session awscdk.ISynthesisSession) error {
	if _session == nil {
		return fmt.Errorf("parameter _session is required, but nil was provided")
	}

	return nil
}

func (a *jsiiProxy_AppStagingSynthesizer) validateSynthesizeStackTemplateParameters(stack awscdk.Stack, session awscdk.ISynthesisSession) error {
	if stack == nil {
		return fmt.Errorf("parameter stack is required, but nil was provided")
	}

	if session == nil {
		return fmt.Errorf("parameter session is required, but nil was provided")
	}

	return nil
}

func (a *jsiiProxy_AppStagingSynthesizer) validateSynthesizeTemplateParameters(session awscdk.ISynthesisSession) error {
	if session == nil {
		return fmt.Errorf("parameter session is required, but nil was provided")
	}

	return nil
}

func validateAppStagingSynthesizer_CustomFactoryParameters(options *CustomFactoryOptions) 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 validateAppStagingSynthesizer_CustomResourcesParameters(options *CustomResourcesOptions) 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 validateAppStagingSynthesizer_DefaultResourcesParameters(options *DefaultResourcesOptions) 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
}

