/*
 * Pipeline API
 *
 * Pipeline is a feature rich application platform, built for containers on top of Kubernetes to automate the DevOps experience, continuous application development and the lifecycle of deployments. 
 *
 * API version: latest
 * Contact: info@banzaicloud.com
 * Generated by: OpenAPI Generator (https://openapi-generator.tech)
 */

package pipeline

type EksIam struct {

	// The identifier of existing IAM role to be used for creating the EKS cluster. If not provided a new IAM role is created for the cluster (requires IAM Write Access).
	ClusterRoleId string `json:"clusterRoleId,omitempty"`

	// The identifier of existing IAM role to be used for creating the EKS nodes. If not provided a new IAM role is created for the nodes (requires IAM Write Access).
	NodeInstanceRoleId string `json:"nodeInstanceRoleId,omitempty"`

	// Marks if the userid associated with the clusters AWS secret has to be used in kubeconfig (bypasses IAM user creation).
	DefaultUser bool `json:"defaultUser,omitempty"`
}

// AssertEksIamRequired checks if the required fields are not zero-ed
func AssertEksIamRequired(obj EksIam) error {
	return nil
}

// AssertRecurseEksIamRequired recursively checks if required fields are not zero-ed in a nested slice.
// Accepts only nested slice of EksIam (e.g. [][]EksIam), otherwise ErrTypeAssertionError is thrown.
func AssertRecurseEksIamRequired(objSlice interface{}) error {
	return AssertRecurseInterfaceRequired(objSlice, func(obj interface{}) error {
		aEksIam, ok := obj.(EksIam)
		if !ok {
			return ErrTypeAssertionError
		}
		return AssertEksIamRequired(aEksIam)
	})
}
