func NewHadoopCluster(ctx *pulumi.Context,
	name string, args *HadoopClusterArgs, opts ...pulumi.ResourceOption) (*HadoopCluster, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}

	if args.ClusterVersion == nil {
		return nil, errors.New("invalid value for required argument 'ClusterVersion'")
	}
	if args.ComponentVersion == nil {
		return nil, errors.New("invalid value for required argument 'ComponentVersion'")
	}
	if args.Gateway == nil {
		return nil, errors.New("invalid value for required argument 'Gateway'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	if args.Roles == nil {
		return nil, errors.New("invalid value for required argument 'Roles'")
	}
	if args.Tier == nil {
		return nil, errors.New("invalid value for required argument 'Tier'")
	}
	var resource HadoopCluster
	err := ctx.RegisterResource("azure:hdinsight/hadoopCluster:HadoopCluster", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewHadoopCluster registers a new resource with the given unique name, arguments, and options.
NewHadoopCluster registers a new resource with the given unique name, arguments, and options.
// NewHadoopCluster registers a new resource with the given unique name arguments and options .
func NewHadoopCluster(ctx *pulumi.Context,
	name string, args *HadoopClusterArgs, opts ...pulumi.ResourceOption) (*HadoopCluster, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.ClusterVersion == nil {
		return nil, errors.New("invalid value for required argument 'ClusterVersion'")
	}
	if args.ComponentVersion == nil {
		return nil, errors.New("invalid value for required argument 'ComponentVersion'")
	}
	if args.Gateway == nil {
		return nil, errors.New("invalid value for required argument 'Gateway'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	if args.Roles == nil {
		return nil, errors.New("invalid value for required argument 'Roles'")
	}
	if args.Tier == nil {
		return nil, errors.New("invalid value for required argument 'Tier'")
	}
	var resource HadoopCluster
	err := ctx.RegisterResource("azure:hdinsight/hadoopCluster:HadoopCluster", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewHadoopCluster ( ctx * pulumi . Context , name string , args * HadoopClusterArgs , opts ... pulumi . ResourceOption ) ( * HadoopCluster , error ) { if args == nil { return nil , errors . New ( " " ) } if args . ClusterVersion == nil { return nil , errors . New ( " " ) } if args . ComponentVersion == nil { return nil , errors . New ( " " ) } if args . Gateway == nil { return nil , errors . New ( " " ) } if args . ResourceGroupName == nil { return nil , errors . New ( " " ) } if args . Roles == nil { return nil , errors . New ( " " ) } if args . Tier == nil { return nil , errors . New ( " " ) } var resource HadoopCluster err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewHadoopCluster registers a new resource with the given unique name, arguments, and options.
NewHadoopCluster registers a new resource with the given unique name arguments and options .