// NewWorkspace registers a new resource with the given unique name, arguments, and options.
NewWorkspace registers a new resource with the given unique name, arguments, and options.
// NewWorkspace registers a new resource with the given unique name arguments and options .
func NewWorkspace(ctx *pulumi.Context,
	name string, args *WorkspaceArgs, opts ...pulumi.ResourceOption) (*Workspace, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	if args.SqlAdministratorLogin == nil {
		return nil, errors.New("invalid value for required argument 'SqlAdministratorLogin'")
	}
	if args.SqlAdministratorLoginPassword == nil {
		return nil, errors.New("invalid value for required argument 'SqlAdministratorLoginPassword'")
	}
	if args.StorageDataLakeGen2FilesystemId == nil {
		return nil, errors.New("invalid value for required argument 'StorageDataLakeGen2FilesystemId'")
	}
	var resource Workspace
	err := ctx.RegisterResource("azure:synapse/workspace:Workspace", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewWorkspace ( ctx * pulumi . Context , name string , args * WorkspaceArgs , opts ... pulumi . ResourceOption ) ( * Workspace , error ) { if args == nil { return nil , errors . New ( " " ) } if args . ResourceGroupName == nil { return nil , errors . New ( " " ) } if args . SqlAdministratorLogin == nil { return nil , errors . New ( " " ) } if args . SqlAdministratorLoginPassword == nil { return nil , errors . New ( " " ) } if args . StorageDataLakeGen2FilesystemId == nil { return nil , errors . New ( " " ) } var resource Workspace err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewWorkspace registers a new resource with the given unique name, arguments, and options.
NewWorkspace registers a new resource with the given unique name arguments and options .