//go:build !no_runtime_type_checking

package cxapi

import (
	"fmt"

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

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

func (c *jsiiProxy_CloudAssembly) validateGetNestedAssemblyParameters(artifactId *string) error {
	if artifactId == nil {
		return fmt.Errorf("parameter artifactId is required, but nil was provided")
	}

	return nil
}

func (c *jsiiProxy_CloudAssembly) validateGetNestedAssemblyArtifactParameters(artifactId *string) error {
	if artifactId == nil {
		return fmt.Errorf("parameter artifactId is required, but nil was provided")
	}

	return nil
}

func (c *jsiiProxy_CloudAssembly) validateGetStackArtifactParameters(artifactId *string) error {
	if artifactId == nil {
		return fmt.Errorf("parameter artifactId is required, but nil was provided")
	}

	return nil
}

func (c *jsiiProxy_CloudAssembly) validateGetStackByNameParameters(stackName *string) error {
	if stackName == nil {
		return fmt.Errorf("parameter stackName is required, but nil was provided")
	}

	return nil
}

func (c *jsiiProxy_CloudAssembly) validateTryGetArtifactParameters(id *string) error {
	if id == nil {
		return fmt.Errorf("parameter id is required, but nil was provided")
	}

	return nil
}

func validateCloudAssembly_IsCloudAssemblyParameters(x interface{}) error {
	if x == nil {
		return fmt.Errorf("parameter x is required, but nil was provided")
	}

	return nil
}

func validateNewCloudAssemblyParameters(directory *string, loadOptions *cloudassemblyschema.LoadManifestOptions) error {
	if directory == nil {
		return fmt.Errorf("parameter directory is required, but nil was provided")
	}

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

	return nil
}

